Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.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.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First") translateModel(Modelica.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First") [: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.001129/0.001129, allocations: 183.7 kB / 8.478 MB, free: 1.883 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.589/1.589, allocations: 205.2 MB / 214.1 MB, free: 5.094 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001301/0.001301, allocations: 82.47 kB / 262.1 MB, free: 5.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.143e-06/7.273e-06, allocations: 0 / 315 MB, free: 41.49 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1078, allocations: 47.58 MB / 362.5 MB, free: 9.961 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3403/0.4482, allocations: 76.76 MB / 439.3 MB, free: 10.74 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002603/0.4485, allocations: 71.31 kB / 439.4 MB, free: 10.74 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.01101/0.4595, allocations: 3.692 MB / 443.1 MB, free: 10.47 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.584e-05/0.4596, allocations: 7.469 kB / 443.1 MB, free: 10.47 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0008213/0.4604, allocations: 476 kB / 443.5 MB, free: 10.06 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.76e-05/0.4605, allocations: 7.688 kB / 443.5 MB, free: 10.06 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001227/0.4606, allocations: 31.48 kB / 443.6 MB, free: 10.05 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004053/0.4611, allocations: 226.5 kB / 443.8 MB, free: 9.824 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.4611, allocations: 8.375 kB / 443.8 MB, free: 9.824 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.914e-05/0.4611, allocations: 11.59 kB / 443.8 MB, free: 9.824 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002742/0.4614, allocations: 121.2 kB / 443.9 MB, free: 9.816 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003106/0.4617, allocations: 151.9 kB / 444.1 MB, free: 9.777 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.081e-05/0.4618, allocations: 4.562 kB / 444.1 MB, free: 9.773 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.338e-05/0.4618, allocations: 0 / 444.1 MB, free: 9.773 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.966e-06/0.4618, allocations: 7.844 kB / 444.1 MB, free: 9.773 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001006/0.4628, allocations: 0.5667 MB / 444.7 MB, free: 9.496 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001657/0.463, allocations: 123.4 kB / 444.8 MB, free: 9.469 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000127/0.4632, allocations: 84.64 kB / 444.9 MB, free: 9.461 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.549e-05/0.4632, allocations: 4 kB / 444.9 MB, free: 9.457 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.65e-05/0.4632, allocations: 38.66 kB / 444.9 MB, free: 9.418 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 1.553e-06/0.4632, allocations: 0 / 444.9 MB, free: 9.418 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.001553/0.4648, allocations: 0.8966 MB / 445.8 MB, free: 8.898 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.164e-05/0.4648, allocations: 55.22 kB / 445.9 MB, free: 8.836 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001263/0.465, allocations: 134.9 kB / 446 MB, free: 8.746 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.936e-05/0.465, allocations: 26.58 kB / 446 MB, free: 8.715 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.073e-05/0.4651, allocations: 128.8 kB / 446.1 MB, free: 8.609 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.658e-05/0.4652, allocations: 110 kB / 446.2 MB, free: 8.535 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.719e-06/0.4652, allocations: 0 / 446.2 MB, free: 8.535 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.4653, allocations: 334.3 kB / 446.6 MB, free: 8.223 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.392e-05/0.4654, allocations: 69.97 kB / 446.6 MB, free: 8.207 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001231/0.4655, allocations: 88.2 kB / 446.7 MB, free: 8.184 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001281/0.4657, allocations: 70.14 kB / 446.8 MB, free: 8.184 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-06/0.4657, allocations: 224 / 446.8 MB, free: 8.184 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004113/0.4661, allocations: 248.7 kB / 447 MB, free: 8.121 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.4661, allocations: 16.52 kB / 447.1 MB, free: 8.113 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.4661, allocations: 7.891 kB / 447.1 MB, free: 8.105 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001717/0.4663, allocations: 39.12 kB / 447.1 MB, free: 8.098 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002714/0.4666, allocations: 60.17 kB / 447.2 MB, free: 8.094 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001278/0.4679, allocations: 1.492 MB / 448.6 MB, free: 6.812 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001218/0.468, allocations: 5.234 kB / 448.7 MB, free: 6.812 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.774e-05/0.468, allocations: 10.56 kB / 448.7 MB, free: 6.812 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.838e-05/0.4681, allocations: 113.5 kB / 448.8 MB, free: 6.695 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.731e-05/0.4682, allocations: 20 kB / 448.8 MB, free: 6.688 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.476e-05/0.4682, allocations: 21.22 kB / 448.8 MB, free: 6.68 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.4682, allocations: 3.688 kB / 448.8 MB, free: 6.68 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/0.4683, allocations: 7.844 kB / 448.8 MB, free: 6.676 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/0.4683, allocations: 2.25 kB / 448.8 MB, free: 6.676 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001104/0.4694, allocations: 0.7105 MB / 449.5 MB, free: 6.305 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.4694, allocations: 96 / 449.5 MB, free: 6.305 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002753/0.4697, allocations: 62.95 kB / 449.6 MB, free: 6.297 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001168/0.4698, allocations: 35.25 kB / 449.6 MB, free: 6.289 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.271e-05/0.4698, allocations: 0.7031 kB / 449.6 MB, free: 6.289 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008435/0.4707, allocations: 1.315 MB / 451 MB, free: 5.074 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.4707, allocations: 3.812 kB / 451 MB, free: 5.074 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005664/0.4713, allocations: 477.3 kB / 451.4 MB, free: 4.832 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.344e-05/0.4713, allocations: 93 kB / 451.5 MB, free: 4.73 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.937e-05/0.4714, allocations: 8.594 kB / 451.5 MB, free: 4.727 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001437/0.4715, allocations: 12.83 kB / 451.5 MB, free: 4.719 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.619e-05/0.4716, allocations: 18.12 kB / 451.5 MB, free: 4.719 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.4716, allocations: 3.812 kB / 451.6 MB, free: 4.719 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.721e-05/0.4717, allocations: 116 kB / 451.7 MB, free: 4.645 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003703/0.4721, allocations: 54.61 kB / 451.7 MB, free: 4.645 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 28 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001529/0.4722, allocations: 100.8 kB / 451.8 MB, free: 4.555 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005429/0.4728, allocations: 282.4 kB / 452.1 MB, free: 20.45 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.4728, allocations: 0 / 452.1 MB, free: 20.45 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003057/0.4731, allocations: 214.9 kB / 452.3 MB, free: 20.34 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003757/0.4735, allocations: 32.42 kB / 452.3 MB, free: 20.33 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/0.4746, allocations: 0.5668 MB / 452.9 MB, free: 19.99 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000567/0.4752, allocations: 0.7854 MB / 453.7 MB, free: 19.29 MB / 330.7 MB Notification: Performance of SimCode: time 3.61e-07/0.4752, allocations: 0 / 453.7 MB, free: 19.29 MB / 330.7 MB Notification: Performance of Templates: time 0.006214/0.4815, allocations: 2.536 MB / 456.2 MB, free: 18.25 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/First/First.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches