Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2") translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001024/0.001025, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001088/0.001088, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.493/1.493, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.228/0.228, allocations: 46.1 MB / 344.1 MB, free: 11.64 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 80.78 kB / 417.6 MB, free: 19.8 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.1359, allocations: 62.44 MB / 480 MB, free: 5.336 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02022/0.1562, allocations: 18.14 MB / 498.2 MB, free: 3.109 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01305/0.1693, allocations: 5.291 MB / 0.4916 GB, free: 13.8 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003452/0.1728, allocations: 107.7 kB / 0.4917 GB, free: 13.7 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005936/0.1788, allocations: 3.052 MB / 0.4947 GB, free: 10.63 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007553/0.1864, allocations: 2.541 MB / 0.4972 GB, free: 8.082 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002495/0.1889, allocations: 1.014 MB / 0.4982 GB, free: 7.066 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.3075/0.4964, allocations: 7.661 MB / 0.5057 GB, free: 13.56 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008126/0.5046, allocations: 4.172 MB / 0.5098 GB, free: 13.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006529/0.5112, allocations: 2.241 MB / 0.5119 GB, free: 13.08 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007834/0.5191, allocations: 3.228 MB / 0.5151 GB, free: 12.74 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003043/0.5222, allocations: 451.9 kB / 0.5155 GB, free: 12.74 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006924/0.5291, allocations: 1.295 MB / 0.5168 GB, free: 12.74 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005835/0.535, allocations: 2.796 MB / 0.5195 GB, free: 12.46 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008394/0.5434, allocations: 3.185 MB / 0.5226 GB, free: 11.03 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01282/0.5563, allocations: 9.594 MB / 0.532 GB, free: 6.914 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.5563, allocations: 0 / 0.532 GB, free: 6.914 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5563, allocations: 0 / 0.532 GB, free: 6.914 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003748/0.5567, allocations: 0 / 0.532 GB, free: 6.914 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.01799/0.5747, allocations: 7.203 MB / 0.539 GB, free: 2.227 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.5747, allocations: 9.375 kB / 0.539 GB, free: 2.227 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01555/0.5903, allocations: 3.837 MB / 0.5428 GB, free: 284 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009328/0.5997, allocations: 3.94 MB / 0.5466 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002681/0.6, allocations: 320.4 kB / 0.5469 GB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001964/0.6019, allocations: 429.8 kB / 0.5474 GB, free: 13.02 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02889/0.6308, allocations: 15.59 MB / 0.5626 GB, free: 12.94 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001901/0.6311, allocations: 58.02 kB / 0.5626 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007259/0.6318, allocations: 194.8 kB / 0.5628 GB, free: 12.77 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006087/0.6379, allocations: 3.385 MB / 0.5661 GB, free: 9.418 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03502/0.6729, allocations: 14.81 MB / 0.5806 GB, free: 10.77 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09029/0.7633, allocations: 55.28 MB / 0.6346 GB, free: 3.074 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01983/0.7831, allocations: 8.216 MB / 0.6426 GB, free: 10.64 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007743/0.7909, allocations: 4.842 MB / 0.6473 GB, free: 5.789 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003107/0.7941, allocations: 2.203 MB / 0.6495 GB, free: 3.219 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.851e-05/0.7942, allocations: 65.08 kB / 0.6495 GB, free: 3.145 MB / 494.1 MB Notification: Performance of pre-optimization done (n=367): time 8.636e-06/0.7942, allocations: 0 / 0.6495 GB, free: 3.145 MB / 494.1 MB Notification: Performance of matching and sorting (n=419): time 0.112/0.9062, allocations: 40.16 MB / 0.6888 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.426e-05/0.9063, allocations: 116 kB / 0.6889 GB, free: 10.9 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006195/0.9126, allocations: 4.286 MB / 0.6931 GB, free: 6.594 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001155/0.9137, allocations: 84.75 kB / 0.6931 GB, free: 6.508 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002773/0.9165, allocations: 3.784 MB / 0.6968 GB, free: 2.719 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002436/0.919, allocations: 1.497 MB / 0.6983 GB, free: 1.23 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002734/0.9217, allocations: 1.57 MB / 0.6998 GB, free: 15.66 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001133/0.9218, allocations: 305.1 kB / 0.7001 GB, free: 15.36 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006089/0.9279, allocations: 4.072 MB / 0.7041 GB, free: 11.28 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009354/0.9373, allocations: 7.846 MB / 0.7118 GB, free: 1.684 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3421/1.279, allocations: 12.88 MB / 0.7243 GB, free: 178.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001984/1.28, allocations: 35.78 kB / 0.7244 GB, free: 178.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.03793/1.318, allocations: 14.73 MB / 0.7388 GB, free: 174.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001108/1.318, allocations: 66.59 kB / 0.7388 GB, free: 174.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001896/1.318, allocations: 127.4 kB / 0.739 GB, free: 174.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008571/1.327, allocations: 2.935 MB / 0.7418 GB, free: 173.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007161/1.334, allocations: 1.807 MB / 0.7436 GB, free: 173.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01895/1.353, allocations: 15.96 MB / 0.7592 GB, free: 165.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007415/1.36, allocations: 0.5016 MB / 0.7597 GB, free: 165.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001872/1.362, allocations: 430.4 kB / 0.7601 GB, free: 165.1 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 50 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (942): * Single equations (assignments): 934 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(6,32,69.4%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007207/1.369, allocations: 2.864 MB / 0.7629 GB, free: 162.6 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00117/1.371, allocations: 448.6 kB / 0.7633 GB, free: 162.4 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01715/1.388, allocations: 10.94 MB / 0.774 GB, free: 152.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.083e-05/1.388, allocations: 59.98 kB / 0.774 GB, free: 152.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.137e-05/1.388, allocations: 8 kB / 0.774 GB, free: 152.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.905e-05/1.388, allocations: 15.94 kB / 0.7741 GB, free: 152.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04019/1.428, allocations: 21.69 MB / 0.7952 GB, free: 130.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.755e-05/1.428, allocations: 12.94 kB / 0.7953 GB, free: 130.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0036/1.432, allocations: 0.6786 MB / 0.7959 GB, free: 130.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007667/1.44, allocations: 2.748 MB / 0.7986 GB, free: 127.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001161/1.441, allocations: 79.92 kB / 0.7987 GB, free: 127.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01535/1.456, allocations: 14.56 MB / 0.8129 GB, free: 112.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-05/1.456, allocations: 17.98 kB / 0.8129 GB, free: 112.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02327/1.479, allocations: 15.56 MB / 0.8281 GB, free: 96.82 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001634/1.481, allocations: 0.4914 MB / 0.8286 GB, free: 96.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001754/1.483, allocations: 75.94 kB / 0.8287 GB, free: 96.23 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003795/1.487, allocations: 313 kB / 0.829 GB, free: 95.93 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001113/1.488, allocations: 266 kB / 0.8292 GB, free: 95.66 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003283/1.488, allocations: 113.9 kB / 0.8293 GB, free: 95.55 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004139/1.492, allocations: 2.685 MB / 0.832 GB, free: 92.87 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.51e-07/1.492, allocations: 0 / 0.832 GB, free: 92.87 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0111/1.503, allocations: 1.661 MB / 0.8336 GB, free: 91.22 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (334): * Single equations (assignments): 326 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,9,100.0%), (6,29,69.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001263/1.505, allocations: 235.3 kB / 0.8338 GB, free: 90.99 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02963/1.534, allocations: 19.96 MB / 0.8533 GB, free: 71.02 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.384e-05/1.534, allocations: 0 / 0.8533 GB, free: 71.02 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005375/1.54, allocations: 4.374 MB / 0.8576 GB, free: 66.62 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004026/1.544, allocations: 0.715 MB / 0.8583 GB, free: 65.92 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02437/1.568, allocations: 15.81 MB / 0.8737 GB, free: 49.95 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007016/1.575, allocations: 4.539 MB / 0.8781 GB, free: 45.36 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.008853/1.584, allocations: 2.723 MB / 0.8808 GB, free: 42.63 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001908/1.586, allocations: 347.3 kB / 0.8811 GB, free: 42.29 MB / 0.545 GB Notification: Performance of SimCode: time 1.403e-06/1.586, allocations: 0 / 0.8811 GB, free: 42.29 MB / 0.545 GB Notification: Performance of Templates: time 0.4208/2.007, allocations: 72.11 MB / 0.9515 GB, free: 168.2 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches