Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel") translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009775/0.0009776, allocations: 177.1 kB / 13.64 MB, free: 1.672 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 221.3 MB / 235.5 MB, free: 2.961 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007768/0.0007768, allocations: 99.84 kB / 286.5 MB, free: 248 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.094e-05/2.095e-05, allocations: 4 kB / 343.8 MB, free: 4.348 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08883/0.08887, allocations: 50.41 MB / 394.2 MB, free: 1.898 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2767/0.3657, allocations: 76.92 MB / 471.1 MB, free: 10.7 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001727/0.3659, allocations: 63.97 kB / 471.2 MB, free: 10.64 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006251/0.3721, allocations: 2.278 MB / 473.5 MB, free: 8.363 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3722, allocations: 3.938 kB / 473.5 MB, free: 8.359 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.16e-05/0.3722, allocations: 4 kB / 473.5 MB, free: 8.355 MB / 346.7 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.0003698/0.3725, allocations: 382.9 kB / 473.9 MB, free: 7.938 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.3726, allocations: 12.03 kB / 473.9 MB, free: 7.926 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.352e-05/0.3726, allocations: 15.77 kB / 473.9 MB, free: 7.91 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002416/0.3729, allocations: 207.4 kB / 474.1 MB, free: 7.664 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.3729, allocations: 4 kB / 474.1 MB, free: 7.66 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.699e-05/0.3729, allocations: 8 kB / 474.1 MB, free: 7.652 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001526/0.3731, allocations: 75.16 kB / 474.2 MB, free: 7.574 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-06/0.3731, allocations: 4 kB / 474.2 MB, free: 7.57 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.24e-05/0.3731, allocations: 4 kB / 474.2 MB, free: 7.566 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.3732, allocations: 3.953 kB / 474.2 MB, free: 7.562 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.185e-05/0.3732, allocations: 28 kB / 474.2 MB, free: 7.535 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005281/0.3738, allocations: 419.9 kB / 474.6 MB, free: 7.062 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001086/0.3739, allocations: 50.55 kB / 474.7 MB, free: 7.004 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.22e-05/0.3739, allocations: 24.98 kB / 474.7 MB, free: 6.977 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.363e-05/0.374, allocations: 0 / 474.7 MB, free: 6.977 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.696e-05/0.374, allocations: 34.78 kB / 474.7 MB, free: 6.934 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 2.545e-06/0.374, allocations: 0 / 474.7 MB, free: 6.934 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001692/0.3742, allocations: 77.58 kB / 474.8 MB, free: 6.852 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.7e-05/0.3742, allocations: 51.41 kB / 474.9 MB, free: 6.789 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001183/0.3743, allocations: 128.5 kB / 475 MB, free: 6.66 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.401e-05/0.3743, allocations: 29.7 kB / 475 MB, free: 6.625 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.528e-05/0.3744, allocations: 108.3 kB / 475.1 MB, free: 6.516 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.025e-05/0.3744, allocations: 15.75 kB / 475.1 MB, free: 6.5 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.747e-06/0.3744, allocations: 0 / 475.1 MB, free: 6.5 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.204e-05/0.3745, allocations: 322.8 kB / 475.5 MB, free: 6.176 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.301e-05/0.3746, allocations: 19.94 kB / 475.5 MB, free: 6.156 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.899e-05/0.3746, allocations: 16 kB / 475.5 MB, free: 6.141 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.749e-05/0.3746, allocations: 19.98 kB / 475.5 MB, free: 6.121 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3747, allocations: 3.953 kB / 475.5 MB, free: 6.117 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001162/0.3748, allocations: 81.73 kB / 475.6 MB, free: 6.031 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.3748, allocations: 4 kB / 475.6 MB, free: 6.027 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.3748, allocations: 0 / 475.6 MB, free: 6.027 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.064e-05/0.3748, allocations: 3.984 kB / 475.6 MB, free: 6.023 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002188/0.375, allocations: 39.97 kB / 475.6 MB, free: 5.984 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.3751, allocations: 0 / 475.6 MB, free: 5.984 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.12e-05/0.3751, allocations: 11.91 kB / 475.7 MB, free: 5.973 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.644e-06/0.3751, allocations: 0 / 475.7 MB, free: 5.973 MB / 346.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.765e-05/0.3752, allocations: 112.9 kB / 475.8 MB, free: 5.855 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.012e-05/0.3752, allocations: 11.86 kB / 475.8 MB, free: 5.844 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.023e-05/0.3753, allocations: 8.094 kB / 475.8 MB, free: 5.836 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.3753, allocations: 11.92 kB / 475.8 MB, free: 5.824 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.3753, allocations: 3.984 kB / 475.8 MB, free: 5.82 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.3753, allocations: 0 / 475.8 MB, free: 5.82 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001646/0.3755, allocations: 193.7 kB / 476 MB, free: 5.582 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.3755, allocations: 8 kB / 476 MB, free: 5.574 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001429/0.3756, allocations: 23.94 kB / 476 MB, free: 5.551 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.3756, allocations: 0 / 476 MB, free: 5.551 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/0.3757, allocations: 0 / 476 MB, free: 5.551 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.3757, allocations: 4 kB / 476 MB, free: 5.547 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.3757, allocations: 0 / 476 MB, free: 5.547 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002096/0.3759, allocations: 191.4 kB / 476.2 MB, free: 5.344 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.873e-05/0.376, allocations: 89.11 kB / 476.3 MB, free: 5.238 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.136e-05/0.376, allocations: 3.953 kB / 476.3 MB, free: 5.234 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.278e-05/0.3761, allocations: 7.938 kB / 476.3 MB, free: 5.227 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.139e-05/0.3761, allocations: 3.984 kB / 476.3 MB, free: 5.223 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-06/0.3761, allocations: 0 / 476.3 MB, free: 5.223 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.539e-05/0.3762, allocations: 111.2 kB / 476.4 MB, free: 5.117 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3762, allocations: 0 / 476.4 MB, free: 5.117 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002065/0.3764, allocations: 23.84 kB / 476.4 MB, free: 5.094 MB / 346.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001061/0.3765, allocations: 99.25 kB / 476.5 MB, free: 4.988 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001056/0.3766, allocations: 36 kB / 476.6 MB, free: 4.953 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3766, allocations: 0 / 476.6 MB, free: 4.953 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.671e-05/0.3767, allocations: 23.92 kB / 476.6 MB, free: 4.93 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002058/0.3769, allocations: 16.67 kB / 476.6 MB, free: 4.914 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004425/0.3774, allocations: 177.5 kB / 476.8 MB, free: 4.711 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002129/0.3776, allocations: 0.7121 MB / 477.5 MB, free: 3.973 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.193e-05/0.3776, allocations: 8.172 kB / 477.5 MB, free: 3.965 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.962e-05/0.3777, allocations: 11.44 kB / 477.5 MB, free: 3.953 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3777, allocations: 0 / 477.5 MB, free: 3.953 MB / 346.7 MB Notification: Performance of Templates: time 0.002615/0.3803, allocations: 0.7986 MB / 478.3 MB, free: 3.16 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches