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.0009965/0.0009965, allocations: 100.4 kB / 16.03 MB, free: 68 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 179.3 kB / 16.92 MB, free: 6.914 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.694/1.694, allocations: 205.4 MB / 223.1 MB, free: 5.77 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4374/0.4374, allocations: 43.58 MB / 315 MB, free: 8.684 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.0007337/0.000734, allocations: 16 kB / 384.6 MB, free: 7.641 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.1735, allocations: 58.86 MB / 443.4 MB, free: 12.67 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.3813/0.5549, allocations: 62.32 MB / 0.4939 GB, free: 9.641 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03997/0.5949, allocations: 12.75 MB / 0.5064 GB, free: 1.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02035/0.6153, allocations: 273.3 kB / 0.5066 GB, free: 1.117 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002957/0.6183, allocations: 0.628 MB / 0.5072 GB, free: 0.875 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009866/0.6282, allocations: 2.479 MB / 0.5097 GB, free: 15.8 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003214/0.6315, allocations: 0.9435 MB / 0.5106 GB, free: 15.41 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02101/0.6525, allocations: 10.08 MB / 0.5204 GB, free: 12.54 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01349/0.666, allocations: 5.474 MB / 0.5258 GB, free: 10.02 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006281/0.6724, allocations: 1.787 MB / 0.5275 GB, free: 9.078 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007743/0.6802, allocations: 3.166 MB / 0.5306 GB, free: 6.504 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001694/0.6819, allocations: 224 kB / 0.5308 GB, free: 6.285 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004289/0.6862, allocations: 1.127 MB / 0.5319 GB, free: 5.156 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004092/0.6904, allocations: 2.641 MB / 0.5345 GB, free: 2.508 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006047/0.6964, allocations: 2.971 MB / 0.5374 GB, free: 15.51 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01441/0.7108, allocations: 9.416 MB / 0.5466 GB, free: 6.062 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.7109, allocations: 0 / 0.5466 GB, free: 6.062 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.028e-06/0.7109, allocations: 0 / 0.5466 GB, free: 6.062 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004744/0.7114, allocations: 0 / 0.5466 GB, free: 6.062 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.01773/0.7291, allocations: 6.028 MB / 0.5525 GB, free: 15.95 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.11e-05/0.7292, allocations: 8.031 kB / 0.5525 GB, free: 15.94 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01696/0.7462, allocations: 3.943 MB / 0.5563 GB, free: 11.99 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01193/0.7582, allocations: 4.276 MB / 0.5605 GB, free: 7.652 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004977/0.7587, allocations: 320.6 kB / 0.5608 GB, free: 7.336 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002913/0.7617, allocations: 436 kB / 0.5612 GB, free: 6.91 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0351/0.7968, allocations: 15.84 MB / 0.5767 GB, free: 6.344 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002495/0.7971, allocations: 59.48 kB / 0.5768 GB, free: 6.285 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006678/0.7977, allocations: 195.8 kB / 0.5769 GB, free: 6.094 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006985/0.8047, allocations: 3.474 MB / 0.5803 GB, free: 2.613 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03773/0.8425, allocations: 14.96 MB / 0.5949 GB, free: 3.645 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4733/1.316, allocations: 56.08 MB / 0.6497 GB, free: 106.8 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01798/1.334, allocations: 8.195 MB / 0.6577 GB, free: 105.6 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006962/1.341, allocations: 4.838 MB / 0.6624 GB, free: 105 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002047/1.343, allocations: 2.206 MB / 0.6646 GB, free: 102.9 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.197e-05/1.343, allocations: 69.77 kB / 0.6646 GB, free: 102.9 MB / 494.1 MB Notification: Performance of pre-optimization done (n=367): time 7.674e-06/1.343, allocations: 0 / 0.6646 GB, free: 102.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=419): time 0.1197/1.463, allocations: 40.26 MB / 0.704 GB, free: 91.52 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.146e-05/1.463, allocations: 114.5 kB / 0.7041 GB, free: 91.43 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00608/1.469, allocations: 4.371 MB / 0.7083 GB, free: 89.87 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008989/1.47, allocations: 87.92 kB / 0.7084 GB, free: 89.79 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002062/1.472, allocations: 3.868 MB / 0.7122 GB, free: 86.1 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001547/1.474, allocations: 1.494 MB / 0.7137 GB, free: 84.62 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007863/1.474, allocations: 0.6798 MB / 0.7143 GB, free: 83.93 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.084e-05/1.474, allocations: 305.1 kB / 0.7146 GB, free: 83.63 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004777/1.479, allocations: 4.091 MB / 0.7186 GB, free: 79.53 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006844/1.486, allocations: 7.914 MB / 0.7263 GB, free: 69.86 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01328/1.499, allocations: 12.96 MB / 0.739 GB, free: 55.08 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.806e-05/1.499, allocations: 36 kB / 0.739 GB, free: 55.04 MB / 494.1 MB Notification: Performance of matching and sorting (n=1048) (initialization): time 0.02572/1.525, allocations: 14.8 MB / 0.7535 GB, free: 40.21 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.698e-05/1.525, allocations: 60 kB / 0.7535 GB, free: 40.15 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000135/1.525, allocations: 135.9 kB / 0.7537 GB, free: 40.02 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008382/1.534, allocations: 2.932 MB / 0.7565 GB, free: 37.08 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008003/1.542, allocations: 1.829 MB / 0.7583 GB, free: 35.25 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02147/1.563, allocations: 14.85 MB / 0.7728 GB, free: 20.13 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008389/1.572, allocations: 0.5073 MB / 0.7733 GB, free: 19.62 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002015/1.574, allocations: 437.8 kB / 0.7737 GB, free: 19.2 MB / 494.1 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 (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.007858/1.582, allocations: 2.912 MB / 0.7766 GB, free: 16.27 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002104/1.584, allocations: 462.1 kB / 0.777 GB, free: 15.82 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02088/1.605, allocations: 10.93 MB / 0.7877 GB, free: 4.828 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001359/1.605, allocations: 67.92 kB / 0.7878 GB, free: 4.762 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.704e-05/1.605, allocations: 19.48 kB / 0.7878 GB, free: 4.746 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001211/1.605, allocations: 19.92 kB / 0.7878 GB, free: 4.727 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04837/1.654, allocations: 21.79 MB / 0.8091 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.752e-05/1.654, allocations: 8 kB / 0.8091 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003877/1.658, allocations: 0.6864 MB / 0.8098 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008309/1.666, allocations: 2.74 MB / 0.8124 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00101/1.667, allocations: 82.97 kB / 0.8125 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3651/2.032, allocations: 13.58 MB / 0.8258 GB, free: 153.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.378e-05/2.032, allocations: 19.06 kB / 0.8258 GB, free: 153.2 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02653/2.059, allocations: 15.57 MB / 0.841 GB, free: 151.6 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003714/2.062, allocations: 1.181 MB / 0.8421 GB, free: 151.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00127/2.064, allocations: 75.56 kB / 0.8422 GB, free: 151.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003113/2.067, allocations: 319.8 kB / 0.8425 GB, free: 151.2 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007572/2.068, allocations: 268.5 kB / 0.8428 GB, free: 151.2 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002838/2.068, allocations: 113.9 kB / 0.8429 GB, free: 151.1 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004008/2.072, allocations: 2.741 MB / 0.8456 GB, free: 150.2 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.01e-07/2.072, allocations: 3.875 kB / 0.8456 GB, free: 150.2 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.008932/2.081, allocations: 1.698 MB / 0.8472 GB, free: 150.1 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.0008524/2.082, allocations: 242.8 kB / 0.8475 GB, free: 149.9 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01904/2.101, allocations: 10.05 MB / 0.8573 GB, free: 146.4 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.906e-05/2.101, allocations: 9.625 kB / 0.8573 GB, free: 146.4 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.008915/2.11, allocations: 4.363 MB / 0.8615 GB, free: 144.8 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01167/2.121, allocations: 0.6789 MB / 0.8622 GB, free: 144.5 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0332/2.155, allocations: 19.34 MB / 0.8811 GB, free: 134.6 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007694/2.162, allocations: 4.627 MB / 0.8856 GB, free: 133 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.007284/2.17, allocations: 2.74 MB / 0.8883 GB, free: 132.5 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001512/2.171, allocations: 350.4 kB / 0.8886 GB, free: 132.1 MB / 0.5137 GB Notification: Performance of SimCode: time 1.673e-06/2.171, allocations: 4 kB / 0.8886 GB, free: 132.1 MB / 0.5137 GB Notification: Performance of Templates: time 0.1131/2.284, allocations: 68.22 MB / 0.9552 GB, free: 67.7 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","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches