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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.InverseModel") translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.InverseModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001244/0.001244, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008888/0.0008889, allocations: 88.75 kB / 292.1 MB, free: 6 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.942e-05/2.944e-05, allocations: 4 kB / 350.5 MB, free: 2.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.116, allocations: 51.48 MB / 402 MB, free: 15 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.333/0.4491, allocations: 77.72 MB / 479.7 MB, free: 11.69 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001704/0.4493, allocations: 71.7 kB / 479.8 MB, free: 11.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005974/0.4553, allocations: 2.381 MB / 482.2 MB, free: 9.668 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4553, allocations: 0 / 482.2 MB, free: 9.668 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.4554, allocations: 4 kB / 482.2 MB, free: 9.664 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.0003136/0.4557, allocations: 385.5 kB / 482.6 MB, free: 9.25 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.4557, allocations: 8.031 kB / 482.6 MB, free: 9.242 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001309/0.4559, allocations: 31.69 kB / 482.6 MB, free: 9.219 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001841/0.4561, allocations: 201.7 kB / 482.8 MB, free: 8.984 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.237e-05/0.4561, allocations: 12.67 kB / 482.8 MB, free: 8.977 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.58e-05/0.4561, allocations: 4 kB / 482.8 MB, free: 8.973 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001337/0.4562, allocations: 69.36 kB / 482.9 MB, free: 8.918 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.4563, allocations: 7.984 kB / 482.9 MB, free: 8.91 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/0.4563, allocations: 3.938 kB / 482.9 MB, free: 8.91 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.4563, allocations: 0 / 482.9 MB, free: 8.91 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.598e-05/0.4564, allocations: 31.75 kB / 482.9 MB, free: 8.887 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004325/0.4568, allocations: 418.8 kB / 483.3 MB, free: 8.449 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.672e-05/0.4569, allocations: 53.97 kB / 483.4 MB, free: 8.398 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.708e-05/0.457, allocations: 25.45 kB / 483.4 MB, free: 8.379 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.416e-05/0.457, allocations: 0 / 483.4 MB, free: 8.379 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.341e-05/0.457, allocations: 34.56 kB / 483.5 MB, free: 8.336 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.022e-06/0.457, allocations: 4 kB / 483.5 MB, free: 8.332 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001549/0.4572, allocations: 70.02 kB / 483.5 MB, free: 8.27 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.667e-05/0.4572, allocations: 59.34 kB / 483.6 MB, free: 8.203 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.702e-05/0.4573, allocations: 125.8 kB / 483.7 MB, free: 8.082 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.818e-06/0.4573, allocations: 29.64 kB / 483.7 MB, free: 8.051 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.028e-05/0.4574, allocations: 107 kB / 483.8 MB, free: 7.953 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.789e-05/0.4574, allocations: 19.67 kB / 483.9 MB, free: 7.938 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.258e-06/0.4574, allocations: 0 / 483.9 MB, free: 7.938 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.177e-05/0.4574, allocations: 326.8 kB / 484.2 MB, free: 7.613 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.007e-05/0.4575, allocations: 15.38 kB / 484.2 MB, free: 7.605 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.408e-05/0.4575, allocations: 11.88 kB / 484.2 MB, free: 7.598 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.448e-05/0.4575, allocations: 16.92 kB / 484.2 MB, free: 7.59 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-06/0.4576, allocations: 0 / 484.2 MB, free: 7.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.76e-05/0.4577, allocations: 84.94 kB / 484.3 MB, free: 7.512 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.102e-05/0.4577, allocations: 4.75 kB / 484.3 MB, free: 7.508 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.4577, allocations: 0 / 484.3 MB, free: 7.508 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.013e-05/0.4577, allocations: 0 / 484.3 MB, free: 7.508 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002059/0.4579, allocations: 43.97 kB / 484.4 MB, free: 7.465 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.4579, allocations: 1.484 kB / 484.4 MB, free: 7.465 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.077e-05/0.458, allocations: 11.92 kB / 484.4 MB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-06/0.458, allocations: 3.953 kB / 484.4 MB, free: 7.449 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 3.846e-05/0.458, allocations: 104.8 kB / 484.5 MB, free: 7.344 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.76e-05/0.4581, allocations: 14.14 kB / 484.5 MB, free: 7.332 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.997e-05/0.4581, allocations: 11.72 kB / 484.5 MB, free: 7.328 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.4581, allocations: 4 kB / 484.5 MB, free: 7.324 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.4581, allocations: 0.6875 kB / 484.5 MB, free: 7.324 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.4581, allocations: 0 / 484.5 MB, free: 7.324 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001379/0.4583, allocations: 201.2 kB / 484.7 MB, free: 7.094 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.4583, allocations: 4 kB / 484.7 MB, free: 7.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001376/0.4584, allocations: 28.47 kB / 484.7 MB, free: 7.066 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.4584, allocations: 0 / 484.7 MB, free: 7.066 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.347e-06/0.4585, allocations: 3.938 kB / 484.7 MB, free: 7.062 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.4585, allocations: 0 / 484.7 MB, free: 7.062 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.4585, allocations: 224 / 484.7 MB, free: 7.062 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001647/0.4586, allocations: 191.8 kB / 484.9 MB, free: 6.879 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.554e-05/0.4587, allocations: 92.88 kB / 485 MB, free: 6.773 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.75e-05/0.4587, allocations: 4.031 kB / 485 MB, free: 6.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.892e-05/0.4588, allocations: 0.9375 kB / 485 MB, free: 6.77 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.106e-05/0.4588, allocations: 4 kB / 485 MB, free: 6.766 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.51e-06/0.4588, allocations: 3.984 kB / 485 MB, free: 6.762 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.615e-05/0.4589, allocations: 106.5 kB / 485.1 MB, free: 6.668 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4589, allocations: 4.062 kB / 485.1 MB, free: 6.664 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002052/0.4591, allocations: 27.77 kB / 485.2 MB, free: 6.641 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 9.667e-05/0.4592, allocations: 99.19 kB / 485.3 MB, free: 6.535 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001022/0.4593, allocations: 35.44 kB / 485.3 MB, free: 6.512 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.4593, allocations: 1.688 kB / 485.3 MB, free: 6.512 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.298e-05/0.4594, allocations: 19.25 kB / 485.3 MB, free: 6.5 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002082/0.4596, allocations: 20.44 kB / 485.3 MB, free: 6.484 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004184/0.46, allocations: 176.5 kB / 485.5 MB, free: 6.305 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001566/0.4602, allocations: 0.7082 MB / 486.2 MB, free: 5.57 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 4.18e-05/0.4602, allocations: 4.938 kB / 486.2 MB, free: 5.566 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.74e-05/0.4602, allocations: 15.42 kB / 486.2 MB, free: 5.551 MB / 346.7 MB Notification: Performance of SimCode: time 3.41e-07/0.4603, allocations: 0 / 486.2 MB, free: 5.551 MB / 346.7 MB Notification: Performance of Templates: time 0.002559/0.4628, allocations: 0.7887 MB / 487 MB, free: 4.809 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.InverseModel.makefile (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 & ./Modelica_trunk_Modelica.Blocks.Examples.InverseModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches