Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 99.75 kB / 15.98 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 196.4 kB / 16.91 MB, free: 6.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.667/1.667, allocations: 205.1 MB / 222.8 MB, free: 4.691 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4075/0.4075, allocations: 43.5 MB / 313.6 MB, free: 8.547 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001772/0.001772, allocations: 71.89 kB / 382.2 MB, free: 8.617 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1915/0.1933, allocations: 57.8 MB / 440 MB, free: 14.72 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.4081/0.6015, allocations: 63.95 MB / 0.4922 GB, free: 9.691 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04224/0.6438, allocations: 12.7 MB / 0.5045 GB, free: 1.238 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.03027/0.6742, allocations: 275.2 kB / 0.5048 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009817/0.684, allocations: 2.935 MB / 0.5077 GB, free: 15.87 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01223/0.6964, allocations: 2.456 MB / 0.5101 GB, free: 14.79 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00474/0.7012, allocations: 0.9644 MB / 0.511 GB, free: 14.39 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02154/0.7227, allocations: 7.485 MB / 0.5183 GB, free: 11.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01369/0.7365, allocations: 4.436 MB / 0.5227 GB, free: 9.969 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009732/0.7462, allocations: 2.33 MB / 0.5249 GB, free: 8.973 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01011/0.7564, allocations: 3.604 MB / 0.5285 GB, free: 6.684 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004239/0.7607, allocations: 456 kB / 0.5289 GB, free: 6.238 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00681/0.7676, allocations: 1.315 MB / 0.5302 GB, free: 4.922 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007516/0.7752, allocations: 2.91 MB / 0.533 GB, free: 2.004 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01188/0.7871, allocations: 3.274 MB / 0.5362 GB, free: 14.71 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02264/0.8098, allocations: 9.828 MB / 0.5458 GB, free: 4.852 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.319e-05/0.8099, allocations: 0 / 0.5458 GB, free: 4.852 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.137e-06/0.81, allocations: 4 kB / 0.5458 GB, free: 4.848 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0006418/0.8106, allocations: 0 / 0.5458 GB, free: 4.848 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2212 * Number of variables: 2212 Notification: Performance of Generate backend data structure: time 0.03052/0.8412, allocations: 7.308 MB / 0.553 GB, free: 13.46 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.162e-05/0.8413, allocations: 8.031 kB / 0.553 GB, free: 13.45 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01837/0.8597, allocations: 3.837 MB / 0.5567 GB, free: 9.598 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0134/0.8731, allocations: 4.276 MB / 0.5609 GB, free: 5.262 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006624/0.8738, allocations: 320.6 kB / 0.5612 GB, free: 4.945 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00368/0.8775, allocations: 440 kB / 0.5616 GB, free: 4.516 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04721/0.9248, allocations: 15.8 MB / 0.577 GB, free: 3.984 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006079/0.9255, allocations: 59.5 kB / 0.5771 GB, free: 3.926 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002978/0.9285, allocations: 207.8 kB / 0.5773 GB, free: 3.723 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008002/0.9365, allocations: 3.466 MB / 0.5807 GB, free: 260 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03926/0.9758, allocations: 14.92 MB / 0.5952 GB, free: 1.32 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4916/1.467, allocations: 56.12 MB / 0.65 GB, free: 109.2 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01762/1.485, allocations: 8.199 MB / 0.6581 GB, free: 107.9 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006763/1.492, allocations: 4.833 MB / 0.6628 GB, free: 106 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001771/1.494, allocations: 2.209 MB / 0.6649 GB, free: 104 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.341e-05/1.494, allocations: 68.27 kB / 0.665 GB, free: 103.9 MB / 494.1 MB Notification: Performance of pre-optimization done (n=367): time 6.973e-06/1.494, allocations: 3.719 kB / 0.665 GB, free: 103.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=419): time 0.1526/1.646, allocations: 40.27 MB / 0.7043 GB, free: 92.63 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001663/1.647, allocations: 121.9 kB / 0.7044 GB, free: 92.53 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01416/1.661, allocations: 4.367 MB / 0.7087 GB, free: 90.72 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001943/1.663, allocations: 85.7 kB / 0.7088 GB, free: 90.63 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004028/1.667, allocations: 3.868 MB / 0.7126 GB, free: 86.88 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003321/1.67, allocations: 1.49 MB / 0.714 GB, free: 85.4 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004041/1.674, allocations: 1.576 MB / 0.7156 GB, free: 83.82 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.494e-05/1.675, allocations: 313.1 kB / 0.7159 GB, free: 83.51 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009616/1.684, allocations: 4.093 MB / 0.7199 GB, free: 79.41 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01339/1.698, allocations: 7.899 MB / 0.7276 GB, free: 69.73 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02676/1.724, allocations: 12.97 MB / 0.7402 GB, free: 55.1 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002547/1.725, allocations: 40 kB / 0.7403 GB, free: 55.06 MB / 494.1 MB Notification: Performance of matching and sorting (n=1048) (initialization): time 0.0402/1.765, allocations: 14.8 MB / 0.7547 GB, free: 40.23 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002111/1.765, allocations: 65 kB / 0.7548 GB, free: 40.16 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002884/1.766, allocations: 131.9 kB / 0.7549 GB, free: 40.04 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007901/1.774, allocations: 2.934 MB / 0.7578 GB, free: 37.09 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007428/1.781, allocations: 1.834 MB / 0.7596 GB, free: 35.26 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01986/1.801, allocations: 15.96 MB / 0.7751 GB, free: 19.04 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009059/1.81, allocations: 0.5033 MB / 0.7756 GB, free: 18.54 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002601/1.813, allocations: 439.4 kB / 0.7761 GB, free: 18.11 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 592 * Number of states: 0 () * Number of discrete variables: 48 (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 (951): * Single equations (assignments): 943 * 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.008676/1.821, allocations: 2.906 MB / 0.7789 GB, free: 15.19 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002138/1.824, allocations: 462.1 kB / 0.7793 GB, free: 14.73 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02142/1.845, allocations: 10.94 MB / 0.79 GB, free: 3.738 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001014/1.845, allocations: 64 kB / 0.7901 GB, free: 3.676 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.544e-05/1.845, allocations: 11.94 kB / 0.7901 GB, free: 3.664 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.717e-05/1.845, allocations: 19.92 kB / 0.7901 GB, free: 3.645 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04555/1.891, allocations: 21.79 MB / 0.8114 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.686e-05/1.891, allocations: 12 kB / 0.8114 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003746/1.895, allocations: 0.6786 MB / 0.8121 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008302/1.903, allocations: 2.749 MB / 0.8147 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00147/1.905, allocations: 80 kB / 0.8148 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3651/2.27, allocations: 14.55 MB / 0.829 GB, free: 155.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-05/2.27, allocations: 19.69 kB / 0.829 GB, free: 155.5 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02581/2.295, allocations: 15.56 MB / 0.8442 GB, free: 152 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003782/2.299, allocations: 1.181 MB / 0.8454 GB, free: 151.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001204/2.301, allocations: 76.16 kB / 0.8455 GB, free: 151.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003172/2.304, allocations: 320.1 kB / 0.8458 GB, free: 151.5 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009053/2.305, allocations: 262.3 kB / 0.846 GB, free: 151.5 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003185/2.305, allocations: 113.9 kB / 0.8461 GB, free: 151.5 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0053/2.31, allocations: 2.74 MB / 0.8488 GB, free: 150.6 MB / 0.5137 GB Notification: Performance of sort global known variables: time 5.41e-07/2.31, allocations: 0 / 0.8488 GB, free: 150.6 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01365/2.324, allocations: 1.693 MB / 0.8505 GB, free: 150.4 MB / 0.5137 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.001551/2.326, allocations: 241.5 kB / 0.8507 GB, free: 150.3 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.03678/2.362, allocations: 20 MB / 0.8702 GB, free: 146.9 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.921e-05/2.362, allocations: 4.609 kB / 0.8702 GB, free: 146.9 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.009071/2.371, allocations: 4.371 MB / 0.8745 GB, free: 145.2 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007266/2.379, allocations: 0.7291 MB / 0.8752 GB, free: 144.9 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03462/2.413, allocations: 19.19 MB / 0.8939 GB, free: 127.8 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006821/2.42, allocations: 4.618 MB / 0.8985 GB, free: 124.2 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.006699/2.427, allocations: 2.735 MB / 0.9011 GB, free: 122.4 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001667/2.429, allocations: 354.3 kB / 0.9015 GB, free: 122.1 MB / 0.5137 GB Notification: Performance of SimCode: time 1.463e-06/2.429, allocations: 3.828 kB / 0.9015 GB, free: 122.1 MB / 0.5137 GB Notification: Performance of Templates: time 0.1193/2.548, allocations: 72.6 MB / 0.9724 GB, free: 53.11 MB / 0.5137 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches