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.001155/0.001155, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 203.1 kB / 16.79 MB, free: 6.84 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.581/1.581, allocations: 205.1 MB / 222.6 MB, free: 4.758 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4445/0.4445, allocations: 43.5 MB / 313.5 MB, free: 8.535 MB / 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.001476/0.001476, allocations: 67.12 kB / 382 MB, free: 8.754 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1851/0.1866, allocations: 57.79 MB / 439.8 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.3862/0.5728, allocations: 63.96 MB / 0.492 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04947/0.6223, allocations: 12.79 MB / 0.5045 GB, free: 1.617 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02247/0.6449, allocations: 280.4 kB / 0.5047 GB, free: 1.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009208/0.6543, allocations: 3.024 MB / 0.5077 GB, free: 200 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01251/0.6668, allocations: 2.473 MB / 0.5101 GB, free: 15.11 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004467/0.6714, allocations: 0.9438 MB / 0.511 GB, free: 14.73 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02366/0.6951, allocations: 10.08 MB / 0.5209 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01141/0.7066, allocations: 4.12 MB / 0.5249 GB, free: 9.57 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007851/0.7145, allocations: 2.024 MB / 0.5269 GB, free: 8.402 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007905/0.7225, allocations: 3.47 MB / 0.5303 GB, free: 4.922 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002726/0.7252, allocations: 320 kB / 0.5306 GB, free: 4.609 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005439/0.7307, allocations: 1.229 MB / 0.5318 GB, free: 3.379 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005561/0.7363, allocations: 2.778 MB / 0.5345 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00956/0.7459, allocations: 3.121 MB / 0.5375 GB, free: 13.45 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01742/0.7634, allocations: 9.648 MB / 0.5469 GB, free: 3.773 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.406e-05/0.7634, allocations: 0 / 0.5469 GB, free: 3.773 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.7635, allocations: 4 kB / 0.5469 GB, free: 3.77 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0006518/0.7641, allocations: 0 / 0.5469 GB, free: 3.77 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.02924/0.7934, allocations: 7.308 MB / 0.5541 GB, free: 12.38 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.479e-05/0.7935, allocations: 8.031 kB / 0.5541 GB, free: 12.37 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01763/0.8111, allocations: 3.841 MB / 0.5578 GB, free: 8.516 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.013/0.8242, allocations: 4.262 MB / 0.562 GB, free: 4.195 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003719/0.8246, allocations: 320.6 kB / 0.5623 GB, free: 3.879 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003086/0.8277, allocations: 447.9 kB / 0.5627 GB, free: 3.441 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03679/0.8645, allocations: 15.8 MB / 0.5782 GB, free: 2.906 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003455/0.8649, allocations: 55.5 kB / 0.5782 GB, free: 2.852 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001558/0.8665, allocations: 211.7 kB / 0.5784 GB, free: 2.645 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007814/0.8743, allocations: 3.466 MB / 0.5818 GB, free: 15.18 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03545/0.9099, allocations: 14.92 MB / 0.5964 GB, free: 244 kB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4714/1.381, allocations: 56.1 MB / 0.6512 GB, free: 110 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01881/1.4, allocations: 8.204 MB / 0.6592 GB, free: 108.3 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008798/1.409, allocations: 4.841 MB / 0.6639 GB, free: 106.4 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002102/1.411, allocations: 2.206 MB / 0.6661 GB, free: 104.4 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.402e-05/1.411, allocations: 65.11 kB / 0.6661 GB, free: 104.3 MB / 494.1 MB Notification: Performance of pre-optimization done (n=367): time 7.945e-06/1.411, allocations: 0 / 0.6661 GB, free: 104.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=419): time 0.1297/1.541, allocations: 40.27 MB / 0.7054 GB, free: 92.99 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/1.541, allocations: 121.9 kB / 0.7056 GB, free: 92.89 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0078/1.549, allocations: 4.365 MB / 0.7098 GB, free: 90.79 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00142/1.55, allocations: 87.89 kB / 0.7099 GB, free: 90.7 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002883/1.553, allocations: 3.867 MB / 0.7137 GB, free: 86.83 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002899/1.556, allocations: 1.494 MB / 0.7151 GB, free: 85.35 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00259/1.559, allocations: 1.58 MB / 0.7167 GB, free: 83.76 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001009/1.559, allocations: 301.1 kB / 0.717 GB, free: 83.46 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005702/1.565, allocations: 4.087 MB / 0.721 GB, free: 79.37 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008427/1.573, allocations: 7.911 MB / 0.7287 GB, free: 69.68 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01582/1.589, allocations: 12.97 MB / 0.7414 GB, free: 55.02 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001491/1.589, allocations: 36 kB / 0.7414 GB, free: 54.98 MB / 494.1 MB Notification: Performance of matching and sorting (n=1048) (initialization): time 0.03029/1.619, allocations: 14.81 MB / 0.7559 GB, free: 40.14 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002603/1.62, allocations: 60.94 kB / 0.7559 GB, free: 40.08 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003143/1.62, allocations: 128 kB / 0.756 GB, free: 39.96 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008769/1.629, allocations: 2.933 MB / 0.7589 GB, free: 37.02 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008151/1.637, allocations: 1.825 MB / 0.7607 GB, free: 35.19 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02072/1.658, allocations: 14.85 MB / 0.7752 GB, free: 20.08 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008816/1.667, allocations: 0.5079 MB / 0.7757 GB, free: 19.57 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002426/1.669, allocations: 443.9 kB / 0.7761 GB, free: 19.14 MB / 494.1 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 (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.009057/1.678, allocations: 2.907 MB / 0.7789 GB, free: 16.22 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002141/1.68, allocations: 458.1 kB / 0.7794 GB, free: 15.77 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02329/1.704, allocations: 10.94 MB / 0.7901 GB, free: 4.77 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001265/1.704, allocations: 63.98 kB / 0.7901 GB, free: 4.707 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-05/1.704, allocations: 11.94 kB / 0.7901 GB, free: 4.695 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000141/1.704, allocations: 17.25 kB / 0.7902 GB, free: 4.68 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05781/1.762, allocations: 21.78 MB / 0.8114 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.848e-05/1.762, allocations: 13 kB / 0.8114 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003946/1.766, allocations: 0.6786 MB / 0.8121 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008777/1.775, allocations: 2.74 MB / 0.8148 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001405/1.776, allocations: 83.5 kB / 0.8149 GB, free: 11.15 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3803/2.157, allocations: 13.58 MB / 0.8281 GB, free: 156.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.148e-05/2.157, allocations: 14.69 kB / 0.8281 GB, free: 156.8 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02693/2.184, allocations: 15.57 MB / 0.8433 GB, free: 153.3 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004245/2.188, allocations: 1.177 MB / 0.8445 GB, free: 153 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001606/2.19, allocations: 80.72 kB / 0.8446 GB, free: 153 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003769/2.193, allocations: 312 kB / 0.8449 GB, free: 152.9 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008731/2.194, allocations: 269.8 kB / 0.8451 GB, free: 152.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003252/2.195, allocations: 114.1 kB / 0.8452 GB, free: 152.8 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004675/2.199, allocations: 2.743 MB / 0.8479 GB, free: 151.9 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.01e-07/2.199, allocations: 0 / 0.8479 GB, free: 151.9 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.01215/2.211, allocations: 1.696 MB / 0.8496 GB, free: 151.8 MB / 0.5137 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.001979/2.213, allocations: 239.1 kB / 0.8498 GB, free: 151.6 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0243/2.238, allocations: 10.06 MB / 0.8596 GB, free: 148.3 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.433e-05/2.238, allocations: 2.281 kB / 0.8596 GB, free: 148.3 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.01222/2.25, allocations: 4.368 MB / 0.8639 GB, free: 146.7 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01099/2.261, allocations: 0.6837 MB / 0.8645 GB, free: 146.4 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04132/2.302, allocations: 19.2 MB / 0.8833 GB, free: 136.5 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01098/2.314, allocations: 4.616 MB / 0.8878 GB, free: 134.9 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.009499/2.323, allocations: 2.731 MB / 0.8905 GB, free: 134.3 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002751/2.326, allocations: 354.3 kB / 0.8908 GB, free: 133.9 MB / 0.5137 GB Notification: Performance of SimCode: time 1.373e-06/2.326, allocations: 4 kB / 0.8908 GB, free: 133.9 MB / 0.5137 GB Notification: Performance of Templates: time 0.1202/2.446, allocations: 69.77 MB / 0.9589 GB, free: 67.96 MB / 0.5137 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/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_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches