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.00153/0.00153, allocations: 114.6 kB / 17.08 MB, free: 5.965 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.001269/0.001269, allocations: 194.9 kB / 18.01 MB, free: 5.051 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.427/1.427, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2115/0.2115, allocations: 43.52 MB / 314.8 MB, free: 456 kB / 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.001398/0.001398, allocations: 73.45 kB / 442.5 MB, free: 5.621 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1185, allocations: 57.78 MB / 0.4886 GB, free: 11.76 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01966/0.1382, allocations: 18.61 MB / 0.5067 GB, free: 9.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01249/0.1508, allocations: 5.355 MB / 0.512 GB, free: 3.699 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003913/0.1547, allocations: 107.8 kB / 0.5121 GB, free: 3.594 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006676/0.1614, allocations: 3.071 MB / 0.5151 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007469/0.169, allocations: 2.618 MB / 0.5176 GB, free: 13.88 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002863/0.1719, allocations: 1.033 MB / 0.5186 GB, free: 12.85 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01101/0.1829, allocations: 7.413 MB / 0.5259 GB, free: 5.418 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006961/0.1899, allocations: 4.238 MB / 0.53 GB, free: 1.117 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2582/0.4482, allocations: 2.305 MB / 0.5323 GB, free: 9.273 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006168/0.4544, allocations: 3.278 MB / 0.5355 GB, free: 9.27 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002161/0.4566, allocations: 456.2 kB / 0.5359 GB, free: 9.27 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003966/0.4606, allocations: 1.305 MB / 0.5372 GB, free: 9.27 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004691/0.4653, allocations: 2.885 MB / 0.54 GB, free: 8.98 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007823/0.4731, allocations: 3.254 MB / 0.5432 GB, free: 7.816 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01609/0.4893, allocations: 10.16 MB / 0.5531 GB, free: 6.277 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.146e-06/0.4893, allocations: 1.125 kB / 0.5531 GB, free: 6.277 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4893, allocations: 0.5 kB / 0.5531 GB, free: 6.277 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0004208/0.4898, allocations: 0.6562 kB / 0.5531 GB, free: 6.277 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.024/0.5138, allocations: 7.311 MB / 0.5602 GB, free: 2.852 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.5138, allocations: 9.438 kB / 0.5602 GB, free: 2.852 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01625/0.5301, allocations: 3.837 MB / 0.564 GB, free: 1.055 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01022/0.5403, allocations: 4.339 MB / 0.5682 GB, free: 14.73 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002828/0.5407, allocations: 323.8 kB / 0.5685 GB, free: 14.64 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002371/0.543, allocations: 440.8 kB / 0.5689 GB, free: 14.53 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03232/0.5754, allocations: 15.81 MB / 0.5844 GB, free: 2.34 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002634/0.5757, allocations: 55.2 kB / 0.5844 GB, free: 2.305 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001238/0.5769, allocations: 203.8 kB / 0.5846 GB, free: 2.16 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006853/0.5838, allocations: 3.461 MB / 0.588 GB, free: 14.73 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03334/0.6172, allocations: 14.93 MB / 0.6026 GB, free: 15.98 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1016/0.7188, allocations: 55.8 MB / 0.6571 GB, free: 7.77 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02032/0.7391, allocations: 8.201 MB / 0.6651 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007853/0.747, allocations: 4.84 MB / 0.6698 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002524/0.7496, allocations: 2.207 MB / 0.672 GB, free: 7.93 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.645e-05/0.7497, allocations: 65.08 kB / 0.672 GB, free: 7.855 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=367): time 1.119e-05/0.7497, allocations: 0 / 0.672 GB, free: 7.855 MB / 0.5137 GB Notification: Performance of matching and sorting (n=419): time 0.1253/0.875, allocations: 40.28 MB / 0.7114 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001161/0.8752, allocations: 112 kB / 0.7115 GB, free: 15.5 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009912/0.8851, allocations: 4.361 MB / 0.7157 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001432/0.8866, allocations: 88.52 kB / 0.7158 GB, free: 11.03 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003765/0.8904, allocations: 3.867 MB / 0.7196 GB, free: 7.152 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.003115/0.8935, allocations: 1.493 MB / 0.721 GB, free: 5.676 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006424/0.8999, allocations: 1.589 MB / 0.7226 GB, free: 4.078 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001165/0.9001, allocations: 305.1 kB / 0.7229 GB, free: 3.777 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007593/0.9077, allocations: 4.087 MB / 0.7269 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01121/0.9189, allocations: 7.911 MB / 0.7346 GB, free: 6 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01965/0.9386, allocations: 12.96 MB / 0.7473 GB, free: 7.723 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001416/0.9388, allocations: 40 kB / 0.7473 GB, free: 7.684 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1048) (initialization): time 0.289/1.228, allocations: 14.8 MB / 0.7618 GB, free: 199.5 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001226/1.228, allocations: 61.11 kB / 0.7618 GB, free: 199.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001967/1.228, allocations: 130 kB / 0.7619 GB, free: 199.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009805/1.238, allocations: 2.931 MB / 0.7648 GB, free: 199.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00741/1.245, allocations: 1.829 MB / 0.7666 GB, free: 199.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01959/1.265, allocations: 15.94 MB / 0.7821 GB, free: 193.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007837/1.273, allocations: 0.502 MB / 0.7826 GB, free: 193.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001714/1.275, allocations: 445 kB / 0.7831 GB, free: 193.7 MB / 0.5919 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 (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.006416/1.281, allocations: 2.91 MB / 0.7859 GB, free: 192.6 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001025/1.282, allocations: 457.2 kB / 0.7863 GB, free: 192.6 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01834/1.301, allocations: 10.94 MB / 0.797 GB, free: 189.2 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.216e-05/1.301, allocations: 66.83 kB / 0.7971 GB, free: 189.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.642e-05/1.301, allocations: 7.75 kB / 0.7971 GB, free: 189.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.717e-05/1.301, allocations: 15.28 kB / 0.7971 GB, free: 189.2 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03752/1.338, allocations: 21.68 MB / 0.8183 GB, free: 169.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.749e-05/1.338, allocations: 8 kB / 0.8183 GB, free: 169.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003503/1.342, allocations: 0.6791 MB / 0.819 GB, free: 168.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007405/1.349, allocations: 2.736 MB / 0.8216 GB, free: 166 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009386/1.35, allocations: 76.92 kB / 0.8217 GB, free: 165.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01577/1.366, allocations: 14.54 MB / 0.8359 GB, free: 151.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.008e-05/1.366, allocations: 23.53 kB / 0.8359 GB, free: 151.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02213/1.388, allocations: 15.58 MB / 0.8511 GB, free: 135.6 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003296/1.392, allocations: 1.174 MB / 0.8523 GB, free: 134.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001242/1.393, allocations: 77.94 kB / 0.8524 GB, free: 134.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003327/1.396, allocations: 311.5 kB / 0.8527 GB, free: 134.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008923/1.397, allocations: 267.1 kB / 0.8529 GB, free: 133.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003551/1.397, allocations: 116.4 kB / 0.853 GB, free: 133.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.004734/1.402, allocations: 2.746 MB / 0.8557 GB, free: 131 MB / 0.5919 GB Notification: Performance of sort global known variables: time 5.51e-07/1.402, allocations: 0 / 0.8557 GB, free: 131 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.009912/1.412, allocations: 1.697 MB / 0.8574 GB, free: 129.3 MB / 0.5919 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.001483/1.414, allocations: 237.8 kB / 0.8576 GB, free: 129.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01523/1.429, allocations: 10.13 MB / 0.8675 GB, free: 119 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.484e-05/1.429, allocations: 4.125 kB / 0.8675 GB, free: 119 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.006042/1.435, allocations: 4.37 MB / 0.8717 GB, free: 114.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005085/1.44, allocations: 0.7163 MB / 0.8724 GB, free: 113.9 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02663/1.467, allocations: 16.45 MB / 0.8885 GB, free: 97.27 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005311/1.472, allocations: 4.605 MB / 0.893 GB, free: 92.62 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002549/1.475, allocations: 403.3 kB / 0.8934 GB, free: 92.23 MB / 0.5919 GB Notification: Performance of SimCode: time 1.463e-06/1.475, allocations: 0 / 0.8934 GB, free: 92.23 MB / 0.5919 GB Notification: Performance of Templates: time 0.4108/1.886, allocations: 144.1 MB / 1.034 GB, free: 163.8 MB / 0.5919 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches