Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.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.MultiBody.Forces.Torque3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w|Revolute5.phi|Revolute5.w|Revolute6.phi|Revolute6.w|Revolute7.phi|Revolute7.w|Revolute8.phi|Revolute8.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3") translateModel(ModelicaTest.MultiBody.Forces.Torque3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w|Revolute5.phi|Revolute5.w|Revolute6.phi|Revolute6.w|Revolute7.phi|Revolute7.w|Revolute8.phi|Revolute8.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3") [: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.001663/0.001663, allocations: 172 kB / 8.148 MB, free: 2.195 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.817/1.817, allocations: 205.2 MB / 213.8 MB, free: 13.92 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.001233/0.001233, allocations: 95.02 kB / 261.8 MB, free: 13.62 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.2544/0.2544, allocations: 43.51 MB / 353.2 MB, free: 2.023 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.985e-06/8.125e-06, allocations: 0 / 417.7 MB, free: 40.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2721, allocations: 58.85 MB / 476.5 MB, free: 5.078 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1877/0.4598, allocations: 109.3 MB / 0.5721 GB, free: 5.734 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002871/0.4602, allocations: 87.44 kB / 0.5722 GB, free: 5.652 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.07/1.53, allocations: 217.3 MB / 0.7843 GB, free: 6.984 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0007525/1.531, allocations: 235.9 kB / 0.7846 GB, free: 6.754 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4187 * Number of variables: 4187 Notification: Performance of Generate backend data structure: time 0.04878/1.58, allocations: 11.34 MB / 0.7956 GB, free: 11.34 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/1.58, allocations: 8.031 kB / 0.7956 GB, free: 11.33 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09143/1.671, allocations: 12.2 MB / 0.8076 GB, free: 15.08 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04945/1.721, allocations: 12.69 MB / 0.82 GB, free: 2.43 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009482/1.722, allocations: 392 kB / 0.8203 GB, free: 2.047 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00664/1.728, allocations: 0.7029 MB / 0.821 GB, free: 1.344 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05418/1.783, allocations: 17.27 MB / 0.8379 GB, free: 72 kB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2619/2.045, allocations: 24.99 MB / 0.8623 GB, free: 119.6 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009387/2.046, allocations: 134 kB / 0.8624 GB, free: 119.6 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005936/2.052, allocations: 61.5 kB / 0.8625 GB, free: 119.6 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006128/2.058, allocations: 2.87 MB / 0.8653 GB, free: 119.6 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1981/2.256, allocations: 112.8 MB / 0.9754 GB, free: 57.75 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02283/2.279, allocations: 11.43 MB / 0.9866 GB, free: 52.61 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01695/2.296, allocations: 8.157 MB / 0.9945 GB, free: 49.23 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05868/2.355, allocations: 23.08 MB / 1.017 GB, free: 37.68 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.756e-05/2.355, allocations: 98.12 kB / 1.017 GB, free: 37.6 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=524): time 1.044e-05/2.355, allocations: 2.188 kB / 1.017 GB, free: 37.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=609): time 0.3873/2.742, allocations: 51.65 MB / 1.068 GB, free: 120.5 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/2.742, allocations: 322.9 kB / 1.068 GB, free: 120.2 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01967/2.762, allocations: 7.204 MB / 1.075 GB, free: 119.8 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001833/2.764, allocations: 25.7 kB / 1.075 GB, free: 119.8 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005088/2.769, allocations: 6.918 MB / 1.082 GB, free: 117.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.004071/2.773, allocations: 2.164 MB / 1.084 GB, free: 116 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002544/2.776, allocations: 0 / 1.084 GB, free: 116 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001358/2.777, allocations: 0.9311 MB / 1.085 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01732/2.794, allocations: 6.356 MB / 1.091 GB, free: 115.6 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02332/2.818, allocations: 14.17 MB / 1.105 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02269/2.84, allocations: 9.422 MB / 1.114 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003536/2.841, allocations: 78.94 kB / 1.114 GB, free: 105.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1907) (initialization): time 0.06588/2.907, allocations: 21.37 MB / 1.135 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/2.907, allocations: 3.875 kB / 1.135 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005476/2.907, allocations: 283.8 kB / 1.135 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01439/2.922, allocations: 2.988 MB / 1.138 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02683/2.949, allocations: 3.472 MB / 1.142 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05084/2.999, allocations: 20.74 MB / 1.162 GB, free: 94.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02517/3.025, allocations: 472.7 kB / 1.162 GB, free: 94.45 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006621/3.031, allocations: 0.8387 MB / 1.163 GB, free: 94.33 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1258 * Number of states: 0 () * Number of discrete variables: 108 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1787): * Single equations (assignments): 1780 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009903/3.041, allocations: 0.7486 MB / 1.164 GB, free: 93.73 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005563/3.047, allocations: 0.8144 MB / 1.165 GB, free: 93.29 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06524/3.112, allocations: 13.55 MB / 1.178 GB, free: 88.72 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002053/3.113, allocations: 58.25 kB / 1.178 GB, free: 88.72 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.118e-05/3.113, allocations: 19.78 kB / 1.178 GB, free: 88.71 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001608/3.113, allocations: 30.86 kB / 1.178 GB, free: 88.71 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09061/3.203, allocations: 27.2 MB / 1.204 GB, free: 71.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.383e-05/3.204, allocations: 0 / 1.204 GB, free: 71.14 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01368/3.217, allocations: 1.084 MB / 1.206 GB, free: 70.27 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01964/3.237, allocations: 2.63 MB / 1.208 GB, free: 68.35 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002468/3.239, allocations: 15.38 kB / 1.208 GB, free: 68.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05558/3.295, allocations: 19.24 MB / 1.227 GB, free: 50.97 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/3.295, allocations: 4 kB / 1.227 GB, free: 50.96 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2591/3.554, allocations: 21.51 MB / 1.248 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007568/3.562, allocations: 1.811 MB / 1.25 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004117/3.566, allocations: 8.781 kB / 1.25 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01099/3.577, allocations: 265.3 kB / 1.25 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002276/3.579, allocations: 286.9 kB / 1.25 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001437/3.581, allocations: 152.4 kB / 1.25 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.01384/3.595, allocations: 4.887 MB / 1.255 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01958/3.614, allocations: 2.485 MB / 1.258 GB, free: 103.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w,Revolute7.phi,Revolute7.w,Revolute8.phi,Revolute8.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (522): * Single equations (assignments): 515 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 18,(4,75.0%) 18,(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00227/3.617, allocations: 184.7 kB / 1.258 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.03797/3.655, allocations: 15.49 MB / 1.273 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.347e-06/3.655, allocations: 0 / 1.273 GB, free: 102.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02042/3.675, allocations: 6.665 MB / 1.279 GB, free: 102.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009147/3.684, allocations: 0.8404 MB / 1.28 GB, free: 102.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08322/3.768, allocations: 25.03 MB / 1.305 GB, free: 98.32 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02948/3.797, allocations: 9.029 MB / 1.313 GB, free: 97.3 MB / 0.5105 GB Notification: Performance of SimCode: time 2.134e-06/3.797, allocations: 0 / 1.313 GB, free: 97.3 MB / 0.5105 GB Notification: Performance of Templates: time 0.9679/4.765, allocations: 344.2 MB / 1.65 GB, free: 104.9 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Torque3/Torque3.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches