Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001929/0.001929, allocations: 177.9 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.493/1.493, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008387/0.0008386, allocations: 98.61 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3986/0.3986, allocations: 43.56 MB / 362.7 MB, free: 51.88 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003645/0.0003645, allocations: 12 kB / 431.4 MB, free: 5.906 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1328, allocations: 58.85 MB / 490.2 MB, free: 10.96 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.2989/0.4318, allocations: 57.96 MB / 0.5354 GB, free: 9.199 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.03249/0.4643, allocations: 12.2 MB / 0.5473 GB, free: 0.918 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01808/0.4825, allocations: 273.8 kB / 0.5475 GB, free: 0.875 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01098/0.4935, allocations: 2.883 MB / 0.5503 GB, free: 15.86 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0319/0.5255, allocations: 8.632 MB / 0.5588 GB, free: 12.26 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005667/0.5312, allocations: 0.9112 MB / 0.5597 GB, free: 11.91 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.03282/0.564, allocations: 22.04 MB / 0.5812 GB, free: 13.35 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01077/0.5749, allocations: 5.025 MB / 0.5861 GB, free: 8.309 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005383/0.5803, allocations: 1.903 MB / 0.588 GB, free: 6.398 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005913/0.5862, allocations: 3.139 MB / 0.591 GB, free: 3.25 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001761/0.588, allocations: 224 kB / 0.5912 GB, free: 3.031 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004475/0.5925, allocations: 0.9792 MB / 0.5922 GB, free: 2.051 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005231/0.5978, allocations: 2.591 MB / 0.5947 GB, free: 15.45 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003733/0.6016, allocations: 1.189 MB / 0.5959 GB, free: 14.25 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01255/0.6141, allocations: 7.717 MB / 0.6034 GB, free: 6.52 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.178e-06/0.6142, allocations: 0 / 0.6034 GB, free: 6.52 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.6142, allocations: 0 / 0.6034 GB, free: 6.52 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004773/0.6147, allocations: 0 / 0.6034 GB, free: 6.52 MB / 426.7 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.01687/0.6316, allocations: 6.113 MB / 0.6094 GB, free: 332 kB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.294e-05/0.6317, allocations: 8.031 kB / 0.6094 GB, free: 324 kB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01622/0.6479, allocations: 3.943 MB / 0.6133 GB, free: 12.36 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01049/0.6584, allocations: 4.187 MB / 0.6173 GB, free: 8.109 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003802/0.6589, allocations: 328.2 kB / 0.6177 GB, free: 7.785 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002189/0.6611, allocations: 443.4 kB / 0.6181 GB, free: 7.355 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03631/0.6974, allocations: 15.81 MB / 0.6335 GB, free: 6.816 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003762/0.6979, allocations: 59.42 kB / 0.6336 GB, free: 6.758 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002282/0.7002, allocations: 203.8 kB / 0.6338 GB, free: 6.559 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007462/0.7076, allocations: 3.466 MB / 0.6371 GB, free: 3.09 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03596/0.7437, allocations: 14.9 MB / 0.6517 GB, free: 4.176 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3701/1.114, allocations: 56.04 MB / 0.7064 GB, free: 101.2 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01796/1.132, allocations: 8.177 MB / 0.7144 GB, free: 98.13 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006929/1.139, allocations: 4.826 MB / 0.7191 GB, free: 96.22 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002026/1.141, allocations: 2.205 MB / 0.7213 GB, free: 94.16 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.326e-05/1.141, allocations: 68.06 kB / 0.7213 GB, free: 94.1 MB / 490.7 MB Notification: Performance of pre-optimization done (n=367): time 9.036e-06/1.141, allocations: 0 / 0.7213 GB, free: 94.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=419): time 0.1197/1.261, allocations: 40.2 MB / 0.7606 GB, free: 80.94 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.629e-05/1.261, allocations: 122 kB / 0.7607 GB, free: 80.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008046/1.269, allocations: 4.331 MB / 0.7649 GB, free: 76.46 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001216/1.27, allocations: 85.7 kB / 0.765 GB, free: 76.37 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002755/1.273, allocations: 3.869 MB / 0.7688 GB, free: 72.49 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003109/1.276, allocations: 1.495 MB / 0.7703 GB, free: 71.01 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001575/1.278, allocations: 159.3 kB / 0.7704 GB, free: 70.86 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0007764/1.278, allocations: 0.6527 MB / 0.7711 GB, free: 70.2 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006482/1.285, allocations: 4.056 MB / 0.775 GB, free: 66.13 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008316/1.293, allocations: 7.873 MB / 0.7827 GB, free: 56.44 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008599/1.302, allocations: 5.615 MB / 0.7882 GB, free: 50.8 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001665/1.302, allocations: 40 kB / 0.7882 GB, free: 50.76 MB / 490.7 MB Notification: Performance of matching and sorting (n=1048) (initialization): time 0.02919/1.331, allocations: 14.73 MB / 0.8026 GB, free: 35.99 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001043/1.332, allocations: 60 kB / 0.8027 GB, free: 35.93 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001487/1.332, allocations: 128 kB / 0.8028 GB, free: 35.81 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007942/1.34, allocations: 2.963 MB / 0.8057 GB, free: 32.84 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006767/1.346, allocations: 1.829 MB / 0.8075 GB, free: 31.01 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01716/1.364, allocations: 14.81 MB / 0.8219 GB, free: 15.94 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006405/1.37, allocations: 0.5035 MB / 0.8224 GB, free: 15.44 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001581/1.372, allocations: 441.1 kB / 0.8228 GB, free: 15.01 MB / 490.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005712/1.377, allocations: 2.908 MB / 0.8257 GB, free: 12.09 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001024/1.378, allocations: 466 kB / 0.8261 GB, free: 11.62 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01675/1.395, allocations: 10.91 MB / 0.8368 GB, free: 0.6562 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.65e-05/1.395, allocations: 60 kB / 0.8368 GB, free: 0.5977 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.821e-05/1.395, allocations: 11.95 kB / 0.8369 GB, free: 0.5859 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-05/1.396, allocations: 23.91 kB / 0.8369 GB, free: 0.5625 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04495/1.44, allocations: 21.74 MB / 0.8581 GB, free: 10.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.202e-05/1.441, allocations: 12 kB / 0.8581 GB, free: 10.57 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003597/1.444, allocations: 0.6865 MB / 0.8588 GB, free: 9.887 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008439/1.453, allocations: 2.732 MB / 0.8615 GB, free: 7.145 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001121/1.454, allocations: 80 kB / 0.8615 GB, free: 7.066 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3356/1.789, allocations: 13.57 MB / 0.8748 GB, free: 148.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.411e-05/1.789, allocations: 21.88 kB / 0.8748 GB, free: 148.5 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02584/1.815, allocations: 15.52 MB / 0.89 GB, free: 145 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003827/1.819, allocations: 1.184 MB / 0.8911 GB, free: 144.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001427/1.821, allocations: 78.61 kB / 0.8912 GB, free: 144.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004172/1.825, allocations: 320.3 kB / 0.8915 GB, free: 144.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009872/1.826, allocations: 266.6 kB / 0.8918 GB, free: 144.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004129/1.826, allocations: 112.5 kB / 0.8919 GB, free: 144.5 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.004797/1.831, allocations: 2.695 MB / 0.8945 GB, free: 143.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.61e-07/1.831, allocations: 3.25 kB / 0.8945 GB, free: 143.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008314/1.839, allocations: 1.697 MB / 0.8962 GB, free: 143.4 MB / 0.5105 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001053/1.841, allocations: 229.7 kB / 0.8964 GB, free: 143.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01804/1.859, allocations: 10.05 MB / 0.9062 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.309e-05/1.859, allocations: 2.625 kB / 0.9062 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.008531/1.867, allocations: 4.348 MB / 0.9104 GB, free: 138.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005902/1.873, allocations: 0.6804 MB / 0.9111 GB, free: 137.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03598/1.909, allocations: 19.22 MB / 0.9299 GB, free: 128.3 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008081/1.917, allocations: 4.59 MB / 0.9343 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002998/1.92, allocations: 408.8 kB / 0.9347 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of SimCode: time 1.794e-06/1.92, allocations: 0 / 0.9347 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of Templates: time 0.4315/2.352, allocations: 142.6 MB / 1.074 GB, free: 146.3 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches