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.001192/0.001192, allocations: 105.8 kB / 16.27 MB, free: 5.93 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.001303/0.001303, allocations: 190.9 kB / 17.2 MB, free: 5.574 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.674/1.674, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.2538/0.2538, allocations: 43.52 MB / 313.9 MB, free: 0.5391 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.002361/0.002362, allocations: 70.91 kB / 382.7 MB, free: 56.72 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.157/0.1594, allocations: 57.79 MB / 440.5 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01929/0.1787, allocations: 18.6 MB / 459.1 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01628/0.1951, allocations: 5.358 MB / 464.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006117/0.2012, allocations: 111.7 kB / 464.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00743/0.2087, allocations: 3.075 MB / 467.7 MB, free: 11.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00958/0.2183, allocations: 2.614 MB / 470.3 MB, free: 9.023 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003608/0.222, allocations: 1.03 MB / 471.3 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01256/0.2346, allocations: 7.398 MB / 478.7 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008202/0.2428, allocations: 4.242 MB / 483 MB, free: 12.28 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005752/0.2486, allocations: 2.285 MB / 485.2 MB, free: 9.984 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006544/0.2552, allocations: 3.287 MB / 488.5 MB, free: 6.688 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002906/0.2581, allocations: 456 kB / 489 MB, free: 6.242 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005313/0.2634, allocations: 1.303 MB / 490.3 MB, free: 4.938 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005607/0.2691, allocations: 2.875 MB / 493.2 MB, free: 2.055 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008211/0.2773, allocations: 3.254 MB / 496.4 MB, free: 14.78 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0164/0.2937, allocations: 9.789 MB / 0.4943 GB, free: 4.961 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.444e-05/0.2938, allocations: 0 / 0.4943 GB, free: 4.961 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.2938, allocations: 3.938 kB / 0.4943 GB, free: 4.957 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005568/0.2944, allocations: 0 / 0.4943 GB, free: 4.957 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: 2212 * Number of variables: 2212 Notification: Performance of Generate backend data structure: time 0.02591/0.3203, allocations: 7.31 MB / 0.5015 GB, free: 13.56 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.651e-05/0.3204, allocations: 12.03 kB / 0.5015 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01678/0.3372, allocations: 3.833 MB / 0.5052 GB, free: 9.703 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01175/0.349, allocations: 4.268 MB / 0.5094 GB, free: 5.375 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004154/0.3494, allocations: 324.5 kB / 0.5097 GB, free: 5.055 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002459/0.3519, allocations: 439.7 kB / 0.5101 GB, free: 4.625 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03638/0.3883, allocations: 15.8 MB / 0.5256 GB, free: 4.094 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003577/0.3887, allocations: 63.42 kB / 0.5256 GB, free: 4.031 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002113/0.3908, allocations: 199.8 kB / 0.5258 GB, free: 3.836 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007207/0.3981, allocations: 3.478 MB / 0.5292 GB, free: 364 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3514/0.7495, allocations: 14.91 MB / 0.5438 GB, free: 77.85 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08259/0.8321, allocations: 56.1 MB / 0.5986 GB, free: 27.57 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01691/0.8491, allocations: 8.2 MB / 0.6066 GB, free: 19.15 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005846/0.855, allocations: 4.844 MB / 0.6113 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001532/0.8565, allocations: 2.197 MB / 0.6134 GB, free: 11.74 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.993e-05/0.8566, allocations: 69.08 kB / 0.6135 GB, free: 11.66 MB / 414.1 MB Notification: Performance of pre-optimization done (n=367): time 7.353e-06/0.8566, allocations: 0 / 0.6135 GB, free: 11.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=419): time 0.1195/0.9761, allocations: 40.28 MB / 0.6528 GB, free: 3.363 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001246/0.9763, allocations: 116 kB / 0.6529 GB, free: 3.23 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01017/0.9865, allocations: 4.364 MB / 0.6572 GB, free: 14.85 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001301/0.9878, allocations: 85.7 kB / 0.6573 GB, free: 14.76 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003976/0.9918, allocations: 3.861 MB / 0.6611 GB, free: 10.89 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003061/0.9949, allocations: 1.507 MB / 0.6625 GB, free: 9.395 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00588/1.001, allocations: 1.576 MB / 0.6641 GB, free: 7.809 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001093/1.001, allocations: 301.1 kB / 0.6644 GB, free: 7.512 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007265/1.008, allocations: 4.091 MB / 0.6684 GB, free: 3.414 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01053/1.019, allocations: 7.912 MB / 0.6761 GB, free: 9.66 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01736/1.036, allocations: 12.96 MB / 0.6887 GB, free: 10.85 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001211/1.036, allocations: 42.91 kB / 0.6888 GB, free: 10.81 MB / 494.1 MB Notification: Performance of matching and sorting (n=1048) (initialization): time 0.03113/1.067, allocations: 14.8 MB / 0.7032 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001275/1.068, allocations: 60 kB / 0.7033 GB, free: 11.9 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001718/1.068, allocations: 132 kB / 0.7034 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008719/1.077, allocations: 2.934 MB / 0.7063 GB, free: 8.828 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007585/1.084, allocations: 1.836 MB / 0.7081 GB, free: 6.988 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02233/1.107, allocations: 15.95 MB / 0.7237 GB, free: 6.754 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007652/1.114, allocations: 0.4958 MB / 0.7241 GB, free: 6.258 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00193/1.116, allocations: 443.9 kB / 0.7246 GB, free: 5.824 MB / 0.5137 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.007435/1.124, allocations: 2.92 MB / 0.7274 GB, free: 2.887 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001194/1.125, allocations: 466.1 kB / 0.7279 GB, free: 2.426 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3269/1.452, allocations: 10.92 MB / 0.7385 GB, free: 174.3 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001306/1.452, allocations: 65.42 kB / 0.7386 GB, free: 174.3 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.686e-05/1.452, allocations: 9.844 kB / 0.7386 GB, free: 174.3 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000107/1.452, allocations: 20.44 kB / 0.7386 GB, free: 174.3 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04016/1.492, allocations: 21.79 MB / 0.7599 GB, free: 167.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.188e-05/1.492, allocations: 11.44 kB / 0.7599 GB, free: 167.6 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002947/1.495, allocations: 0.6803 MB / 0.7606 GB, free: 167.6 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007119/1.502, allocations: 2.742 MB / 0.7632 GB, free: 167.2 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004916/1.503, allocations: 74.72 kB / 0.7633 GB, free: 167.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01613/1.519, allocations: 14.56 MB / 0.7775 GB, free: 155.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.887e-06/1.519, allocations: 15.94 kB / 0.7776 GB, free: 155.5 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02176/1.541, allocations: 15.57 MB / 0.7928 GB, free: 139.9 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003328/1.544, allocations: 1.18 MB / 0.7939 GB, free: 138.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000961/1.545, allocations: 71.69 kB / 0.794 GB, free: 138.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00269/1.548, allocations: 315.5 kB / 0.7943 GB, free: 138.6 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007438/1.549, allocations: 265.7 kB / 0.7945 GB, free: 138.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002652/1.549, allocations: 119.8 kB / 0.7946 GB, free: 138.2 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003311/1.552, allocations: 2.745 MB / 0.7973 GB, free: 135.4 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.41e-07/1.552, allocations: 0 / 0.7973 GB, free: 135.4 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006426/1.559, allocations: 1.692 MB / 0.799 GB, free: 133.8 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.0006506/1.559, allocations: 234.8 kB / 0.7992 GB, free: 133.5 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.02881/1.588, allocations: 19.99 MB / 0.8187 GB, free: 113.6 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-05/1.588, allocations: 3.094 kB / 0.8187 GB, free: 113.6 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.006319/1.595, allocations: 4.381 MB / 0.823 GB, free: 109.3 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004433/1.599, allocations: 0.7167 MB / 0.8237 GB, free: 108.6 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02384/1.623, allocations: 16.04 MB / 0.8394 GB, free: 92.44 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004144/1.627, allocations: 4.616 MB / 0.8439 GB, free: 87.78 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.006138/1.633, allocations: 2.736 MB / 0.8466 GB, free: 85.03 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001289/1.635, allocations: 355.3 kB / 0.8469 GB, free: 84.69 MB / 0.5137 GB Notification: Performance of SimCode: time 1.172e-06/1.635, allocations: 4 kB / 0.8469 GB, free: 84.68 MB / 0.5137 GB Notification: Performance of Templates: time 0.1681/1.803, allocations: 72.57 MB / 0.9178 GB, free: 12.22 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","/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