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.002177/0.002183, allocations: 187.6 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.137/2.137, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001192/0.001192, allocations: 94.84 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.286/0.286, allocations: 43.55 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005017/0.0005015, allocations: 12 kB / 431.4 MB, free: 20.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1189, allocations: 58.87 MB / 490.2 MB, free: 9.344 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.4241/0.543, allocations: 54.65 MB / 0.5321 GB, free: 9.777 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.03873/0.5818, allocations: 12.77 MB / 0.5446 GB, free: 8.262 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01556/0.5974, allocations: 271.7 kB / 0.5448 GB, free: 8.219 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0119/0.6094, allocations: 2.766 MB / 0.5475 GB, free: 7.652 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03538/0.6448, allocations: 8.025 MB / 0.5554 GB, free: 4.262 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006113/0.651, allocations: 0.9017 MB / 0.5562 GB, free: 3.738 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.06141/0.7124, allocations: 15.83 MB / 0.5717 GB, free: 9.027 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0137/0.7262, allocations: 4.988 MB / 0.5766 GB, free: 3.988 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00473/0.731, allocations: 1.604 MB / 0.5781 GB, free: 2.379 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005716/0.7368, allocations: 2.267 MB / 0.5804 GB, free: 108 kB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001608/0.7384, allocations: 224 kB / 0.5806 GB, free: 15.88 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004135/0.7426, allocations: 0.9598 MB / 0.5815 GB, free: 14.93 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004826/0.7474, allocations: 2.412 MB / 0.5839 GB, free: 12.51 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002735/0.7502, allocations: 1.205 MB / 0.585 GB, free: 11.29 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01375/0.764, allocations: 7.803 MB / 0.5927 GB, free: 3.473 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.7641, allocations: 0 / 0.5927 GB, free: 3.473 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.276e-06/0.7641, allocations: 0 / 0.5927 GB, free: 3.473 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003537/0.7645, allocations: 0 / 0.5927 GB, free: 3.473 MB / 394.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.02338/0.7879, allocations: 6.43 MB / 0.5989 GB, free: 12.96 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.7879, allocations: 12.03 kB / 0.5989 GB, free: 12.95 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06451/0.8525, allocations: 7.067 MB / 0.6058 GB, free: 5.863 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01602/0.8685, allocations: 4.965 MB / 0.6107 GB, free: 0.8398 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005472/0.8691, allocations: 324.2 kB / 0.611 GB, free: 0.5195 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002949/0.8721, allocations: 443.5 kB / 0.6114 GB, free: 88 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04879/0.921, allocations: 15.92 MB / 0.627 GB, free: 15.43 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003703/0.9214, allocations: 59.44 kB / 0.627 GB, free: 15.38 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002303/0.9237, allocations: 199.8 kB / 0.6272 GB, free: 15.18 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01217/0.9359, allocations: 3.47 MB / 0.6306 GB, free: 11.71 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05221/0.9882, allocations: 14.98 MB / 0.6452 GB, free: 12.7 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1329/1.121, allocations: 56.13 MB / 0.7001 GB, free: 3.34 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0334/1.155, allocations: 8.192 MB / 0.7081 GB, free: 10.91 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003437/1.158, allocations: 2.215 MB / 0.7102 GB, free: 8.312 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001069/1.158, allocations: 65.08 kB / 0.7103 GB, free: 8.238 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=367): time 8.215e-06/1.158, allocations: 3.938 kB / 0.7103 GB, free: 8.234 MB / 0.5105 GB Notification: Performance of matching and sorting (n=419): time 0.5244/1.683, allocations: 40.78 MB / 0.7501 GB, free: 173.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.535e-05/1.683, allocations: 117.6 kB / 0.7502 GB, free: 173.1 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009886/1.693, allocations: 4.83 MB / 0.7549 GB, free: 171 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.001165/1.694, allocations: 83.86 kB / 0.755 GB, free: 170.9 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002981/1.697, allocations: 3.771 MB / 0.7587 GB, free: 167.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002564/1.7, allocations: 1.494 MB / 0.7602 GB, free: 165.9 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001045/1.701, allocations: 151.8 kB / 0.7603 GB, free: 165.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005772/1.701, allocations: 0.6452 MB / 0.7609 GB, free: 165.1 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009606/1.711, allocations: 3.933 MB / 0.7648 GB, free: 161.2 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01194/1.723, allocations: 7.696 MB / 0.7723 GB, free: 151.8 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01209/1.735, allocations: 5.465 MB / 0.7776 GB, free: 146.3 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001172/1.735, allocations: 40 kB / 0.7777 GB, free: 146.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1017) (initialization): time 0.04076/1.776, allocations: 14.02 MB / 0.7914 GB, free: 132.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001078/1.776, allocations: 62.66 kB / 0.7914 GB, free: 132.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001792/1.776, allocations: 132 kB / 0.7915 GB, free: 132.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01361/1.79, allocations: 2.705 MB / 0.7942 GB, free: 129.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01179/1.802, allocations: 1.778 MB / 0.7959 GB, free: 127.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03065/1.832, allocations: 14.55 MB / 0.8101 GB, free: 112.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009211/1.842, allocations: 0.4918 MB / 0.8106 GB, free: 112.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001897/1.844, allocations: 429.5 kB / 0.811 GB, free: 111.8 MB / 0.5105 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 (920): * Single equations (assignments): 912 * 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.008035/1.852, allocations: 2.914 MB / 0.8139 GB, free: 108.9 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001658/1.853, allocations: 470 kB / 0.8143 GB, free: 108.4 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03369/1.887, allocations: 10.55 MB / 0.8246 GB, free: 97.84 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001297/1.887, allocations: 65.39 kB / 0.8247 GB, free: 97.78 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.761e-05/1.887, allocations: 8 kB / 0.8247 GB, free: 97.77 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-05/1.888, allocations: 15.94 kB / 0.8247 GB, free: 97.76 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06284/1.95, allocations: 21.44 MB / 0.8456 GB, free: 76.11 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.859e-05/1.951, allocations: 12.19 kB / 0.8456 GB, free: 76.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006357/1.957, allocations: 0.6825 MB / 0.8463 GB, free: 75.41 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01288/1.97, allocations: 2.484 MB / 0.8487 GB, free: 72.92 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001096/1.971, allocations: 87.98 kB / 0.8488 GB, free: 72.84 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0279/1.999, allocations: 13.31 MB / 0.8618 GB, free: 59.26 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-05/1.999, allocations: 15.94 kB / 0.8618 GB, free: 59.24 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03972/2.039, allocations: 16.46 MB / 0.8779 GB, free: 42.1 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004615/2.043, allocations: 1.186 MB / 0.8791 GB, free: 40.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001725/2.045, allocations: 71.98 kB / 0.8791 GB, free: 40.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005667/2.051, allocations: 313.7 kB / 0.8794 GB, free: 40.52 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001656/2.053, allocations: 269.9 kB / 0.8797 GB, free: 40.25 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006504/2.053, allocations: 113.5 kB / 0.8798 GB, free: 40.14 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00654/2.06, allocations: 3.095 MB / 0.8828 GB, free: 37.05 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.92e-07/2.06, allocations: 0 / 0.8828 GB, free: 37.05 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009667/2.069, allocations: 1.675 MB / 0.8845 GB, free: 35.38 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.001532/2.071, allocations: 255.8 kB / 0.8847 GB, free: 35.12 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02261/2.094, allocations: 9.806 MB / 0.8943 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.506e-05/2.094, allocations: 0 / 0.8943 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01057/2.104, allocations: 4.3 MB / 0.8985 GB, free: 20.98 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005842/2.11, allocations: 0.6374 MB / 0.8991 GB, free: 20.34 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3818/2.492, allocations: 19.15 MB / 0.9178 GB, free: 165.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0141/2.506, allocations: 4.757 MB / 0.9224 GB, free: 164.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004397/2.511, allocations: 410.4 kB / 0.9228 GB, free: 164.4 MB / 0.5105 GB Notification: Performance of SimCode: time 1.903e-06/2.511, allocations: 2.188 kB / 0.9228 GB, free: 164.4 MB / 0.5105 GB Notification: Performance of Templates: time 0.2523/2.763, allocations: 137.6 MB / 1.057 GB, free: 44.92 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/jenkins1/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