Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002356/0.002356, allocations: 174.9 kB / 8.148 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.72/1.72, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001247/0.001246, allocations: 92.89 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3053/0.3053, allocations: 43.49 MB / 353.2 MB, free: 2.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.987e-06/9.157e-06, allocations: 4 kB / 417.7 MB, free: 40.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3206/0.3206, allocations: 58.84 MB / 476.5 MB, free: 5.078 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1738/0.4944, allocations: 86.14 MB / 0.5495 GB, free: 12.93 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003849/0.4949, allocations: 71.23 kB / 0.5496 GB, free: 12.87 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03086/0.5258, allocations: 5.729 MB / 0.5552 GB, free: 7.125 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.696e-05/0.5259, allocations: 12 kB / 0.5552 GB, free: 7.113 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001322/0.5272, allocations: 0.5493 MB / 0.5557 GB, free: 6.52 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.5273, allocations: 11.97 kB / 0.5557 GB, free: 6.508 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001397/0.5274, allocations: 39.53 kB / 0.5557 GB, free: 6.469 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000448/0.5279, allocations: 259.3 kB / 0.556 GB, free: 6.172 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.542e-05/0.5279, allocations: 12 kB / 0.556 GB, free: 6.16 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.528, allocations: 31.91 kB / 0.556 GB, free: 6.129 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005791/0.5286, allocations: 161.5 kB / 0.5562 GB, free: 5.969 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008246/0.5294, allocations: 317.8 kB / 0.5565 GB, free: 5.625 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.102e-05/0.5295, allocations: 11.98 kB / 0.5565 GB, free: 5.613 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.242e-05/0.5296, allocations: 3.906 kB / 0.5565 GB, free: 5.609 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.985e-05/0.5296, allocations: 8 kB / 0.5565 GB, free: 5.602 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003763/0.5334, allocations: 1.653 MB / 0.5581 GB, free: 3.855 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005276/0.534, allocations: 203 kB / 0.5583 GB, free: 3.605 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001832/0.5342, allocations: 82.36 kB / 0.5584 GB, free: 3.504 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.882e-05/0.5342, allocations: 4.062 kB / 0.5584 GB, free: 3.5 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.804e-05/0.5343, allocations: 46.5 kB / 0.5585 GB, free: 3.445 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 3.416e-06/0.5343, allocations: 0 / 0.5585 GB, free: 3.445 MB / 394.7 MB Notification: Performance of matching and sorting (n=26): time 0.0008039/0.5351, allocations: 177.2 kB / 0.5586 GB, free: 3.266 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001296/0.5353, allocations: 209.6 kB / 0.5588 GB, free: 3.012 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003547/0.5356, allocations: 213 kB / 0.559 GB, free: 2.793 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.774e-05/0.5357, allocations: 29.2 kB / 0.5591 GB, free: 2.762 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001984/0.5359, allocations: 289.5 kB / 0.5593 GB, free: 2.477 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001191/0.536, allocations: 110.5 kB / 0.5594 GB, free: 2.367 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.052e-05/0.536, allocations: 0 / 0.5594 GB, free: 2.367 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002144/0.5363, allocations: 334.8 kB / 0.5598 GB, free: 2.031 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003139/0.5366, allocations: 73.31 kB / 0.5598 GB, free: 1.957 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005522/0.5372, allocations: 399.5 kB / 0.5602 GB, free: 1.406 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00039/0.5376, allocations: 139.8 kB / 0.5603 GB, free: 1.27 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.5376, allocations: 0 / 0.5603 GB, free: 1.27 MB / 394.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001132/0.5387, allocations: 417.7 kB / 0.5607 GB, free: 0.8555 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.5388, allocations: 7.469 kB / 0.5607 GB, free: 0.8516 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.219e-05/0.5388, allocations: 16 kB / 0.5608 GB, free: 0.8359 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.4e-05/0.5389, allocations: 16 kB / 0.5608 GB, free: 0.8203 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009487/0.5398, allocations: 151.7 kB / 0.5609 GB, free: 0.6719 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.677e-05/0.5399, allocations: 23.84 kB / 0.5609 GB, free: 0.6484 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005086/0.5404, allocations: 43.61 kB / 0.561 GB, free: 0.6055 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.105e-05/0.5405, allocations: 36.28 kB / 0.561 GB, free: 0.5703 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 71 * 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.0001432/0.5406, allocations: 54.77 kB / 0.5611 GB, free: 0.5117 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002467/0.5409, allocations: 27.72 kB / 0.5611 GB, free: 496 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001244/0.541, allocations: 37.69 kB / 0.5611 GB, free: 460 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.377e-05/0.541, allocations: 11.91 kB / 0.5611 GB, free: 448 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.5411, allocations: 0 / 0.5611 GB, free: 448 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.389e-05/0.5411, allocations: 4 kB / 0.5611 GB, free: 444 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001958/0.543, allocations: 0.5932 MB / 0.5617 GB, free: 15.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.05e-06/0.5431, allocations: 0 / 0.5617 GB, free: 15.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009932/0.5441, allocations: 87.94 kB / 0.5618 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-05/0.5441, allocations: 7.938 kB / 0.5618 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.404e-05/0.5442, allocations: 8 kB / 0.5618 GB, free: 15.69 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.077e-05/0.5442, allocations: 4 kB / 0.5618 GB, free: 15.68 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.135e-06/0.5442, allocations: 8.062 kB / 0.5618 GB, free: 15.68 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009174/0.5451, allocations: 0.8733 MB / 0.5627 GB, free: 14.72 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001159/0.5453, allocations: 112.6 kB / 0.5628 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.761e-05/0.5454, allocations: 7.938 kB / 0.5628 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005578/0.5459, allocations: 16.11 kB / 0.5628 GB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.677e-05/0.546, allocations: 19.97 kB / 0.5628 GB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.522e-05/0.546, allocations: 12 kB / 0.5628 GB, free: 14.54 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.000207/0.5463, allocations: 153.2 kB / 0.563 GB, free: 14.39 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001002/0.5473, allocations: 99.69 kB / 0.5631 GB, free: 14.29 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 26 * 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.0002041/0.5475, allocations: 103.2 kB / 0.5632 GB, free: 14.18 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0005966/0.5481, allocations: 230.5 kB / 0.5634 GB, free: 13.96 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.5481, allocations: 4.062 kB / 0.5634 GB, free: 13.96 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001846/0.5483, allocations: 71.86 kB / 0.5635 GB, free: 13.89 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009688/0.5493, allocations: 51.66 kB / 0.5635 GB, free: 13.84 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003454/0.5528, allocations: 1.478 MB / 0.565 GB, free: 12.31 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006751/0.5535, allocations: 0.8377 MB / 0.5658 GB, free: 11.44 MB / 410.7 MB Notification: Performance of SimCode: time 1.352e-06/0.5535, allocations: 0 / 0.5658 GB, free: 11.44 MB / 410.7 MB Notification: Performance of Templates: time 0.01072/0.5642, allocations: 3.961 MB / 0.5697 GB, free: 7.48 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches