Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001021/0.001021, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001252/0.001252, allocations: 199.9 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2398/0.2398, allocations: 46.11 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001537, allocations: 76.11 kB / 481.3 MB, free: 4.039 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4595/0.4611, allocations: 62.44 MB / 0.531 GB, free: 13.58 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02377/0.4849, allocations: 18.14 MB / 0.5487 GB, free: 15.32 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01674/0.5017, allocations: 5.292 MB / 0.5539 GB, free: 10.19 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005749/0.5075, allocations: 107.7 kB / 0.554 GB, free: 10.08 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00683/0.5143, allocations: 3.044 MB / 0.557 GB, free: 7.027 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009583/0.524, allocations: 2.54 MB / 0.5595 GB, free: 4.48 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00347/0.5275, allocations: 1.018 MB / 0.5604 GB, free: 3.461 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01325/0.5408, allocations: 7.667 MB / 0.5679 GB, free: 11.78 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008059/0.5489, allocations: 4.179 MB / 0.572 GB, free: 7.551 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007056/0.5559, allocations: 2.243 MB / 0.5742 GB, free: 5.301 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006762/0.5628, allocations: 3.232 MB / 0.5774 GB, free: 2.059 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002005/0.5648, allocations: 456 kB / 0.5778 GB, free: 1.613 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003838/0.5687, allocations: 1.291 MB / 0.5791 GB, free: 328 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003925/0.5726, allocations: 2.797 MB / 0.5818 GB, free: 13.52 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006025/0.5787, allocations: 3.176 MB / 0.5849 GB, free: 10.32 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01366/0.5923, allocations: 9.976 MB / 0.5946 GB, free: 316 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.5924, allocations: 3.938 kB / 0.5946 GB, free: 312 kB / 446.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.5924, allocations: 3.938 kB / 0.5946 GB, free: 308 kB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004669/0.5929, allocations: 0 / 0.5946 GB, free: 308 kB / 446.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.02365/0.6165, allocations: 7.381 MB / 0.6018 GB, free: 8.824 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.831e-05/0.6166, allocations: 12.03 kB / 0.6019 GB, free: 8.812 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01691/0.6335, allocations: 3.877 MB / 0.6056 GB, free: 4.926 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01135/0.6449, allocations: 4.02 MB / 0.6096 GB, free: 0.8477 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003347/0.6453, allocations: 320.4 kB / 0.6099 GB, free: 0.5312 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002294/0.6476, allocations: 439.8 kB / 0.6103 GB, free: 104 kB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03213/0.6797, allocations: 15.59 MB / 0.6255 GB, free: 15.78 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003175/0.6801, allocations: 59.58 kB / 0.6256 GB, free: 15.72 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001955/0.6821, allocations: 195.8 kB / 0.6258 GB, free: 15.53 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006834/0.6889, allocations: 3.384 MB / 0.6291 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03076/0.7197, allocations: 14.82 MB / 0.6435 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08867/0.8084, allocations: 55.09 MB / 0.6973 GB, free: 5.039 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01911/0.8276, allocations: 8.209 MB / 0.7053 GB, free: 12.6 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007929/0.8356, allocations: 4.832 MB / 0.7101 GB, free: 7.754 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002287/0.8379, allocations: 2.215 MB / 0.7122 GB, free: 5.148 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.822e-05/0.838, allocations: 61.08 kB / 0.7123 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 9.557e-06/0.838, allocations: 0 / 0.7123 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.5015/1.34, allocations: 40.27 MB / 0.7516 GB, free: 147 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.16e-05/1.34, allocations: 112 kB / 0.7517 GB, free: 146.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006042/1.346, allocations: 4.299 MB / 0.7559 GB, free: 142.6 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001534/1.347, allocations: 85.7 kB / 0.756 GB, free: 142.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002895/1.35, allocations: 3.931 MB / 0.7598 GB, free: 139.1 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002602/1.353, allocations: 1.572 MB / 0.7614 GB, free: 137.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002372/1.355, allocations: 1.576 MB / 0.7629 GB, free: 135.9 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.122e-05/1.355, allocations: 305 kB / 0.7632 GB, free: 135.6 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004673/1.36, allocations: 4.079 MB / 0.7672 GB, free: 131.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00635/1.366, allocations: 7.843 MB / 0.7749 GB, free: 122 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01421/1.381, allocations: 12.88 MB / 0.7874 GB, free: 107.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001253/1.381, allocations: 36 kB / 0.7875 GB, free: 107.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02699/1.408, allocations: 14.76 MB / 0.8019 GB, free: 92.42 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.651e-05/1.408, allocations: 60 kB / 0.8019 GB, free: 92.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001083/1.408, allocations: 128 kB / 0.8021 GB, free: 92.24 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007389/1.415, allocations: 2.932 MB / 0.8049 GB, free: 89.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006715/1.422, allocations: 1.801 MB / 0.8067 GB, free: 87.49 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01796/1.44, allocations: 15.96 MB / 0.8223 GB, free: 71.24 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008309/1.448, allocations: 0.4957 MB / 0.8228 GB, free: 70.75 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001576/1.45, allocations: 436.6 kB / 0.8232 GB, free: 70.32 MB / 0.5606 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.005801/1.456, allocations: 2.873 MB / 0.826 GB, free: 67.44 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001229/1.457, allocations: 480.8 kB / 0.8264 GB, free: 66.97 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01721/1.474, allocations: 10.93 MB / 0.8371 GB, free: 55.98 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.372e-05/1.474, allocations: 63.98 kB / 0.8372 GB, free: 55.92 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.012e-05/1.474, allocations: 8 kB / 0.8372 GB, free: 55.91 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.693e-05/1.475, allocations: 19.92 kB / 0.8372 GB, free: 55.89 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03487/1.509, allocations: 21.6 MB / 0.8583 GB, free: 34.11 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.184e-05/1.509, allocations: 8 kB / 0.8583 GB, free: 34.11 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003308/1.513, allocations: 0.6825 MB / 0.859 GB, free: 33.42 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007106/1.52, allocations: 2.729 MB / 0.8616 GB, free: 30.68 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001037/1.521, allocations: 79.98 kB / 0.8617 GB, free: 30.61 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01583/1.537, allocations: 14.56 MB / 0.8759 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-05/1.537, allocations: 15.94 kB / 0.8759 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02181/1.559, allocations: 15.59 MB / 0.8912 GB, free: 15.88 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001596/1.56, allocations: 0.5135 MB / 0.8917 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001237/1.562, allocations: 79.83 kB / 0.8917 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002949/1.565, allocations: 311.5 kB / 0.892 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008209/1.565, allocations: 270 kB / 0.8923 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003083/1.566, allocations: 112 kB / 0.8924 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004213/1.57, allocations: 2.685 MB / 0.895 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7.21e-07/1.57, allocations: 0 / 0.895 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.008671/1.579, allocations: 1.656 MB / 0.8966 GB, free: 10.25 MB / 0.5762 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.0009116/1.58, allocations: 238.4 kB / 0.8969 GB, free: 10.01 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01697/1.596, allocations: 10.09 MB / 0.9067 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-05/1.597, allocations: 7.984 kB / 0.9067 GB, free: 15.9 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.007665/1.604, allocations: 4.37 MB / 0.911 GB, free: 11.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004649/1.609, allocations: 0.7247 MB / 0.9117 GB, free: 10.79 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02725/1.636, allocations: 15.84 MB / 0.9272 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005458/1.642, allocations: 4.547 MB / 0.9316 GB, free: 6.152 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.006474/1.648, allocations: 2.723 MB / 0.9343 GB, free: 3.422 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001656/1.65, allocations: 347.3 kB / 0.9346 GB, free: 3.082 MB / 0.6075 GB Notification: Performance of SimCode: time 1.302e-06/1.65, allocations: 0 / 0.9346 GB, free: 3.082 MB / 0.6075 GB Notification: Performance of Templates: time 0.4782/2.128, allocations: 68.63 MB / 1.002 GB, free: 176.1 MB / 0.6231 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches