Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009543/0.0009544, allocations: 173.5 kB / 16.72 MB, free: 4.961 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.304/1.304, allocations: 205.4 MB / 222.9 MB, free: 8.945 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000768/0.0007681, allocations: 99.83 kB / 271.2 MB, free: 8.227 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3127/0.3127, allocations: 43.57 MB / 363.1 MB, free: 52.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003398/0.0003399, allocations: 16 kB / 432 MB, free: 5.828 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.105, allocations: 58.85 MB / 490.8 MB, free: 10.89 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.2084/0.3135, allocations: 57.97 MB / 0.5359 GB, free: 9.191 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02394/0.3375, allocations: 12.19 MB / 0.5478 GB, free: 0.9141 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01176/0.3493, allocations: 276.3 kB / 0.5481 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007741/0.357, allocations: 2.89 MB / 0.5509 GB, free: 15.84 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02108/0.3781, allocations: 8.656 MB / 0.5594 GB, free: 12.23 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003922/0.3821, allocations: 0.9553 MB / 0.5603 GB, free: 11.87 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.02764/0.4098, allocations: 22.15 MB / 0.5819 GB, free: 13.04 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008066/0.4178, allocations: 5.27 MB / 0.5871 GB, free: 7.727 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004469/0.4224, allocations: 1.903 MB / 0.5889 GB, free: 5.816 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005551/0.4279, allocations: 3.131 MB / 0.592 GB, free: 2.676 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001257/0.4292, allocations: 220 kB / 0.5922 GB, free: 2.461 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002968/0.4322, allocations: 1.131 MB / 0.5933 GB, free: 1.328 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003273/0.4355, allocations: 2.595 MB / 0.5958 GB, free: 14.73 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0044/0.4399, allocations: 2.805 MB / 0.5986 GB, free: 11.9 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008367/0.4483, allocations: 7.712 MB / 0.6061 GB, free: 4.168 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.4483, allocations: 0 / 0.6061 GB, free: 4.168 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.979e-06/0.4484, allocations: 3.984 kB / 0.6061 GB, free: 4.164 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003518/0.4487, allocations: 0 / 0.6061 GB, free: 4.164 MB / 426.7 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.01278/0.4615, allocations: 6.025 MB / 0.612 GB, free: 14.06 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.4616, allocations: 12.02 kB / 0.612 GB, free: 14.05 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01448/0.4761, allocations: 3.935 MB / 0.6159 GB, free: 10.1 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008656/0.4848, allocations: 4.272 MB / 0.62 GB, free: 5.766 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002843/0.4851, allocations: 320.6 kB / 0.6203 GB, free: 5.449 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001435/0.4865, allocations: 447.9 kB / 0.6208 GB, free: 5.012 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02639/0.5129, allocations: 15.8 MB / 0.6362 GB, free: 4.477 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002326/0.5132, allocations: 63.44 kB / 0.6363 GB, free: 4.414 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001204/0.5144, allocations: 199.8 kB / 0.6364 GB, free: 4.219 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005886/0.5203, allocations: 3.466 MB / 0.6398 GB, free: 0.7461 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02762/0.548, allocations: 14.9 MB / 0.6544 GB, free: 1.832 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2514/0.7994, allocations: 56.06 MB / 0.7091 GB, free: 103.2 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01564/0.815, allocations: 8.191 MB / 0.7171 GB, free: 100.1 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005412/0.8205, allocations: 4.821 MB / 0.7218 GB, free: 98.18 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001454/0.822, allocations: 2.212 MB / 0.724 GB, free: 96.12 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.411e-05/0.822, allocations: 64.05 kB / 0.7241 GB, free: 96.06 MB / 490.7 MB Notification: Performance of pre-optimization done (n=367): time 6.943e-06/0.822, allocations: 0.9688 kB / 0.7241 GB, free: 96.06 MB / 490.7 MB Notification: Performance of matching and sorting (n=419): time 0.09176/0.9138, allocations: 40.21 MB / 0.7633 GB, free: 80.07 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.672e-05/0.9139, allocations: 120 kB / 0.7634 GB, free: 79.93 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00472/0.9186, allocations: 4.341 MB / 0.7677 GB, free: 75.57 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007361/0.9194, allocations: 87.11 kB / 0.7678 GB, free: 75.48 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001815/0.9212, allocations: 3.864 MB / 0.7715 GB, free: 71.61 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001616/0.9228, allocations: 1.49 MB / 0.773 GB, free: 70.14 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004244/0.9233, allocations: 152 kB / 0.7731 GB, free: 69.99 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003185/0.9236, allocations: 0.6567 MB / 0.7738 GB, free: 69.32 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004575/0.9282, allocations: 4.056 MB / 0.7777 GB, free: 65.26 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005716/0.9339, allocations: 7.879 MB / 0.7854 GB, free: 55.6 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01258/0.9465, allocations: 12.92 MB / 0.7981 GB, free: 40.84 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.132e-05/0.9466, allocations: 40 kB / 0.7981 GB, free: 40.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=1048) (initialization): time 0.02242/0.969, allocations: 14.73 MB / 0.8125 GB, free: 26.03 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.322e-05/0.9692, allocations: 64.03 kB / 0.8125 GB, free: 25.96 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001061/0.9693, allocations: 128 kB / 0.8127 GB, free: 25.84 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006963/0.9762, allocations: 2.937 MB / 0.8155 GB, free: 22.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005631/0.9819, allocations: 1.836 MB / 0.8173 GB, free: 21.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01583/0.9977, allocations: 14.8 MB / 0.8318 GB, free: 5.984 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005758/1.004, allocations: 0.4996 MB / 0.8323 GB, free: 5.484 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001047/1.005, allocations: 439.9 kB / 0.8327 GB, free: 5.055 MB / 490.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004324/1.009, allocations: 2.916 MB / 0.8355 GB, free: 2.125 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007981/1.01, allocations: 462.1 kB / 0.836 GB, free: 1.668 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01883/1.029, allocations: 10.91 MB / 0.8466 GB, free: 6.699 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.737e-05/1.029, allocations: 60 kB / 0.8467 GB, free: 6.641 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.817e-05/1.029, allocations: 8 kB / 0.8467 GB, free: 6.633 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.968e-05/1.029, allocations: 27.92 kB / 0.8467 GB, free: 6.605 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03712/1.066, allocations: 21.74 MB / 0.868 GB, free: 0.6133 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.464e-05/1.066, allocations: 8 kB / 0.868 GB, free: 0.6055 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2064/1.272, allocations: 0.6818 MB / 0.8686 GB, free: 152.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008375/1.281, allocations: 2.732 MB / 0.8713 GB, free: 152.5 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008365/1.282, allocations: 79.69 kB / 0.8714 GB, free: 152.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01675/1.299, allocations: 13.57 MB / 0.8846 GB, free: 149.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.063e-05/1.299, allocations: 19.3 kB / 0.8847 GB, free: 149.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02067/1.319, allocations: 15.53 MB / 0.8998 GB, free: 143.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002795/1.322, allocations: 1.177 MB / 0.901 GB, free: 143.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008325/1.323, allocations: 79.09 kB / 0.901 GB, free: 143.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00241/1.325, allocations: 315.1 kB / 0.9013 GB, free: 143.4 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006518/1.326, allocations: 267.4 kB / 0.9016 GB, free: 143.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002741/1.326, allocations: 112.7 kB / 0.9017 GB, free: 143.3 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003678/1.33, allocations: 2.699 MB / 0.9043 GB, free: 142.4 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.7e-07/1.33, allocations: 0 / 0.9043 GB, free: 142.4 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007265/1.337, allocations: 1.699 MB / 0.906 GB, free: 142.3 MB / 0.5105 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007681/1.338, allocations: 228.4 kB / 0.9062 GB, free: 142.1 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01665/1.355, allocations: 10.05 MB / 0.916 GB, free: 138.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.434e-05/1.355, allocations: 2.375 kB / 0.916 GB, free: 138.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006473/1.361, allocations: 4.362 MB / 0.9203 GB, free: 137 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009497/1.371, allocations: 0.6777 MB / 0.921 GB, free: 136.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02246/1.393, allocations: 19.21 MB / 0.9397 GB, free: 125.8 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004205/1.398, allocations: 4.588 MB / 0.9442 GB, free: 122.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002165/1.4, allocations: 410.2 kB / 0.9446 GB, free: 121.9 MB / 0.5105 GB Notification: Performance of SimCode: time 1.263e-06/1.4, allocations: 0 / 0.9446 GB, free: 121.9 MB / 0.5105 GB Notification: Performance of Templates: time 0.3257/1.725, allocations: 142.3 MB / 1.084 GB, free: 146.1 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches