Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear") translateModel(ModelicaTest.Math.TestNonlinear,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear") [: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.001959/0.00196, allocations: 199.7 kB / 8.538 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 225.5 MB / 234.4 MB, free: 3.301 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009973/0.0009973, allocations: 88.05 kB / 286.3 MB, free: 5.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2289/0.2289, allocations: 45.14 MB / 383.3 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 6.692e-06/6.722e-06, allocations: 4 kB / 452.6 MB, free: 76.15 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1316, allocations: 63.24 MB / 0.5038 GB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3134/0.4451, allocations: 89.63 MB / 0.5913 GB, free: 13.5 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000184/0.4453, allocations: 60.53 kB / 0.5913 GB, free: 13.47 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03754/0.4829, allocations: 12.73 MB / 0.6038 GB, free: 2.789 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.765e-06/0.4829, allocations: 0 / 0.6038 GB, free: 2.789 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0006088/0.4835, allocations: 459.2 kB / 0.6042 GB, free: 2.293 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.152e-05/0.4836, allocations: 12.03 kB / 0.6042 GB, free: 2.281 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.765e-05/0.4836, allocations: 83.06 kB / 0.6043 GB, free: 2.203 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001135/0.4837, allocations: 238.3 kB / 0.6045 GB, free: 1.93 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.417e-05/0.4838, allocations: 154.6 kB / 0.6047 GB, free: 1.777 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.119e-05/0.4839, allocations: 150.6 kB / 0.6048 GB, free: 1.629 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.689e-05/0.4839, allocations: 150.6 kB / 0.605 GB, free: 1.48 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.556e-05/0.484, allocations: 104.9 kB / 0.6051 GB, free: 1.371 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.779e-05/0.484, allocations: 79.28 kB / 0.6051 GB, free: 1.293 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.212e-05/0.4841, allocations: 154.6 kB / 0.6053 GB, free: 1.141 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.836e-05/0.4842, allocations: 158.5 kB / 0.6054 GB, free: 0.9844 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002578/0.4844, allocations: 422 kB / 0.6058 GB, free: 0.5391 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001096/0.4845, allocations: 165.1 kB / 0.606 GB, free: 376 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.956e-05/0.4846, allocations: 84.14 kB / 0.6061 GB, free: 288 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.999e-05/0.4846, allocations: 79.28 kB / 0.6062 GB, free: 208 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.952e-05/0.4847, allocations: 139.5 kB / 0.6063 GB, free: 52 kB / 394.7 MB Notification: Performance of pre-optimization done (n=0): time 2.315e-06/0.4847, allocations: 3.984 kB / 0.6063 GB, free: 48 kB / 394.7 MB Notification: Performance of matching and sorting (n=0): time 5.568e-05/0.4848, allocations: 29.39 kB / 0.6063 GB, free: 16 kB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.381e-05/0.4848, allocations: 81.11 kB / 0.6064 GB, free: 15.92 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.204e-05/0.4849, allocations: 85 kB / 0.6065 GB, free: 15.83 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/0.4849, allocations: 25.7 kB / 0.6065 GB, free: 15.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.104e-05/0.4849, allocations: 84.14 kB / 0.6066 GB, free: 15.71 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.11e-07/0.4849, allocations: 0 / 0.6066 GB, free: 15.71 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.8e-07/0.485, allocations: 0 / 0.6066 GB, free: 15.71 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.4851, allocations: 310.8 kB / 0.6069 GB, free: 15.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.904e-06/0.4851, allocations: 0 / 0.6069 GB, free: 15.4 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.708e-05/0.4851, allocations: 4 kB / 0.6069 GB, free: 15.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.823e-05/0.4851, allocations: 75.28 kB / 0.607 GB, free: 15.32 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.652e-05/0.4852, allocations: 79.19 kB / 0.607 GB, free: 15.24 MB / 410.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.592e-05/0.4852, allocations: 38.47 kB / 0.6071 GB, free: 15.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.4852, allocations: 8.031 kB / 0.6071 GB, free: 15.19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.55e-05/0.4853, allocations: 75.28 kB / 0.6071 GB, free: 15.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.575e-05/0.4853, allocations: 150.6 kB / 0.6073 GB, free: 14.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.802e-05/0.4854, allocations: 87.22 kB / 0.6074 GB, free: 14.88 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.454e-05/0.4854, allocations: 153.3 kB / 0.6075 GB, free: 14.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.229e-05/0.4855, allocations: 75.28 kB / 0.6076 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.56e-05/0.4856, allocations: 89.19 kB / 0.6077 GB, free: 14.57 MB / 410.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 (0): * Single equations (assignments): 0 * 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 0.0001232/0.4857, allocations: 255.5 kB / 0.6079 GB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.753e-05/0.4858, allocations: 112.8 kB / 0.608 GB, free: 14.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.212e-05/0.4858, allocations: 108 kB / 0.6081 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.273e-05/0.4859, allocations: 184.1 kB / 0.6083 GB, free: 13.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.332e-05/0.486, allocations: 180.3 kB / 0.6085 GB, free: 13.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.97e-05/0.486, allocations: 176.3 kB / 0.6086 GB, free: 13.54 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002061/0.4862, allocations: 385.8 kB / 0.609 GB, free: 13.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-05/0.4863, allocations: 105 kB / 0.6091 GB, free: 13.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.706e-05/0.4863, allocations: 101 kB / 0.6092 GB, free: 12.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.299e-05/0.4864, allocations: 180.2 kB / 0.6094 GB, free: 12.72 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.89e-05/0.4865, allocations: 184.2 kB / 0.6096 GB, free: 12.53 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.139e-05/0.4865, allocations: 184.1 kB / 0.6097 GB, free: 12.35 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-05/0.4866, allocations: 184.1 kB / 0.6099 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001227/0.4867, allocations: 296.2 kB / 0.6102 GB, free: 11.85 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.638e-05/0.4868, allocations: 194 kB / 0.6104 GB, free: 11.63 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.503e-05/0.4869, allocations: 184 kB / 0.6106 GB, free: 11.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.232e-05/0.487, allocations: 101 kB / 0.6107 GB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.832e-05/0.4871, allocations: 180.2 kB / 0.6108 GB, free: 11.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.398e-05/0.4871, allocations: 101 kB / 0.6109 GB, free: 11.05 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.447e-05/0.4871, allocations: 79.19 kB / 0.611 GB, free: 10.98 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007276/0.4879, allocations: 173.8 kB / 0.6112 GB, free: 10.81 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (0): * Single equations (assignments): 0 * 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.0008711/0.4887, allocations: 471.9 kB / 0.6116 GB, free: 10.36 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 4.501e-05/0.4888, allocations: 0 / 0.6116 GB, free: 10.36 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.4888, allocations: 0 / 0.6116 GB, free: 10.36 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 9.92e-07/0.4888, allocations: 0 / 0.6116 GB, free: 10.36 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000313/0.4891, allocations: 0.528 MB / 0.6121 GB, free: 9.832 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001576/0.4893, allocations: 119.3 kB / 0.6122 GB, free: 9.691 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002553/0.4896, allocations: 0.6802 MB / 0.6129 GB, free: 8.984 MB / 410.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4896, allocations: 3.938 kB / 0.6129 GB, free: 8.98 MB / 410.7 MB Notification: Performance of Templates: time 0.006648/0.4962, allocations: 3.029 MB / 0.6159 GB, free: 5.965 MB / 410.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.sim & ./ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","../files/ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches