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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.312/1.312, allocations: 222.9 MB / 241.6 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 108.8 kB / 291.9 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3862/0.3862, allocations: 44.12 MB / 386.1 MB, free: 38.03 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001012/0.001012, allocations: 59.91 kB / 457.7 MB, free: 2.281 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3609/0.3619, allocations: 60.8 MB / 0.5064 GB, free: 38.29 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.04841/0.4104, allocations: 63.55 MB / 0.5685 GB, free: 8.82 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.0366/0.447, allocations: 12.74 MB / 0.5809 GB, free: 340 kB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01485/0.4619, allocations: 275 kB / 0.5812 GB, free: 296 kB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006958/0.4689, allocations: 3.013 MB / 0.5841 GB, free: 14.91 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008997/0.478, allocations: 2.433 MB / 0.5865 GB, free: 13.41 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002963/0.481, allocations: 0.9355 MB / 0.5874 GB, free: 12.7 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.01387/0.4949, allocations: 10.2 MB / 0.5974 GB, free: 2.723 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006667/0.5016, allocations: 4.062 MB / 0.6013 GB, free: 14.61 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004441/0.506, allocations: 1.989 MB / 0.6033 GB, free: 12.61 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005914/0.512, allocations: 3.419 MB / 0.6066 GB, free: 9.18 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001597/0.5136, allocations: 316 kB / 0.6069 GB, free: 8.871 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00339/0.517, allocations: 1.248 MB / 0.6081 GB, free: 7.621 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003359/0.5204, allocations: 2.731 MB / 0.6108 GB, free: 4.883 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004762/0.5252, allocations: 3.067 MB / 0.6138 GB, free: 1.797 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01099/0.5362, allocations: 9.52 MB / 0.6231 GB, free: 8.246 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.014e-05/0.5362, allocations: 8 kB / 0.6231 GB, free: 8.238 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.5362, allocations: 0 / 0.6231 GB, free: 8.238 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002878/0.5365, allocations: 0 / 0.6231 GB, free: 8.238 MB / 442.7 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.01695/0.5535, allocations: 7.204 MB / 0.6301 GB, free: 0.9531 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/0.5535, allocations: 12.03 kB / 0.6301 GB, free: 0.9414 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01528/0.5688, allocations: 3.834 MB / 0.6339 GB, free: 13.09 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009793/0.5786, allocations: 4.057 MB / 0.6378 GB, free: 8.973 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002685/0.579, allocations: 312.4 kB / 0.6381 GB, free: 8.664 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001647/0.5806, allocations: 439.7 kB / 0.6386 GB, free: 8.234 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0323/0.6129, allocations: 15.58 MB / 0.6538 GB, free: 7.926 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001948/0.6132, allocations: 63.34 kB / 0.6538 GB, free: 7.863 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006024/0.6138, allocations: 203.7 kB / 0.654 GB, free: 7.664 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006385/0.6202, allocations: 3.376 MB / 0.6573 GB, free: 4.285 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0331/0.6533, allocations: 14.83 MB / 0.6718 GB, free: 5.441 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3542/1.008, allocations: 55.28 MB / 0.7258 GB, free: 94.77 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02639/1.034, allocations: 8.193 MB / 0.7338 GB, free: 91.66 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006963/1.041, allocations: 4.838 MB / 0.7385 GB, free: 89.74 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001897/1.043, allocations: 2.209 MB / 0.7407 GB, free: 87.69 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.599e-05/1.043, allocations: 65.12 kB / 0.7407 GB, free: 87.62 MB / 490.7 MB Notification: Performance of pre-optimization done (n=367): time 5.13e-06/1.043, allocations: 0 / 0.7407 GB, free: 87.62 MB / 490.7 MB Notification: Performance of matching and sorting (n=419): time 0.09732/1.14, allocations: 40.16 MB / 0.78 GB, free: 54.77 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.575e-05/1.14, allocations: 116 kB / 0.7801 GB, free: 54.64 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004726/1.145, allocations: 4.283 MB / 0.7842 GB, free: 50.33 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008717/1.146, allocations: 93.62 kB / 0.7843 GB, free: 50.23 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001561/1.148, allocations: 3.788 MB / 0.788 GB, free: 46.39 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001679/1.149, allocations: 1.487 MB / 0.7895 GB, free: 44.89 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002387/1.152, allocations: 1.57 MB / 0.791 GB, free: 43.31 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 4.465e-05/1.152, allocations: 313.1 kB / 0.7913 GB, free: 43 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005256/1.157, allocations: 4.079 MB / 0.7953 GB, free: 38.91 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007329/1.164, allocations: 7.841 MB / 0.803 GB, free: 29.26 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01329/1.178, allocations: 12.88 MB / 0.8155 GB, free: 14.55 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.944e-05/1.178, allocations: 36 kB / 0.8156 GB, free: 14.52 MB / 490.7 MB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02281/1.201, allocations: 14.72 MB / 0.83 GB, free: 15.75 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001079/1.201, allocations: 64.16 kB / 0.83 GB, free: 15.69 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001531/1.201, allocations: 132 kB / 0.8301 GB, free: 15.56 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008907/1.21, allocations: 2.93 MB / 0.833 GB, free: 12.62 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006905/1.217, allocations: 1.813 MB / 0.8348 GB, free: 10.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02063/1.238, allocations: 14.85 MB / 0.8493 GB, free: 11.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006176/1.244, allocations: 0.4996 MB / 0.8498 GB, free: 11.18 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001008/1.245, allocations: 423.9 kB / 0.8502 GB, free: 10.77 MB / 0.5105 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.004923/1.25, allocations: 2.881 MB / 0.853 GB, free: 7.875 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00084/1.251, allocations: 458.1 kB / 0.8534 GB, free: 7.422 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02006/1.271, allocations: 10.93 MB / 0.8641 GB, free: 12.43 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.569e-05/1.271, allocations: 67.83 kB / 0.8642 GB, free: 12.37 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.776e-05/1.271, allocations: 8 kB / 0.8642 GB, free: 12.36 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.008e-05/1.271, allocations: 15.94 kB / 0.8642 GB, free: 12.34 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2672/1.538, allocations: 21.69 MB / 0.8854 GB, free: 161.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.961e-05/1.538, allocations: 13.19 kB / 0.8854 GB, free: 161.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003327/1.542, allocations: 0.6823 MB / 0.886 GB, free: 161 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007965/1.549, allocations: 2.732 MB / 0.8887 GB, free: 160.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008312/1.55, allocations: 80.48 kB / 0.8888 GB, free: 160.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01578/1.566, allocations: 13.59 MB / 0.9021 GB, free: 154.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.37e-05/1.566, allocations: 20.41 kB / 0.9021 GB, free: 154.4 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1437/1.71, allocations: 86.44 MB / 0.9865 GB, free: 89.52 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008506/1.711, allocations: 0.4907 MB / 0.987 GB, free: 89.01 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007229/1.712, allocations: 83.86 kB / 0.987 GB, free: 88.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002693/1.714, allocations: 316.2 kB / 0.9874 GB, free: 88.62 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007388/1.715, allocations: 263.8 kB / 0.9876 GB, free: 88.37 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000282/1.715, allocations: 112 kB / 0.9877 GB, free: 88.26 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003183/1.718, allocations: 2.689 MB / 0.9903 GB, free: 85.57 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.01e-07/1.718, allocations: 3.312 kB / 0.9903 GB, free: 85.57 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01012/1.729, allocations: 2.177 MB / 0.9925 GB, free: 83.4 MB / 0.5261 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.001005/1.73, allocations: 232 kB / 0.9927 GB, free: 83.18 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01324/1.743, allocations: 10.03 MB / 1.002 GB, free: 73.15 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.37e-05/1.743, allocations: 0 / 1.002 GB, free: 73.15 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006063/1.749, allocations: 4.374 MB / 1.007 GB, free: 68.75 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005757/1.755, allocations: 0.6801 MB / 1.007 GB, free: 68.08 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02821/1.783, allocations: 22 MB / 1.029 GB, free: 45.88 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004692/1.788, allocations: 4.685 MB / 1.033 GB, free: 41.14 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.00583/1.794, allocations: 2.767 MB / 1.036 GB, free: 38.37 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001457/1.795, allocations: 355.3 kB / 1.037 GB, free: 38.02 MB / 0.5261 GB Notification: Performance of SimCode: time 4.81e-07/1.795, allocations: 0 / 1.037 GB, free: 38.02 MB / 0.5261 GB Notification: Performance of Templates: time 0.3762/2.171, allocations: 90.75 MB / 1.125 GB, free: 134.2 MB / 0.5261 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches