Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.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.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_trunk_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_trunk_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 trunk/package.mo): time 0.001678/0.001678, allocations: 191.5 kB / 8.534 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.177/1.177, allocations: 225.5 MB / 234.4 MB, free: 3.402 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009059/0.000906, allocations: 90.12 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1662/0.1662, allocations: 45.15 MB / 383.3 MB, free: 0.543 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 5.32e-06/5.36e-06, allocations: 0 / 452.6 MB, free: 76.21 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08833/0.08835, allocations: 63.24 MB / 0.5038 GB, free: 13.04 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2951/0.3835, allocations: 112.4 MB / 0.6136 GB, free: 6.746 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002208/0.3838, allocations: 80.42 kB / 0.6136 GB, free: 6.707 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.7647/1.148, allocations: 220.3 MB / 0.8288 GB, free: 74.71 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0008422/1.149, allocations: 235.1 kB / 0.829 GB, free: 74.7 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4009 * Number of variables: 4009 Notification: Performance of Generate backend data structure: time 0.03595/1.185, allocations: 11.67 MB / 0.8404 GB, free: 70.47 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/1.185, allocations: 15.59 kB / 0.8404 GB, free: 70.47 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04746/1.233, allocations: 12.18 MB / 0.8523 GB, free: 69.62 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03199/1.265, allocations: 11.4 MB / 0.8634 GB, free: 68.14 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008989/1.266, allocations: 380.5 kB / 0.8638 GB, free: 68.14 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005219/1.271, allocations: 0.6903 MB / 0.8645 GB, free: 68.13 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02824/1.299, allocations: 16.3 MB / 0.8804 GB, free: 56.23 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04138/1.341, allocations: 24.27 MB / 0.9041 GB, free: 29.85 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004042/1.341, allocations: 138.7 kB / 0.9042 GB, free: 29.71 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001683/1.343, allocations: 67.91 kB / 0.9043 GB, free: 29.64 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002605/1.345, allocations: 2.7 MB / 0.9069 GB, free: 26.94 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3208/1.666, allocations: 116.4 MB / 1.021 GB, free: 107.7 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0104/1.677, allocations: 10.38 MB / 1.031 GB, free: 106.4 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007177/1.684, allocations: 7.312 MB / 1.038 GB, free: 106.4 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02946/1.713, allocations: 19.49 MB / 1.057 GB, free: 102.9 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.944e-05/1.713, allocations: 92.64 kB / 1.057 GB, free: 102.9 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=417): time 6.592e-06/1.713, allocations: 0 / 1.057 GB, free: 102.9 MB / 0.5573 GB Notification: Performance of matching and sorting (n=501): time 0.1194/1.833, allocations: 52.26 MB / 1.108 GB, free: 82.73 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001373/1.833, allocations: 361.1 kB / 1.108 GB, free: 82.35 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01551/1.849, allocations: 7.695 MB / 1.116 GB, free: 76.17 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.001503/1.85, allocations: 33.7 kB / 1.116 GB, free: 76.13 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.005033/1.855, allocations: 7.144 MB / 1.123 GB, free: 69.75 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.003503/1.859, allocations: 1.826 MB / 1.125 GB, free: 68.11 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002169/1.861, allocations: 0 / 1.125 GB, free: 68.11 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0008821/1.862, allocations: 0.903 MB / 1.126 GB, free: 67.37 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009845/1.872, allocations: 5.65 MB / 1.131 GB, free: 62.32 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0139/1.886, allocations: 13.56 MB / 1.144 GB, free: 46.01 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01315/1.899, allocations: 8.674 MB / 1.153 GB, free: 39.1 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003316/1.899, allocations: 83.47 kB / 1.153 GB, free: 39.02 MB / 0.5573 GB Notification: Performance of matching and sorting (n=1830) (initialization): time 0.04054/1.94, allocations: 20.14 MB / 1.172 GB, free: 22.14 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/1.94, allocations: 12 kB / 1.173 GB, free: 22.12 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003642/1.94, allocations: 280 kB / 1.173 GB, free: 21.85 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007726/1.948, allocations: 3.119 MB / 1.176 GB, free: 19.45 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01224/1.96, allocations: 3.285 MB / 1.179 GB, free: 16.63 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.274/2.234, allocations: 20.61 MB / 1.199 GB, free: 149.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01294/2.247, allocations: 460.6 kB / 1.2 GB, free: 149.7 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004168/2.251, allocations: 0.8237 MB / 1.2 GB, free: 149.7 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1282 * Number of states: 0 () * Number of discrete variables: 132 (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.torqueArrow.arrowLine.twoHeadedArrow,torque4.torqueArrow.headAtOrigin,torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceArrow.arrowLine.twoHeadedArrow,torque4.forceArrow.headAtOrigin,torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueArrow.arrowLine.twoHeadedArrow,torque3.torqueArrow.headAtOrigin,torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceArrow.arrowLine.twoHeadedArrow,torque3.forceArrow.headAtOrigin,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.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 (1710): * Single equations (assignments): 1703 * 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.003556/2.255, allocations: 0.8404 MB / 1.201 GB, free: 149.5 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001933/2.257, allocations: 0.8199 MB / 1.202 GB, free: 149.5 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02135/2.278, allocations: 11.67 MB / 1.213 GB, free: 149.4 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001191/2.278, allocations: 47.69 kB / 1.213 GB, free: 149.4 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.459e-05/2.278, allocations: 20.41 kB / 1.213 GB, free: 149.4 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001059/2.279, allocations: 29.48 kB / 1.214 GB, free: 149.4 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05358/2.332, allocations: 24.08 MB / 1.237 GB, free: 148.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.456e-05/2.332, allocations: 2.344 kB / 1.237 GB, free: 148.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005751/2.338, allocations: 0.8597 MB / 1.238 GB, free: 148.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007492/2.346, allocations: 2.628 MB / 1.24 GB, free: 148.4 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001448/2.347, allocations: 14.84 kB / 1.24 GB, free: 148.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02384/2.371, allocations: 19.26 MB / 1.259 GB, free: 143.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.154e-06/2.371, allocations: 3.656 kB / 1.259 GB, free: 143.2 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02956/2.4, allocations: 18.75 MB / 1.278 GB, free: 136.4 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003401/2.404, allocations: 0.8094 MB / 1.278 GB, free: 136.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003804/2.408, allocations: 17.09 kB / 1.278 GB, free: 136.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005725/2.414, allocations: 174.6 kB / 1.279 GB, free: 136.2 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001093/2.415, allocations: 230.7 kB / 1.279 GB, free: 136.1 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004269/2.415, allocations: 122.1 kB / 1.279 GB, free: 136.1 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.01152/2.427, allocations: 5.22 MB / 1.284 GB, free: 134.3 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01813/2.445, allocations: 2.361 MB / 1.286 GB, free: 134.3 MB / 0.5573 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 (409): * Single equations (assignments): 402 * 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.00159/2.446, allocations: 180.6 kB / 1.286 GB, free: 134.2 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.02359/2.47, allocations: 14.12 MB / 1.3 GB, free: 129 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.457e-06/2.47, allocations: 0 / 1.3 GB, free: 129 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.009425/2.479, allocations: 5.701 MB / 1.306 GB, free: 124 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007479/2.487, allocations: 0.9654 MB / 1.307 GB, free: 123.2 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05135/2.538, allocations: 22.46 MB / 1.329 GB, free: 103.6 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01977/2.558, allocations: 8.763 MB / 1.337 GB, free: 97.16 MB / 0.5573 GB Notification: Performance of SimCode: time 1.673e-06/2.558, allocations: 0 / 1.337 GB, free: 97.16 MB / 0.5573 GB Notification: Performance of Templates: time 0.4954/3.054, allocations: 106.2 MB / 1.441 GB, free: 139.9 MB / 0.5573 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque2/Torque2.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches