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/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 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 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001/0.001, allocations: 96.67 kB / 16.99 MB, free: 5.941 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.0009653/0.0009655, allocations: 181 kB / 17.87 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.489/1.489, allocations: 223.2 MB / 241.8 MB, free: 364 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2218/0.2218, allocations: 44.22 MB / 337.1 MB, free: 2.906 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004967/0.0004972, allocations: 11.98 kB / 409.5 MB, free: 27.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1883/0.1888, allocations: 61.92 MB / 471.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.4432/0.632, allocations: 54.31 MB / 0.5134 GB, free: 9.922 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04193/0.6741, allocations: 12.71 MB / 0.5259 GB, free: 9.066 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0175/0.6916, allocations: 271.5 kB / 0.5261 GB, free: 9.023 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01294/0.7046, allocations: 2.75 MB / 0.5288 GB, free: 8.508 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04223/0.7469, allocations: 8.002 MB / 0.5366 GB, free: 6.195 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007461/0.7543, allocations: 0.8983 MB / 0.5375 GB, free: 5.949 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.04879/0.8032, allocations: 26.65 MB / 0.5635 GB, free: 5.586 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01009/0.8133, allocations: 4.928 MB / 0.5683 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004665/0.818, allocations: 1.561 MB / 0.5699 GB, free: 15.04 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004925/0.823, allocations: 2.239 MB / 0.572 GB, free: 12.8 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001614/0.8246, allocations: 216 kB / 0.5723 GB, free: 12.59 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00355/0.8282, allocations: 0.9791 MB / 0.5732 GB, free: 11.61 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004198/0.8324, allocations: 2.361 MB / 0.5755 GB, free: 9.242 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003162/0.8356, allocations: 1.181 MB / 0.5767 GB, free: 8.051 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01243/0.8481, allocations: 7.677 MB / 0.5842 GB, free: 364 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.8481, allocations: 0 / 0.5842 GB, free: 364 kB / 414.1 MB Notification: Performance of FrontEnd: time 4.028e-06/0.8481, allocations: 0 / 0.5842 GB, free: 364 kB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0006052/0.8487, allocations: 3.938 kB / 0.5842 GB, free: 360 kB / 414.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.02008/0.8688, allocations: 6.327 MB / 0.5903 GB, free: 9.945 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.295e-05/0.8689, allocations: 12.03 kB / 0.5904 GB, free: 9.934 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03407/0.903, allocations: 7.075 MB / 0.5973 GB, free: 2.84 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01018/0.9132, allocations: 4.348 MB / 0.6015 GB, free: 14.43 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002654/0.9135, allocations: 312 kB / 0.6018 GB, free: 14.12 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001874/0.9154, allocations: 435.6 kB / 0.6022 GB, free: 13.7 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03727/0.9527, allocations: 15.71 MB / 0.6176 GB, free: 13.26 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002966/0.953, allocations: 55.5 kB / 0.6176 GB, free: 13.21 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00116/0.9542, allocations: 199.7 kB / 0.6178 GB, free: 13.01 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006508/0.9607, allocations: 3.384 MB / 0.6211 GB, free: 9.625 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03341/0.9941, allocations: 14.88 MB / 0.6356 GB, free: 10.73 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0992/1.093, allocations: 55.26 MB / 0.6896 GB, free: 2.273 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01883/1.112, allocations: 8.186 MB / 0.6976 GB, free: 9.859 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002784/1.115, allocations: 2.212 MB / 0.6998 GB, free: 7.258 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.953e-05/1.115, allocations: 65.08 kB / 0.6998 GB, free: 7.184 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=367): time 8.947e-06/1.115, allocations: 3.938 kB / 0.6998 GB, free: 7.18 MB / 0.5294 GB Notification: Performance of matching and sorting (n=419): time 0.4582/1.573, allocations: 40.53 MB / 0.7394 GB, free: 179.6 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.398e-05/1.574, allocations: 118.6 kB / 0.7395 GB, free: 179.5 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006606/1.58, allocations: 4.734 MB / 0.7441 GB, free: 176.7 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001234/1.581, allocations: 94.8 kB / 0.7442 GB, free: 176.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002203/1.584, allocations: 3.823 MB / 0.748 GB, free: 172.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002396/1.586, allocations: 1.486 MB / 0.7494 GB, free: 171.3 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004326/1.587, allocations: 152.8 kB / 0.7496 GB, free: 171.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000348/1.587, allocations: 0.6286 MB / 0.7502 GB, free: 170.5 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004709/1.592, allocations: 3.915 MB / 0.754 GB, free: 166.6 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006483/1.598, allocations: 7.636 MB / 0.7615 GB, free: 157.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00722/1.605, allocations: 5.437 MB / 0.7668 GB, free: 151.9 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.386e-05/1.605, allocations: 36 kB / 0.7668 GB, free: 151.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02442/1.63, allocations: 14.12 MB / 0.7806 GB, free: 137.7 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001061/1.63, allocations: 66.33 kB / 0.7807 GB, free: 137.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001612/1.63, allocations: 128 kB / 0.7808 GB, free: 137.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007501/1.638, allocations: 2.705 MB / 0.7834 GB, free: 134.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00732/1.645, allocations: 1.758 MB / 0.7851 GB, free: 133 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01616/1.661, allocations: 14.54 MB / 0.7993 GB, free: 118.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007432/1.669, allocations: 0.4891 MB / 0.7998 GB, free: 117.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001355/1.67, allocations: 427.9 kB / 0.8002 GB, free: 117.3 MB / 0.5294 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 (911): * Single equations (assignments): 903 * 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.00559/1.676, allocations: 2.877 MB / 0.803 GB, free: 114.4 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001706/1.677, allocations: 462 kB / 0.8035 GB, free: 114 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02216/1.7, allocations: 10.53 MB / 0.8138 GB, free: 103.4 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001107/1.7, allocations: 71.94 kB / 0.8138 GB, free: 103.3 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.164e-05/1.7, allocations: 8.875 kB / 0.8138 GB, free: 103.3 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.904e-05/1.7, allocations: 15.94 kB / 0.8139 GB, free: 103.3 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04094/1.741, allocations: 21.32 MB / 0.8347 GB, free: 81.75 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.481e-05/1.741, allocations: 12 kB / 0.8347 GB, free: 81.74 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00357/1.745, allocations: 0.6825 MB / 0.8354 GB, free: 81.06 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006873/1.751, allocations: 2.496 MB / 0.8378 GB, free: 78.56 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009719/1.752, allocations: 76.09 kB / 0.8379 GB, free: 78.48 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01502/1.767, allocations: 13.34 MB / 0.8509 GB, free: 64.88 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.149e-05/1.768, allocations: 19.3 kB / 0.8509 GB, free: 64.86 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02336/1.791, allocations: 16.43 MB / 0.8669 GB, free: 47.73 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001813/1.793, allocations: 0.5108 MB / 0.8674 GB, free: 47.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001646/1.794, allocations: 72 kB / 0.8675 GB, free: 47.12 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003438/1.798, allocations: 307.5 kB / 0.8678 GB, free: 46.82 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008315/1.799, allocations: 265.2 kB / 0.8681 GB, free: 46.57 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002931/1.799, allocations: 108 kB / 0.8682 GB, free: 46.46 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004046/1.803, allocations: 3.038 MB / 0.8711 GB, free: 43.42 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.022e-06/1.803, allocations: 0 / 0.8711 GB, free: 43.42 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.008876/1.812, allocations: 1.666 MB / 0.8728 GB, free: 41.77 MB / 0.5294 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.001325/1.813, allocations: 254.5 kB / 0.873 GB, free: 41.51 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01564/1.829, allocations: 9.771 MB / 0.8825 GB, free: 31.72 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.641e-05/1.829, allocations: 4.25 kB / 0.8825 GB, free: 31.71 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006886/1.836, allocations: 4.297 MB / 0.8867 GB, free: 27.39 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004957/1.841, allocations: 0.6353 MB / 0.8874 GB, free: 26.76 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3331/2.174, allocations: 18.21 MB / 0.9051 GB, free: 172.9 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01107/2.185, allocations: 4.669 MB / 0.9097 GB, free: 172 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.01111/2.196, allocations: 2.74 MB / 0.9124 GB, free: 172 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0029/2.199, allocations: 353.5 kB / 0.9127 GB, free: 172 MB / 0.5294 GB Notification: Performance of SimCode: time 3.216e-06/2.199, allocations: 1.281 kB / 0.9127 GB, free: 172 MB / 0.5294 GB Notification: Performance of Templates: time 0.1218/2.321, allocations: 66.3 MB / 0.9775 GB, free: 125.1 MB / 0.5294 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/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