Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001079/0.001079, allocations: 108.3 kB / 17.21 MB, free: 6.273 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.001141/0.001141, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.522/1.522, allocations: 222.9 MB / 241.8 MB, free: 15.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2473/0.2473, allocations: 44.18 MB / 336.1 MB, free: 3.016 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 60.14 kB / 407.7 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1312, allocations: 60.82 MB / 468.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.403/0.5343, allocations: 63.56 MB / 0.5196 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03864/0.573, allocations: 12.74 MB / 0.532 GB, free: 6.371 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02268/0.5957, allocations: 278.3 kB / 0.5323 GB, free: 6.324 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008093/0.6039, allocations: 3.012 MB / 0.5352 GB, free: 5.406 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008861/0.6129, allocations: 2.432 MB / 0.5376 GB, free: 4.473 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002593/0.6155, allocations: 0.9502 MB / 0.5385 GB, free: 3.918 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01235/0.6278, allocations: 10.15 MB / 0.5485 GB, free: 15.22 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006396/0.6343, allocations: 4.062 MB / 0.5524 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004098/0.6384, allocations: 1.983 MB / 0.5544 GB, free: 9.625 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005602/0.644, allocations: 3.425 MB / 0.5577 GB, free: 6.383 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001354/0.6454, allocations: 316 kB / 0.558 GB, free: 6.074 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003255/0.6487, allocations: 1.241 MB / 0.5592 GB, free: 4.875 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00333/0.652, allocations: 2.719 MB / 0.5619 GB, free: 2.164 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004839/0.6569, allocations: 3.074 MB / 0.5649 GB, free: 15.08 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01376/0.6707, allocations: 9.521 MB / 0.5742 GB, free: 5.793 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.676e-06/0.6707, allocations: 4 kB / 0.5742 GB, free: 5.789 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.6708, allocations: 0 / 0.5742 GB, free: 5.789 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003724/0.6711, allocations: 4 kB / 0.5742 GB, free: 5.785 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: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.02142/0.6926, allocations: 7.196 MB / 0.5812 GB, free: 14.66 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.002e-05/0.6926, allocations: 12.03 kB / 0.5812 GB, free: 14.65 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01603/0.7087, allocations: 3.84 MB / 0.585 GB, free: 10.8 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01147/0.7202, allocations: 4.049 MB / 0.5889 GB, free: 6.742 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004376/0.7207, allocations: 321.1 kB / 0.5892 GB, free: 6.48 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002537/0.7232, allocations: 431.5 kB / 0.5896 GB, free: 6.113 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03457/0.7578, allocations: 15.59 MB / 0.6049 GB, free: 5.957 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003855/0.7583, allocations: 63.48 kB / 0.6049 GB, free: 5.895 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002284/0.7606, allocations: 196.5 kB / 0.6051 GB, free: 5.758 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006855/0.7674, allocations: 3.382 MB / 0.6084 GB, free: 2.391 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03625/0.8037, allocations: 14.81 MB / 0.6229 GB, free: 3.562 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09525/0.899, allocations: 55.28 MB / 0.6769 GB, free: 11.42 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01845/0.9175, allocations: 8.205 MB / 0.6849 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00661/0.9242, allocations: 4.835 MB / 0.6896 GB, free: 14.16 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002072/0.9263, allocations: 2.211 MB / 0.6918 GB, free: 11.58 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.988e-05/0.9264, allocations: 65.08 kB / 0.6918 GB, free: 11.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=367): time 6.252e-06/0.9264, allocations: 0 / 0.6918 GB, free: 11.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=419): time 0.428/1.354, allocations: 40.16 MB / 0.731 GB, free: 182.3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.057e-05/1.354, allocations: 117.3 kB / 0.7312 GB, free: 182.2 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005388/1.36, allocations: 4.283 MB / 0.7353 GB, free: 180.6 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008928/1.361, allocations: 89.12 kB / 0.7354 GB, free: 180.5 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001889/1.363, allocations: 3.794 MB / 0.7391 GB, free: 177.4 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001724/1.364, allocations: 1.488 MB / 0.7406 GB, free: 176.1 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001979/1.366, allocations: 1.564 MB / 0.7421 GB, free: 174.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.251e-05/1.366, allocations: 308.8 kB / 0.7424 GB, free: 174.2 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004567/1.371, allocations: 4.083 MB / 0.7464 GB, free: 170.1 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006279/1.377, allocations: 7.836 MB / 0.754 GB, free: 160.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01293/1.39, allocations: 12.88 MB / 0.7666 GB, free: 145.9 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001181/1.39, allocations: 39.94 kB / 0.7667 GB, free: 145.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02756/1.418, allocations: 14.73 MB / 0.781 GB, free: 131.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000176/1.418, allocations: 66.33 kB / 0.7811 GB, free: 131 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002587/1.419, allocations: 128 kB / 0.7812 GB, free: 130.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007997/1.427, allocations: 2.936 MB / 0.7841 GB, free: 128 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006898/1.433, allocations: 1.801 MB / 0.7859 GB, free: 126.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01836/1.452, allocations: 14.86 MB / 0.8004 GB, free: 111.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007938/1.46, allocations: 0.4957 MB / 0.8008 GB, free: 110.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002033/1.462, allocations: 431.9 kB / 0.8013 GB, free: 110.1 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 50 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,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 (942): * Single equations (assignments): 934 * 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.007079/1.469, allocations: 2.877 MB / 0.8041 GB, free: 107.3 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001767/1.471, allocations: 458.1 kB / 0.8045 GB, free: 106.8 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02037/1.491, allocations: 10.94 MB / 0.8152 GB, free: 95.81 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.383e-05/1.491, allocations: 59.98 kB / 0.8152 GB, free: 95.75 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.643e-05/1.491, allocations: 8 kB / 0.8153 GB, free: 95.74 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.886e-05/1.491, allocations: 23.92 kB / 0.8153 GB, free: 95.72 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04648/1.538, allocations: 21.7 MB / 0.8365 GB, free: 73.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.926e-05/1.538, allocations: 11.94 kB / 0.8365 GB, free: 73.79 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004009/1.542, allocations: 0.6787 MB / 0.8371 GB, free: 73.11 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007999/1.55, allocations: 2.733 MB / 0.8398 GB, free: 70.36 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001363/1.552, allocations: 83.92 kB / 0.8399 GB, free: 70.28 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01723/1.569, allocations: 13.58 MB / 0.8532 GB, free: 56.43 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.174e-05/1.569, allocations: 19.88 kB / 0.8532 GB, free: 56.41 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02669/1.596, allocations: 15.56 MB / 0.8684 GB, free: 40.58 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002628/1.598, allocations: 0.4913 MB / 0.8688 GB, free: 40.06 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0022/1.601, allocations: 83.66 kB / 0.8689 GB, free: 39.98 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004334/1.605, allocations: 315.5 kB / 0.8692 GB, free: 39.68 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001715/1.607, allocations: 265.9 kB / 0.8695 GB, free: 39.41 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009012/1.608, allocations: 112 kB / 0.8696 GB, free: 39.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005345/1.613, allocations: 2.685 MB / 0.8722 GB, free: 36.62 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.2e-07/1.613, allocations: 4 kB / 0.8722 GB, free: 36.61 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01055/1.624, allocations: 1.681 MB / 0.8739 GB, free: 34.94 MB / 0.5294 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.001515/1.625, allocations: 233.4 kB / 0.8741 GB, free: 34.71 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01752/1.643, allocations: 10.03 MB / 0.8839 GB, free: 24.66 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.228e-05/1.643, allocations: 0.9375 kB / 0.8839 GB, free: 24.66 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.007884/1.651, allocations: 4.374 MB / 0.8881 GB, free: 20.26 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007592/1.658, allocations: 0.6838 MB / 0.8888 GB, free: 19.59 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2947/1.953, allocations: 18.89 MB / 0.9073 GB, free: 170.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009231/1.962, allocations: 4.547 MB / 0.9117 GB, free: 169.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007373/1.97, allocations: 2.727 MB / 0.9144 GB, free: 169.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001465/1.971, allocations: 351.2 kB / 0.9147 GB, free: 169.8 MB / 0.5294 GB Notification: Performance of SimCode: time 9.22e-07/1.971, allocations: 0 / 0.9147 GB, free: 169.8 MB / 0.5294 GB Notification: Performance of Templates: time 0.1177/2.089, allocations: 69.45 MB / 0.9825 GB, free: 115.2 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches