Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.MultiBody.Forces.Torque2,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_ModelicaTest.MultiBody.Forces.Torque2") translateModel(ModelicaTest.MultiBody.Forces.Torque2,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_ModelicaTest.MultiBody.Forces.Torque2") [: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.0008891/0.0008891, allocations: 190.4 kB / 7.803 MB, free: 2.445 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9884/0.9884, allocations: 205.2 MB / 213.4 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000774/0.0007741, allocations: 86.06 kB / 261.4 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1471/0.1471, allocations: 43.5 MB / 352.9 MB, free: 1.941 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.462e-06/6.483e-06, allocations: 0 / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2065/0.2065, allocations: 58.83 MB / 476.5 MB, free: 5.219 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1246/0.3312, allocations: 110.7 MB / 0.5735 GB, free: 4.176 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002178/0.3314, allocations: 75.97 kB / 0.5736 GB, free: 4.102 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.6116/0.9431, allocations: 233.4 MB / 0.8015 GB, free: 3.836 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004791/0.9436, allocations: 252 kB / 0.8017 GB, free: 3.59 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: 4457 * Number of variables: 4457 Notification: Performance of Generate backend data structure: time 0.03104/0.9747, allocations: 12.3 MB / 0.8137 GB, free: 7.18 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.9747, allocations: 8.031 kB / 0.8137 GB, free: 7.172 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1874/1.162, allocations: 12.38 MB / 0.8258 GB, free: 88.95 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02846/1.191, allocations: 13.43 MB / 0.8389 GB, free: 88.35 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005635/1.191, allocations: 420.3 kB / 0.8393 GB, free: 88.35 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004652/1.196, allocations: 0.7504 MB / 0.8401 GB, free: 88.34 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0278/1.224, allocations: 18.1 MB / 0.8578 GB, free: 88.27 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04511/1.269, allocations: 26.58 MB / 0.8837 GB, free: 82.25 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006979/1.27, allocations: 155.6 kB / 0.8839 GB, free: 82.24 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003881/1.273, allocations: 64.34 kB / 0.8839 GB, free: 82.24 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003678/1.277, allocations: 3.051 MB / 0.8869 GB, free: 82.21 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3068/1.584, allocations: 124.1 MB / 1.008 GB, free: 40.31 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01161/1.596, allocations: 11.47 MB / 1.019 GB, free: 39.01 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008463/1.604, allocations: 8.194 MB / 1.027 GB, free: 38.94 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03249/1.637, allocations: 22.24 MB / 1.049 GB, free: 35.32 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.297e-05/1.637, allocations: 97.83 kB / 1.049 GB, free: 35.27 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=510): time 7.825e-06/1.637, allocations: 0 / 1.049 GB, free: 35.27 MB / 0.4948 GB Notification: Performance of matching and sorting (n=596): time 0.103/1.74, allocations: 56.84 MB / 1.105 GB, free: 19.12 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.145e-05/1.74, allocations: 371.1 kB / 1.105 GB, free: 18.75 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01121/1.751, allocations: 8.329 MB / 1.113 GB, free: 15.76 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001021/1.752, allocations: 29.2 kB / 1.113 GB, free: 15.73 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003172/1.755, allocations: 7.878 MB / 1.121 GB, free: 9.758 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002155/1.758, allocations: 2.157 MB / 1.123 GB, free: 8.152 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006589/1.758, allocations: 0 / 1.123 GB, free: 8.152 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0006288/1.759, allocations: 0.9827 MB / 1.124 GB, free: 7.449 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008318/1.767, allocations: 6.603 MB / 1.13 GB, free: 1.531 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03497/1.802, allocations: 17.04 MB / 1.147 GB, free: 3.676 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0151/1.817, allocations: 9.992 MB / 1.157 GB, free: 11.7 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002627/1.818, allocations: 88 kB / 1.157 GB, free: 11.61 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2070) (initialization): time 0.04828/1.866, allocations: 23.01 MB / 1.179 GB, free: 9.582 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/1.866, allocations: 8.188 kB / 1.179 GB, free: 9.574 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007587/1.867, allocations: 311.9 kB / 1.18 GB, free: 9.27 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008648/1.875, allocations: 3.148 MB / 1.183 GB, free: 6.836 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01472/1.89, allocations: 3.745 MB / 1.186 GB, free: 3.621 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1858/2.076, allocations: 20.54 MB / 1.206 GB, free: 124 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01419/2.09, allocations: 0.5261 MB / 1.207 GB, free: 124 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003857/2.094, allocations: 0.9122 MB / 1.208 GB, free: 124 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1400 * Number of states: 0 () * Number of discrete variables: 120 (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],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[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],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[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 (1950): * Single equations (assignments): 1943 * 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%) 21,(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003934/2.098, allocations: 0.8995 MB / 1.209 GB, free: 123.9 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002272/2.1, allocations: 0.9012 MB / 1.21 GB, free: 123.9 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02064/2.121, allocations: 13.46 MB / 1.223 GB, free: 123.6 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.005e-05/2.121, allocations: 60.19 kB / 1.223 GB, free: 123.6 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.926e-05/2.121, allocations: 21.38 kB / 1.223 GB, free: 123.6 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.725e-05/2.121, allocations: 32.44 kB / 1.223 GB, free: 123.6 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04524/2.166, allocations: 27.36 MB / 1.25 GB, free: 122.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.251e-05/2.167, allocations: 2.156 kB / 1.25 GB, free: 122.7 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00591/2.172, allocations: 1.041 MB / 1.251 GB, free: 122.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006552/2.179, allocations: 2.629 MB / 1.253 GB, free: 122.6 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001018/2.18, allocations: 14.09 kB / 1.253 GB, free: 122.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02118/2.201, allocations: 19.26 MB / 1.272 GB, free: 116.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/2.201, allocations: 3.656 kB / 1.272 GB, free: 116.1 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02745/2.229, allocations: 21.68 MB / 1.293 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005783/2.235, allocations: 1.881 MB / 1.295 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002108/2.237, allocations: 5.891 kB / 1.295 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004527/2.241, allocations: 218 kB / 1.295 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000717/2.242, allocations: 277.7 kB / 1.295 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004938/2.242, allocations: 150.4 kB / 1.296 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.009559/2.252, allocations: 5.649 MB / 1.301 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01533/2.267, allocations: 2.641 MB / 1.304 GB, free: 105.3 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute6.phi,Revolute6.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 (507): * Single equations (assignments): 500 * 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.001264/2.269, allocations: 182 kB / 1.304 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02193/2.291, allocations: 16.24 MB / 1.32 GB, free: 96.7 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.301e-06/2.291, allocations: 0 / 1.32 GB, free: 96.7 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.008808/2.299, allocations: 6.572 MB / 1.326 GB, free: 90.88 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005119/2.305, allocations: 0.9549 MB / 1.327 GB, free: 90.09 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04392/2.349, allocations: 25.09 MB / 1.352 GB, free: 68.09 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01201/2.361, allocations: 9.593 MB / 1.361 GB, free: 61.05 MB / 0.5417 GB Notification: Performance of SimCode: time 9.42e-07/2.361, allocations: 0 / 1.361 GB, free: 61.05 MB / 0.5417 GB Notification: Performance of Templates: time 0.3525/2.713, allocations: 120.4 MB / 1.479 GB, free: 107.9 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Torque2/Torque2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Torque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches