Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel") translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002296/0.002296, allocations: 180.4 kB / 8.151 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.662/1.662, allocations: 205.2 MB / 213.8 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001204/0.001204, allocations: 84.61 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.897e-06/8.997e-06, allocations: 0 / 314.3 MB, free: 9.047 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2392/0.2392, allocations: 47.56 MB / 361.8 MB, free: 45.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1184/0.3577, allocations: 75.38 MB / 437.2 MB, free: 10.57 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000246/0.3581, allocations: 63.97 kB / 437.3 MB, free: 10.51 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.009784/0.3679, allocations: 1.901 MB / 439.2 MB, free: 8.641 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.365e-05/0.3679, allocations: 0 / 439.2 MB, free: 8.641 MB / 330.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.0005503/0.3685, allocations: 380.5 kB / 439.5 MB, free: 8.227 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.3685, allocations: 12.03 kB / 439.6 MB, free: 8.215 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.5e-05/0.3686, allocations: 15.2 kB / 439.6 MB, free: 8.203 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003285/0.3689, allocations: 215.9 kB / 439.8 MB, free: 7.949 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.823e-05/0.369, allocations: 7.984 kB / 439.8 MB, free: 7.941 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.334e-05/0.369, allocations: 4.75 kB / 439.8 MB, free: 7.938 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001305/0.3692, allocations: 24 kB / 439.8 MB, free: 7.914 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001651/0.3693, allocations: 69.67 kB / 439.9 MB, free: 7.84 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.3694, allocations: 0 / 439.9 MB, free: 7.84 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.3694, allocations: 0 / 439.9 MB, free: 7.84 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.465e-06/0.3694, allocations: 0 / 439.9 MB, free: 7.84 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007225/0.3701, allocations: 388.4 kB / 440.3 MB, free: 7.41 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001491/0.3703, allocations: 47.64 kB / 440.3 MB, free: 7.355 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.862e-05/0.3704, allocations: 24.97 kB / 440.3 MB, free: 7.328 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.761e-05/0.3704, allocations: 3.984 kB / 440.3 MB, free: 7.324 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.709e-05/0.3705, allocations: 38.56 kB / 440.4 MB, free: 7.277 MB / 330.7 MB Notification: Performance of pre-optimization done (n=5): time 1.934e-06/0.3705, allocations: 0 / 440.4 MB, free: 7.277 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002657/0.3707, allocations: 65.59 kB / 440.4 MB, free: 7.207 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.157e-05/0.3708, allocations: 51.41 kB / 440.5 MB, free: 7.145 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001397/0.3709, allocations: 124.6 kB / 440.6 MB, free: 7.02 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.162e-05/0.371, allocations: 25.7 kB / 440.6 MB, free: 6.988 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.498e-05/0.371, allocations: 162.7 kB / 440.8 MB, free: 6.828 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.31e-05/0.3711, allocations: 19.7 kB / 440.8 MB, free: 6.809 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.402e-06/0.3711, allocations: 5.875 kB / 440.8 MB, free: 6.805 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.3712, allocations: 318.8 kB / 441.1 MB, free: 6.484 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.122e-05/0.3713, allocations: 12 kB / 441.1 MB, free: 6.473 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.998e-05/0.3714, allocations: 12 kB / 441.2 MB, free: 6.461 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.609e-05/0.3714, allocations: 19.98 kB / 441.2 MB, free: 6.441 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3714, allocations: 3.938 kB / 441.2 MB, free: 6.438 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001778/0.3716, allocations: 69.58 kB / 441.2 MB, free: 6.363 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.3717, allocations: 4 kB / 441.3 MB, free: 6.359 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.3717, allocations: 4.312 kB / 441.3 MB, free: 6.359 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.3717, allocations: 0 / 441.3 MB, free: 6.359 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004038/0.3721, allocations: 47.91 kB / 441.3 MB, free: 6.312 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.3721, allocations: 0 / 441.3 MB, free: 6.312 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.712e-05/0.3722, allocations: 10.31 kB / 441.3 MB, free: 6.305 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.93e-05/0.3723, allocations: 4 kB / 441.3 MB, free: 6.301 MB / 330.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 6.244e-05/0.3723, allocations: 25.7 kB / 441.3 MB, free: 6.27 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.878e-05/0.3724, allocations: 11.81 kB / 441.4 MB, free: 6.258 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.407e-05/0.3725, allocations: 16.17 kB / 441.4 MB, free: 6.238 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.3725, allocations: 4 kB / 441.4 MB, free: 6.234 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.944e-06/0.3725, allocations: 0 / 441.4 MB, free: 6.234 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.3726, allocations: 3.938 kB / 441.4 MB, free: 6.23 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000329/0.3729, allocations: 168.2 kB / 441.5 MB, free: 6.031 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.3729, allocations: 3.906 kB / 441.5 MB, free: 6.027 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003003/0.3732, allocations: 23.97 kB / 441.6 MB, free: 6.004 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.3733, allocations: 0 / 441.6 MB, free: 6.004 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.462e-05/0.3733, allocations: 0 / 441.6 MB, free: 6.004 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.3733, allocations: 4 kB / 441.6 MB, free: 6 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.3733, allocations: 0 / 441.6 MB, free: 6 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003084/0.3736, allocations: 183.4 kB / 441.8 MB, free: 5.805 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.403e-05/0.3737, allocations: 96.62 kB / 441.8 MB, free: 5.695 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.805e-05/0.3737, allocations: 0 / 441.8 MB, free: 5.695 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001397/0.3739, allocations: 7.984 kB / 441.9 MB, free: 5.688 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.738e-05/0.3739, allocations: 0 / 441.9 MB, free: 5.688 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.374, allocations: 7.984 kB / 441.9 MB, free: 5.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.726e-05/0.3741, allocations: 101.8 kB / 442 MB, free: 5.582 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000281/0.3744, allocations: 19.91 kB / 442 MB, free: 5.562 MB / 330.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.0001476/0.3745, allocations: 103.1 kB / 442.1 MB, free: 5.453 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001944/0.3747, allocations: 36 kB / 442.1 MB, free: 5.418 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.3747, allocations: 0 / 442.1 MB, free: 5.418 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.237e-05/0.3748, allocations: 16 kB / 442.1 MB, free: 5.402 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003714/0.3752, allocations: 19.36 kB / 442.2 MB, free: 5.387 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008574/0.3761, allocations: 207.8 kB / 442.4 MB, free: 5.152 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003699/0.3765, allocations: 0.7153 MB / 443.1 MB, free: 4.41 MB / 330.7 MB Notification: Performance of SimCode: time 1.282e-06/0.3765, allocations: 3.938 kB / 443.1 MB, free: 4.406 MB / 330.7 MB Notification: Performance of Templates: time 0.003638/0.3801, allocations: 1.165 MB / 444.2 MB, free: 3.258 MB / 330.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches