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.001362/0.001362, allocations: 106.3 kB / 16.41 MB, free: 6.449 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.001378/0.001377, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.72/1.72, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2398/0.2398, allocations: 43.52 MB / 314.1 MB, free: 460 kB / 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.001468/0.001468, allocations: 73.45 kB / 441.8 MB, free: 5.637 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1615/0.163, allocations: 57.79 MB / 499.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02166/0.1847, allocations: 18.61 MB / 0.5061 GB, free: 9.078 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01533/0.2001, allocations: 5.347 MB / 0.5113 GB, free: 3.715 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005827/0.2059, allocations: 107.8 kB / 0.5114 GB, free: 3.609 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007138/0.2131, allocations: 3.067 MB / 0.5144 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009774/0.223, allocations: 2.704 MB / 0.517 GB, free: 13.82 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003195/0.2262, allocations: 1.018 MB / 0.518 GB, free: 12.8 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01519/0.2414, allocations: 7.418 MB / 0.5253 GB, free: 5.359 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007361/0.2488, allocations: 4.246 MB / 0.5294 GB, free: 1.051 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3822/0.6311, allocations: 2.305 MB / 0.5317 GB, free: 9.879 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007589/0.6387, allocations: 3.281 MB / 0.5349 GB, free: 9.859 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003103/0.6418, allocations: 456.7 kB / 0.5353 GB, free: 9.859 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005305/0.6472, allocations: 1.307 MB / 0.5366 GB, free: 9.859 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005713/0.6529, allocations: 2.885 MB / 0.5394 GB, free: 9.566 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008946/0.6619, allocations: 3.256 MB / 0.5426 GB, free: 8.402 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01989/0.6818, allocations: 10.16 MB / 0.5525 GB, free: 6.816 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.022e-05/0.6818, allocations: 0 / 0.5525 GB, free: 6.816 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.6818, allocations: 1.312 kB / 0.5525 GB, free: 6.816 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005488/0.6824, allocations: 0 / 0.5525 GB, free: 6.816 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.02933/0.7117, allocations: 7.314 MB / 0.5596 GB, free: 3.16 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.351e-05/0.7118, allocations: 9.188 kB / 0.5597 GB, free: 3.16 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01787/0.7297, allocations: 3.835 MB / 0.5634 GB, free: 1.305 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01224/0.742, allocations: 4.333 MB / 0.5676 GB, free: 14.99 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003493/0.7424, allocations: 322.8 kB / 0.5679 GB, free: 14.89 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003192/0.7456, allocations: 447.6 kB / 0.5684 GB, free: 14.78 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03573/0.7813, allocations: 15.79 MB / 0.5838 GB, free: 2.496 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002585/0.7816, allocations: 61.09 kB / 0.5839 GB, free: 2.457 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001165/0.7828, allocations: 197.1 kB / 0.584 GB, free: 2.32 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006262/0.7891, allocations: 3.476 MB / 0.5874 GB, free: 14.88 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03451/0.8236, allocations: 14.92 MB / 0.602 GB, free: 128 kB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1033/0.9269, allocations: 55.79 MB / 0.6565 GB, free: 7.922 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02/0.9469, allocations: 8.212 MB / 0.6645 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007278/0.9542, allocations: 4.849 MB / 0.6692 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002213/0.9565, allocations: 2.201 MB / 0.6714 GB, free: 8.07 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.386e-05/0.9566, allocations: 65.08 kB / 0.6714 GB, free: 7.996 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=367): time 8.306e-06/0.9566, allocations: 0 / 0.6714 GB, free: 7.996 MB / 0.5137 GB Notification: Performance of matching and sorting (n=419): time 0.1245/1.081, allocations: 40.27 MB / 0.7108 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/1.081, allocations: 120 kB / 0.7109 GB, free: 15.65 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009849/1.091, allocations: 4.364 MB / 0.7152 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001459/1.093, allocations: 85.7 kB / 0.7152 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003836/1.096, allocations: 3.87 MB / 0.719 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.003337/1.1, allocations: 1.497 MB / 0.7205 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006964/1.107, allocations: 1.583 MB / 0.722 GB, free: 4.23 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001178/1.107, allocations: 301.1 kB / 0.7223 GB, free: 3.934 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008346/1.115, allocations: 4.091 MB / 0.7263 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01194/1.127, allocations: 7.911 MB / 0.734 GB, free: 6.152 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02105/1.148, allocations: 12.96 MB / 0.7467 GB, free: 7.871 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001528/1.149, allocations: 36 kB / 0.7467 GB, free: 7.836 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1048) (initialization): time 0.3971/1.546, allocations: 14.8 MB / 0.7612 GB, free: 200.1 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001117/1.546, allocations: 60.5 kB / 0.7612 GB, free: 200.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002305/1.546, allocations: 129.2 kB / 0.7614 GB, free: 200.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009742/1.556, allocations: 2.935 MB / 0.7642 GB, free: 200 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008184/1.564, allocations: 1.827 MB / 0.766 GB, free: 200 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02156/1.586, allocations: 15.95 MB / 0.7816 GB, free: 194.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008895/1.595, allocations: 0.5023 MB / 0.7821 GB, free: 194 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003072/1.598, allocations: 435 kB / 0.7825 GB, free: 194 MB / 0.5919 GB 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.009621/1.607, allocations: 2.921 MB / 0.7853 GB, free: 192.9 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00117/1.609, allocations: 459.2 kB / 0.7858 GB, free: 192.9 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01727/1.626, allocations: 10.93 MB / 0.7964 GB, free: 189.4 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.111e-05/1.626, allocations: 64.67 kB / 0.7965 GB, free: 189.4 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.701e-05/1.626, allocations: 10.19 kB / 0.7965 GB, free: 189.4 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.414e-05/1.626, allocations: 18.75 kB / 0.7965 GB, free: 189.4 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04496/1.671, allocations: 21.67 MB / 0.8177 GB, free: 169.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.362e-05/1.671, allocations: 12 kB / 0.8177 GB, free: 169.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003707/1.675, allocations: 0.6825 MB / 0.8184 GB, free: 169 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007246/1.682, allocations: 2.732 MB / 0.821 GB, free: 166.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001107/1.683, allocations: 82.03 kB / 0.8211 GB, free: 166.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01577/1.699, allocations: 14.55 MB / 0.8353 GB, free: 151.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.05e-05/1.699, allocations: 17.06 kB / 0.8353 GB, free: 151.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02327/1.722, allocations: 15.58 MB / 0.8506 GB, free: 135.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003869/1.726, allocations: 1.182 MB / 0.8517 GB, free: 134.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001383/1.728, allocations: 72.78 kB / 0.8518 GB, free: 134.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002856/1.731, allocations: 316.4 kB / 0.8521 GB, free: 134.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007061/1.731, allocations: 262.9 kB / 0.8523 GB, free: 134.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000314/1.732, allocations: 118.9 kB / 0.8524 GB, free: 134.1 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.006202/1.738, allocations: 2.742 MB / 0.8551 GB, free: 131.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 6.41e-07/1.738, allocations: 3 kB / 0.8551 GB, free: 131.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01093/1.749, allocations: 1.692 MB / 0.8568 GB, free: 129.6 MB / 0.5919 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.001279/1.75, allocations: 236.5 kB / 0.857 GB, free: 129.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01702/1.767, allocations: 10.13 MB / 0.8669 GB, free: 119.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.279e-05/1.767, allocations: 4 kB / 0.8669 GB, free: 119.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.00683/1.774, allocations: 4.375 MB / 0.8712 GB, free: 114.9 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005448/1.78, allocations: 0.7084 MB / 0.8719 GB, free: 114.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02988/1.809, allocations: 15.89 MB / 0.8874 GB, free: 98.12 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008193/1.818, allocations: 4.62 MB / 0.8919 GB, free: 93.46 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.007325/1.825, allocations: 2.74 MB / 0.8946 GB, free: 90.71 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001635/1.827, allocations: 351.4 kB / 0.8949 GB, free: 90.37 MB / 0.5919 GB Notification: Performance of SimCode: time 1.042e-06/1.827, allocations: 0 / 0.8949 GB, free: 90.37 MB / 0.5919 GB Notification: Performance of Templates: time 0.1141/1.941, allocations: 69.02 MB / 0.9623 GB, free: 21.41 MB / 0.5919 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches