Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001638/0.001638, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002538/0.002538, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2604, allocations: 50.54 MB / 408.7 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.00298/0.2634, allocations: 1.699 MB / 410.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000977/0.2644, allocations: 0.5415 MB / 411 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.209e-05/0.2645, allocations: 0 / 411 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001016/0.2647, allocations: 11.86 kB / 411 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001786/0.2649, allocations: 31.73 kB / 411 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002271/0.2651, allocations: 59.86 kB / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001729/0.2653, allocations: 99.69 kB / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.2654, allocations: 29.11 kB / 411.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001426/0.2656, allocations: 47.78 kB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.471e-05/0.2657, allocations: 51.77 kB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.844e-05/0.2657, allocations: 4 kB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.349e-05/0.2657, allocations: 8 kB / 411.3 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.65e-05/0.2658, allocations: 23.92 kB / 411.3 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.425e-05/0.2659, allocations: 39.73 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001634/0.266, allocations: 97.27 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2661, allocations: 0 / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2661, allocations: 0 / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.2661, allocations: 0 / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.000574/0.2666, allocations: 411 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.2667, allocations: 8.031 kB / 411.9 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.164e-05/0.2667, allocations: 46.73 kB / 411.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000137/0.2669, allocations: 20.75 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002928/0.2672, allocations: 215.6 kB / 412.2 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.483e-05/0.2672, allocations: 8.359 kB / 412.2 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.368e-05/0.2672, allocations: 15.84 kB / 412.2 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001869/0.2674, allocations: 81.66 kB / 412.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.627e-06/0.2675, allocations: 0 / 412.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.2675, allocations: 0 / 412.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.2675, allocations: 0 / 412.3 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001147/0.2676, allocations: 43.97 kB / 412.3 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005483/0.2682, allocations: 400 kB / 412.7 MB, free: 13.4 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001451/0.2683, allocations: 66.5 kB / 412.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.122e-05/0.2684, allocations: 32.92 kB / 412.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.684e-05/0.2684, allocations: 0 / 412.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.852e-05/0.2684, allocations: 30.56 kB / 412.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 3.146e-06/0.2685, allocations: 0 / 412.8 MB, free: 13.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002727/0.2687, allocations: 109.4 kB / 412.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.45e-05/0.2688, allocations: 55.41 kB / 413 MB, free: 13.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.2689, allocations: 146.4 kB / 413.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.544e-05/0.2689, allocations: 25.7 kB / 413.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.042e-05/0.269, allocations: 108 kB / 413.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.683e-05/0.269, allocations: 27.77 kB / 413.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.802e-05/0.2691, allocations: 17.72 kB / 413.3 MB, free: 12.72 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001009/0.2692, allocations: 322.8 kB / 413.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.09e-05/0.2692, allocations: 23.98 kB / 413.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.225e-05/0.2693, allocations: 19.98 kB / 413.7 MB, free: 12.35 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001073/0.2694, allocations: 52.98 kB / 413.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2694, allocations: 0 / 413.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001609/0.2696, allocations: 85.53 kB / 413.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.2696, allocations: 4 kB / 413.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.2696, allocations: 0 / 413.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.2696, allocations: 3.938 kB / 413.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000216/0.2699, allocations: 43.97 kB / 413.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.682e-06/0.2699, allocations: 3.984 kB / 413.9 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.377e-05/0.2699, allocations: 4 kB / 413.9 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-06/0.27, allocations: 4 kB / 413.9 MB, free: 12.14 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.425e-05/0.27, allocations: 117.8 kB / 414 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.251e-05/0.2701, allocations: 11.84 kB / 414 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.297e-05/0.2701, allocations: 16.3 kB / 414 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.2701, allocations: 0 / 414 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-06/0.2701, allocations: 0 / 414 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.2701, allocations: 4 kB / 414 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001927/0.2703, allocations: 201.5 kB / 414.2 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.2704, allocations: 4.188 kB / 414.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001403/0.2705, allocations: 23.98 kB / 414.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.504e-06/0.2705, allocations: 0 / 414.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.2705, allocations: 8 kB / 414.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2705, allocations: 0 / 414.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.808e-06/0.2706, allocations: 7.922 kB / 414.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002535/0.2708, allocations: 199.4 kB / 414.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.655e-05/0.2709, allocations: 88.94 kB / 414.5 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.176e-05/0.2709, allocations: 8.031 kB / 414.5 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.275e-05/0.271, allocations: 7.922 kB / 414.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.814e-05/0.271, allocations: 4 kB / 414.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.733e-06/0.271, allocations: 3.984 kB / 414.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.836e-05/0.2711, allocations: 110.8 kB / 414.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2711, allocations: 0 / 414.7 MB, free: 11.25 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002394/0.2714, allocations: 20.06 kB / 414.7 MB, free: 11.23 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (firstOrder1.y,firstOrder2.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000461/0.2718, allocations: 0.7356 MB / 415.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000155/0.272, allocations: 47.97 kB / 415.5 MB, free: 10.42 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.272, allocations: 64 / 415.5 MB, free: 10.42 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.951e-05/0.2721, allocations: 31.92 kB / 415.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003219/0.2724, allocations: 25.19 kB / 415.5 MB, free: 10.37 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001616/0.274, allocations: 1.57 MB / 417.1 MB, free: 8.723 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002283/0.2743, allocations: 0.7041 MB / 417.8 MB, free: 7.992 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.655e-05/0.2743, allocations: 8.25 kB / 417.8 MB, free: 7.984 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.374e-05/0.2744, allocations: 31.42 kB / 417.8 MB, free: 7.953 MB / 334.1 MB Notification: Performance of SimCode: time 1.623e-06/0.2744, allocations: 0 / 417.8 MB, free: 7.953 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01878/0.2932, allocations: 2.337 MB / 420.2 MB, free: 5.672 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.385/7.678, allocations: 18.02 kB / 420.2 MB, free: 5.66 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.InverseModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.InverseModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,firstOrder1.y,firstOrder2.y Variables in the result:criticalDamping.f,criticalDamping.initType,criticalDamping.n,criticalDamping.normalized,criticalDamping.u,criticalDamping.x[1],criticalDamping.x_start[1],criticalDamping.y,criticalDamping.y_start,der(firstOrder1.y),der(firstOrder2.y),feedback.u1,feedback.u2,feedback.y,firstOrder1.T,firstOrder1.initType,firstOrder1.k,firstOrder1.u,firstOrder1.y,firstOrder1.y_start,firstOrder2.T,firstOrder2.initType,firstOrder2.k,firstOrder2.u,firstOrder2.y,firstOrder2.y_start,inverseBlockConstraints.u1,inverseBlockConstraints.u2,inverseBlockConstraints.y1,inverseBlockConstraints.y2,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time