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") [: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 trunk/package.mo): time 0.00104/0.00104, allocations: 203.2 kB / 8.538 MB, free: 1.734 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008891/0.0008893, allocations: 98.27 kB / 286.3 MB, free: 5.164 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.742e-06/6.773e-06, allocations: 0 / 343.1 MB, free: 8.625 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1023, allocations: 51.48 MB / 394.6 MB, free: 5.094 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2554/0.3578, allocations: 77 MB / 471.6 MB, free: 14.31 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/0.3581, allocations: 64.62 kB / 471.7 MB, free: 14.29 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.006465/0.3645, allocations: 2.047 MB / 473.7 MB, free: 13.24 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.3646, allocations: 4 kB / 473.7 MB, free: 13.23 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.0003988/0.365, allocations: 392 kB / 474.1 MB, free: 12.83 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.3651, allocations: 8.031 kB / 474.1 MB, free: 12.82 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001526/0.3652, allocations: 27.09 kB / 474.1 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002499/0.3655, allocations: 209.7 kB / 474.3 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.186e-05/0.3655, allocations: 0 / 474.3 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.897e-05/0.3655, allocations: 11.42 kB / 474.3 MB, free: 12.56 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001002/0.3656, allocations: 30.5 kB / 474.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001157/0.3658, allocations: 62.8 kB / 474.4 MB, free: 12.49 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.3658, allocations: 0 / 474.4 MB, free: 12.49 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.3658, allocations: 0.8438 kB / 474.4 MB, free: 12.49 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.3658, allocations: 0 / 474.4 MB, free: 12.49 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004958/0.3663, allocations: 391.2 kB / 474.8 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.237e-05/0.3664, allocations: 47.67 kB / 474.9 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.102e-05/0.3665, allocations: 30.98 kB / 474.9 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.3665, allocations: 0 / 474.9 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.748e-05/0.3665, allocations: 31.44 kB / 474.9 MB, free: 12.01 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.002e-06/0.3665, allocations: 0 / 474.9 MB, free: 12.01 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001863/0.3667, allocations: 67 kB / 475 MB, free: 11.95 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.661e-05/0.3667, allocations: 62.42 kB / 475.1 MB, free: 11.89 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.262e-05/0.3668, allocations: 121.1 kB / 475.2 MB, free: 11.78 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.027e-06/0.3668, allocations: 25.7 kB / 475.2 MB, free: 11.75 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.956e-05/0.3669, allocations: 106.2 kB / 475.3 MB, free: 11.65 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.36e-05/0.3669, allocations: 22.39 kB / 475.3 MB, free: 11.63 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.709e-06/0.3669, allocations: 0 / 475.3 MB, free: 11.63 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.977e-05/0.367, allocations: 317.7 kB / 475.6 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.662e-05/0.367, allocations: 11.81 kB / 475.6 MB, free: 11.31 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.345e-05/0.367, allocations: 14.88 kB / 475.7 MB, free: 11.3 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.392e-05/0.3671, allocations: 18.23 kB / 475.7 MB, free: 11.3 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.3671, allocations: 0 / 475.7 MB, free: 11.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001021/0.3672, allocations: 75.7 kB / 475.8 MB, free: 11.23 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/0.3672, allocations: 8 kB / 475.8 MB, free: 11.22 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.3672, allocations: 0 / 475.8 MB, free: 11.22 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.3672, allocations: 7.906 kB / 475.8 MB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002354/0.3675, allocations: 42.72 kB / 475.8 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.3675, allocations: 0 / 475.8 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.618e-05/0.3676, allocations: 7.328 kB / 475.8 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.3676, allocations: 4 kB / 475.8 MB, free: 11.18 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.322e-05/0.3676, allocations: 105 kB / 475.9 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.156e-05/0.3677, allocations: 11.81 kB / 475.9 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.218e-05/0.3677, allocations: 7.938 kB / 475.9 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.3677, allocations: 7.281 kB / 475.9 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.3677, allocations: 0 / 475.9 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.3677, allocations: 1.625 kB / 476 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001312/0.3679, allocations: 168.2 kB / 476.1 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.3679, allocations: 0 / 476.1 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001502/0.368, allocations: 22 kB / 476.1 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-06/0.3681, allocations: 11.91 kB / 476.1 MB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.355e-05/0.3681, allocations: 6.875 kB / 476.2 MB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.3681, allocations: 0 / 476.2 MB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.3681, allocations: 0 / 476.2 MB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001597/0.3683, allocations: 183.8 kB / 476.3 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.67e-05/0.3683, allocations: 88.25 kB / 476.4 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.128e-05/0.3683, allocations: 4 kB / 476.4 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.208e-05/0.3684, allocations: 4.062 kB / 476.4 MB, free: 10.57 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.7e-05/0.3685, allocations: 10.44 kB / 476.4 MB, free: 10.56 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.08e-06/0.3685, allocations: 0 / 476.4 MB, free: 10.56 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.498e-05/0.3685, allocations: 103.2 kB / 476.5 MB, free: 10.47 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002307/0.3688, allocations: 12 kB / 476.6 MB, free: 10.46 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.0001102/0.3689, allocations: 103.6 kB / 476.7 MB, free: 10.35 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.728e-05/0.369, allocations: 37.75 kB / 476.7 MB, free: 10.33 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.369, allocations: 0 / 476.7 MB, free: 10.33 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.115e-05/0.369, allocations: 19.19 kB / 476.7 MB, free: 10.31 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002379/0.3693, allocations: 21.83 kB / 476.7 MB, free: 10.3 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004998/0.3698, allocations: 166.9 kB / 476.9 MB, free: 10.15 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001547/0.37, allocations: 0.7157 MB / 477.6 MB, free: 9.422 MB / 346.7 MB Notification: Performance of SimCode: time 8.02e-07/0.37, allocations: 4 kB / 477.6 MB, free: 9.418 MB / 346.7 MB Notification: Performance of Templates: time 0.002772/0.3728, allocations: 0.8006 MB / 478.4 MB, free: 8.977 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