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.001386/0.001386, allocations: 119.2 kB / 17.08 MB, free: 5.969 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.001414/0.001414, allocations: 193.2 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.515/1.515, allocations: 205.1 MB / 223.9 MB, free: 12.22 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.209/0.209, allocations: 43.52 MB / 314.8 MB, free: 460 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.001341/0.001341, allocations: 65.47 kB / 442.5 MB, free: 5.648 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1104, allocations: 57.8 MB / 0.4886 GB, free: 11.78 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01797/0.1284, allocations: 18.61 MB / 0.5067 GB, free: 9.086 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01108/0.1395, allocations: 5.347 MB / 0.512 GB, free: 3.723 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003135/0.1427, allocations: 111.7 kB / 0.5121 GB, free: 3.613 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005756/0.1485, allocations: 3.071 MB / 0.5151 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006768/0.1553, allocations: 2.626 MB / 0.5176 GB, free: 13.89 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002421/0.1578, allocations: 1.022 MB / 0.5186 GB, free: 12.87 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.009779/0.1676, allocations: 7.418 MB / 0.5259 GB, free: 5.438 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006119/0.1737, allocations: 4.238 MB / 0.53 GB, free: 1.137 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2676/0.4414, allocations: 2.301 MB / 0.5323 GB, free: 9.305 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005529/0.4469, allocations: 3.283 MB / 0.5355 GB, free: 9.305 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001951/0.4489, allocations: 456.4 kB / 0.5359 GB, free: 9.305 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004108/0.453, allocations: 1.304 MB / 0.5372 GB, free: 9.305 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00423/0.4573, allocations: 2.89 MB / 0.54 GB, free: 9.016 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006872/0.4642, allocations: 3.255 MB / 0.5432 GB, free: 7.852 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01468/0.4789, allocations: 10.15 MB / 0.5531 GB, free: 6.312 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.4789, allocations: 0.5 kB / 0.5531 GB, free: 6.312 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.4789, allocations: 1.562 kB / 0.5531 GB, free: 6.312 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003791/0.4793, allocations: 0.6562 kB / 0.5531 GB, free: 6.312 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.02528/0.5046, allocations: 7.314 MB / 0.5602 GB, free: 2.891 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.895e-05/0.5047, allocations: 7.25 kB / 0.5602 GB, free: 2.891 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01779/0.5225, allocations: 3.838 MB / 0.564 GB, free: 1.09 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01129/0.5338, allocations: 4.334 MB / 0.5682 GB, free: 14.77 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002973/0.5342, allocations: 325.8 kB / 0.5685 GB, free: 14.66 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002305/0.5365, allocations: 438.1 kB / 0.5689 GB, free: 14.56 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03195/0.5685, allocations: 15.8 MB / 0.5844 GB, free: 2.344 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001952/0.5687, allocations: 55.59 kB / 0.5844 GB, free: 2.309 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006795/0.5694, allocations: 200.9 kB / 0.5846 GB, free: 2.168 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006521/0.5759, allocations: 3.476 MB / 0.588 GB, free: 14.73 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03313/0.6091, allocations: 14.92 MB / 0.6026 GB, free: 15.98 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1106/0.7198, allocations: 55.8 MB / 0.6571 GB, free: 7.77 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02271/0.7426, allocations: 8.205 MB / 0.6651 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007776/0.7504, allocations: 4.838 MB / 0.6698 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002718/0.7531, allocations: 2.21 MB / 0.672 GB, free: 7.922 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.455e-05/0.7532, allocations: 63.61 kB / 0.672 GB, free: 7.852 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=367): time 1.081e-05/0.7533, allocations: 4 kB / 0.672 GB, free: 7.848 MB / 0.5137 GB Notification: Performance of matching and sorting (n=419): time 0.1248/0.8781, allocations: 40.28 MB / 0.7114 GB, free: 15.63 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.803e-05/0.8782, allocations: 120 kB / 0.7115 GB, free: 15.49 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00871/0.8869, allocations: 4.357 MB / 0.7157 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001188/0.8882, allocations: 85.7 kB / 0.7158 GB, free: 11.03 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.003185/0.8914, allocations: 3.873 MB / 0.7196 GB, free: 7.148 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002395/0.8938, allocations: 1.492 MB / 0.7211 GB, free: 5.668 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004925/0.8987, allocations: 1.579 MB / 0.7226 GB, free: 4.082 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.068e-05/0.8988, allocations: 312.5 kB / 0.7229 GB, free: 3.777 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006923/0.9058, allocations: 4.083 MB / 0.7269 GB, free: 15.69 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01051/0.9163, allocations: 7.912 MB / 0.7346 GB, free: 6 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01858/0.9349, allocations: 12.96 MB / 0.7473 GB, free: 7.723 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000191/0.9352, allocations: 40 kB / 0.7473 GB, free: 7.684 MB / 0.5919 GB Notification: Performance of matching and sorting (n=1048) (initialization): time 0.2842/1.219, allocations: 14.8 MB / 0.7618 GB, free: 199.6 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001295/1.22, allocations: 60.59 kB / 0.7618 GB, free: 199.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002211/1.22, allocations: 130 kB / 0.7619 GB, free: 199.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009959/1.23, allocations: 2.936 MB / 0.7648 GB, free: 199.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008652/1.238, allocations: 1.826 MB / 0.7666 GB, free: 199.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01985/1.258, allocations: 15.94 MB / 0.7822 GB, free: 194 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006936/1.265, allocations: 0.5049 MB / 0.7827 GB, free: 193.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001261/1.267, allocations: 437.4 kB / 0.7831 GB, free: 193.8 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.005775/1.272, allocations: 2.903 MB / 0.7859 GB, free: 192.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001004/1.273, allocations: 466.5 kB / 0.7863 GB, free: 192.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01709/1.29, allocations: 10.94 MB / 0.797 GB, free: 189.2 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.566e-05/1.291, allocations: 60.48 kB / 0.7971 GB, free: 189.2 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.594e-05/1.291, allocations: 10.03 kB / 0.7971 GB, free: 189.2 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.624e-05/1.291, allocations: 19.31 kB / 0.7971 GB, free: 189.2 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03815/1.329, allocations: 21.67 MB / 0.8183 GB, free: 169.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.879e-05/1.329, allocations: 8 kB / 0.8183 GB, free: 169.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003315/1.332, allocations: 0.6849 MB / 0.819 GB, free: 168.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007423/1.34, allocations: 2.736 MB / 0.8216 GB, free: 165.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005998/1.34, allocations: 77.55 kB / 0.8217 GB, free: 165.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01561/1.356, allocations: 14.55 MB / 0.8359 GB, free: 151.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.176e-06/1.356, allocations: 15.56 kB / 0.8359 GB, free: 151.1 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02052/1.376, allocations: 15.59 MB / 0.8511 GB, free: 135.6 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00361/1.38, allocations: 1.18 MB / 0.8523 GB, free: 134.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009555/1.381, allocations: 78.98 kB / 0.8524 GB, free: 134.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002741/1.384, allocations: 311.5 kB / 0.8527 GB, free: 134 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006953/1.385, allocations: 261.2 kB / 0.8529 GB, free: 133.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002961/1.385, allocations: 117.2 kB / 0.853 GB, free: 133.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.003584/1.388, allocations: 2.746 MB / 0.8557 GB, free: 130.9 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.41e-07/1.388, allocations: 4 kB / 0.8557 GB, free: 130.9 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006832/1.395, allocations: 1.689 MB / 0.8574 GB, free: 129.2 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.0006914/1.396, allocations: 233.6 kB / 0.8576 GB, free: 129 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01545/1.411, allocations: 10.13 MB / 0.8675 GB, free: 118.9 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.988e-05/1.412, allocations: 4.438 kB / 0.8675 GB, free: 118.9 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.005487/1.417, allocations: 4.375 MB / 0.8718 GB, free: 114.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004079/1.421, allocations: 0.7101 MB / 0.8724 GB, free: 113.8 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02505/1.446, allocations: 16.45 MB / 0.8885 GB, free: 97.18 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005118/1.451, allocations: 4.605 MB / 0.893 GB, free: 92.53 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002237/1.454, allocations: 407.3 kB / 0.8934 GB, free: 92.13 MB / 0.5919 GB Notification: Performance of SimCode: time 1.243e-06/1.454, allocations: 3.828 kB / 0.8934 GB, free: 92.13 MB / 0.5919 GB Notification: Performance of Templates: time 0.4843/1.938, allocations: 145 MB / 1.035 GB, free: 162.4 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