Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.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) 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(Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bodyOfConstraint.body.w_a.1.|bodyOfConstraint.body.w_a.2.|bodyOfConstraint.body.w_a.3.|bodyOfJoint.body.w_a.2.|joint.phi",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bodyOfConstraint.body.w_a.1.|bodyOfConstraint.body.w_a.2.|bodyOfConstraint.body.w_a.3.|bodyOfJoint.body.w_a.2.|joint.phi",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint") [: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.001884/0.001884, allocations: 196.3 kB / 8.531 MB, free: 492 kB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.217/1.217, allocations: 225.5 MB / 234.4 MB, free: 9.469 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001189/0.001189, allocations: 103 kB / 286.3 MB, free: 5.84 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 7.173e-06/7.293e-06, allocations: 0 / 343.1 MB, free: 13.04 MB / 290.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2239/0.224, allocations: 51.45 MB / 394.6 MB, free: 47.42 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1214/0.3454, allocations: 114.6 MB / 0.4972 GB, free: 9.262 MB / 386.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002281/0.3457, allocations: 86.64 kB / 0.4973 GB, free: 9.18 MB / 386.8 MB Notification: Performance of FrontEnd: time 0.4628/0.8086, allocations: 127.1 MB / 0.6214 GB, free: 50.26 MB / 418.8 MB Notification: Performance of Transformations before backend: time 0.000455/0.8091, allocations: 139.9 kB / 0.6215 GB, free: 50.12 MB / 418.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2341 * Number of variables: 2341 Notification: Performance of Generate backend data structure: time 0.02394/0.833, allocations: 7.066 MB / 0.6284 GB, free: 43 MB / 418.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.8331, allocations: 12.03 kB / 0.6285 GB, free: 42.99 MB / 418.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01188/0.845, allocations: 2.288 MB / 0.6307 GB, free: 40.69 MB / 418.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01645/0.8614, allocations: 6.545 MB / 0.6371 GB, free: 34.11 MB / 418.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003634/0.8618, allocations: 228 kB / 0.6373 GB, free: 33.89 MB / 418.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003106/0.865, allocations: 411.8 kB / 0.6377 GB, free: 33.49 MB / 418.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01759/0.8826, allocations: 10.33 MB / 0.6478 GB, free: 23.16 MB / 418.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02733/0.9099, allocations: 14.8 MB / 0.6622 GB, free: 7.07 MB / 418.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000359/0.9103, allocations: 91.19 kB / 0.6623 GB, free: 6.98 MB / 418.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002125/0.9125, allocations: 47.97 kB / 0.6624 GB, free: 6.934 MB / 418.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002047/0.9145, allocations: 1.569 MB / 0.6639 GB, free: 5.371 MB / 418.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2781/1.193, allocations: 73.6 MB / 0.7358 GB, free: 109.8 MB / 466.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005452/1.198, allocations: 4.713 MB / 0.7404 GB, free: 109.2 MB / 466.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004125/1.202, allocations: 3.887 MB / 0.7442 GB, free: 109.2 MB / 466.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01597/1.218, allocations: 11.31 MB / 0.7552 GB, free: 106.7 MB / 466.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.132e-05/1.218, allocations: 65.34 kB / 0.7553 GB, free: 106.6 MB / 466.8 MB Notification: Performance of pre-optimization done (n=266): time 6.492e-06/1.218, allocations: 3.812 kB / 0.7553 GB, free: 106.6 MB / 466.8 MB Notification: Performance of matching and sorting (n=349): time 0.1033/1.322, allocations: 40.84 MB / 0.7952 GB, free: 100.1 MB / 466.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.176e-05/1.322, allocations: 164.4 kB / 0.7953 GB, free: 99.91 MB / 466.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006974/1.329, allocations: 4.438 MB / 0.7997 GB, free: 98.26 MB / 466.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008139/1.33, allocations: 27.61 kB / 0.7997 GB, free: 98.23 MB / 466.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002124/1.332, allocations: 4.325 MB / 0.8039 GB, free: 94.93 MB / 466.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001771/1.334, allocations: 1.253 MB / 0.8051 GB, free: 94 MB / 466.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004515/1.334, allocations: 3.719 kB / 0.8051 GB, free: 94 MB / 466.8 MB Notification: Performance of setup shared object (initialization): time 0.0004288/1.334, allocations: 0.7003 MB / 0.8058 GB, free: 93.53 MB / 466.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005251/1.34, allocations: 4.053 MB / 0.8098 GB, free: 92.07 MB / 466.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007066/1.347, allocations: 9.298 MB / 0.8189 GB, free: 83.02 MB / 466.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007658/1.355, allocations: 6.104 MB / 0.8248 GB, free: 78.15 MB / 466.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001158/1.355, allocations: 56 kB / 0.8249 GB, free: 78.1 MB / 466.8 MB Notification: Performance of matching and sorting (n=1209) (initialization): time 0.03712/1.392, allocations: 17.02 MB / 0.8415 GB, free: 64.67 MB / 466.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/1.392, allocations: 4 kB / 0.8415 GB, free: 64.66 MB / 466.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001613/1.392, allocations: 188 kB / 0.8417 GB, free: 64.48 MB / 466.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01807/1.41, allocations: 5.122 MB / 0.8467 GB, free: 61.03 MB / 466.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0073/1.417, allocations: 2.015 MB / 0.8486 GB, free: 59.28 MB / 466.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04139/1.459, allocations: 33.26 MB / 0.8811 GB, free: 29.77 MB / 466.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009096/1.468, allocations: 323.1 kB / 0.8814 GB, free: 29.51 MB / 466.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002154/1.47, allocations: 0.576 MB / 0.882 GB, free: 28.98 MB / 466.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 852 * Number of states: 0 () * Number of discrete variables: 62 (freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[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],springOfConstraint.color[3],springOfConstraint.color[2],springOfConstraint.color[1],springOfConstraint.massColor[3],springOfConstraint.massColor[2],springOfConstraint.massColor[1],springOfJoint.color[3],springOfJoint.color[2],springOfJoint.color[1],springOfJoint.massColor[3],springOfJoint.massColor[2],springOfJoint.massColor[1],bodyOfConstraint.color[3],bodyOfConstraint.color[2],bodyOfConstraint.color[1],bodyOfConstraint.body.sphereColor[3],bodyOfConstraint.body.sphereColor[2],bodyOfConstraint.body.sphereColor[1],bodyOfConstraint.frameTranslation.color[3],bodyOfConstraint.frameTranslation.color[2],bodyOfConstraint.frameTranslation.color[1],bodyOfJoint.color[3],bodyOfJoint.color[2],bodyOfJoint.color[1],bodyOfJoint.body.sphereColor[3],bodyOfJoint.body.sphereColor[2],bodyOfJoint.body.sphereColor[1],bodyOfJoint.frameTranslation.color[3],bodyOfJoint.frameTranslation.color[2],bodyOfJoint.frameTranslation.color[1],sensorConstraintRelative.arrow.arrowLine.twoHeadedArrow,sensorConstraintRelative.arrow.headAtOrigin,sensorConstraintRelative.arrowColor[3],sensorConstraintRelative.arrowColor[2],sensorConstraintRelative.arrowColor[1],constraint.sphereColor[3],constraint.sphereColor[2],constraint.sphereColor[1],joint.cylinderColor[3],joint.cylinderColor[2],joint.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1075): * Single equations (assignments): 1064 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(3,100.0%) 38,(2,100.0%) 23,(2,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.00208/1.472, allocations: 0.5777 MB / 0.8826 GB, free: 28.4 MB / 466.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001426/1.474, allocations: 0.4941 MB / 0.883 GB, free: 27.9 MB / 466.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02362/1.497, allocations: 10.27 MB / 0.8931 GB, free: 18.13 MB / 466.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001438/1.498, allocations: 36 kB / 0.8931 GB, free: 18.09 MB / 466.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.01999/1.518, allocations: 9.363 MB / 0.9023 GB, free: 8.633 MB / 466.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001077/1.518, allocations: 11.95 kB / 0.9023 GB, free: 8.621 MB / 466.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.28/1.798, allocations: 21.72 MB / 0.9235 GB, free: 130.8 MB / 466.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.122e-05/1.798, allocations: 7.219 kB / 0.9235 GB, free: 130.8 MB / 466.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00384/1.802, allocations: 431.9 kB / 0.9239 GB, free: 130.8 MB / 466.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01912/1.821, allocations: 3.55 MB / 0.9274 GB, free: 130.8 MB / 466.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001082/1.822, allocations: 16.19 kB / 0.9274 GB, free: 130.8 MB / 466.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04861/1.871, allocations: 24.12 MB / 0.9509 GB, free: 125.9 MB / 466.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01433/1.885, allocations: 10.67 MB / 0.9613 GB, free: 122.6 MB / 466.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02513/1.91, allocations: 14.6 MB / 0.9756 GB, free: 117.4 MB / 466.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001356/1.911, allocations: 0.5276 MB / 0.9761 GB, free: 117.2 MB / 466.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001612/1.913, allocations: 7.031 kB / 0.9761 GB, free: 117.2 MB / 466.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003651/1.917, allocations: 109.2 kB / 0.9762 GB, free: 117.2 MB / 466.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006948/1.917, allocations: 159.2 kB / 0.9764 GB, free: 117.2 MB / 466.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003184/1.918, allocations: 91.75 kB / 0.9765 GB, free: 117.2 MB / 466.8 MB Notification: Performance of sort global known variables: time 0.004985/1.923, allocations: 2.99 MB / 0.9794 GB, free: 116.1 MB / 466.8 MB Notification: Performance of remove unused functions: time 0.0126/1.935, allocations: 1.757 MB / 0.9811 GB, free: 116.1 MB / 466.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 ($STATESET2.x,$STATESET1.x,joint.phi,joint.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (215): * Single equations (assignments): 207 * Array equations: 4 * 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: 3 {(1,100.0%) 11,(3,100.0%) 35,(3,100.0%) 25} * Non-linear torn systems: 1 {3 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.001537/1.937, allocations: 238.9 kB / 0.9813 GB, free: 116 MB / 466.8 MB Notification: Performance of simCode: created initialization part: time 0.01672/1.954, allocations: 10.16 MB / 0.9913 GB, free: 112.4 MB / 466.8 MB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/1.954, allocations: 2.25 kB / 0.9913 GB, free: 112.4 MB / 466.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005246/1.959, allocations: 3.93 MB / 0.9951 GB, free: 110.7 MB / 466.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003781/1.963, allocations: 0.6179 MB / 0.9957 GB, free: 110.4 MB / 466.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02574/1.989, allocations: 13.49 MB / 1.009 GB, free: 99.6 MB / 466.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00768/1.996, allocations: 5.399 MB / 1.014 GB, free: 95.54 MB / 466.8 MB Notification: Performance of SimCode: time 7.32e-07/1.996, allocations: 7.312 kB / 1.014 GB, free: 95.53 MB / 466.8 MB Notification: Performance of Templates: time 0.3486/2.345, allocations: 90.52 MB / 1.103 GB, free: 122.5 MB / 466.8 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Constraints/RevoluteConstraint/RevoluteConstraint.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches