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.001331/0.001331, allocations: 106.3 kB / 17.98 MB, free: 5.402 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.001433/0.001434, allocations: 193.3 kB / 18.91 MB, free: 4.477 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.347/1.347, allocations: 222.9 MB / 242.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2085/0.2085, allocations: 44.17 MB / 336.9 MB, free: 2.934 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 64.47 kB / 408.5 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1194, allocations: 60.83 MB / 469.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.3093/0.4288, allocations: 63.54 MB / 0.5204 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03308/0.4619, allocations: 12.65 MB / 0.5328 GB, free: 6.164 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01693/0.4789, allocations: 273.6 kB / 0.533 GB, free: 6.121 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006383/0.4853, allocations: 2.922 MB / 0.5359 GB, free: 5.262 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009548/0.4949, allocations: 2.408 MB / 0.5382 GB, free: 4.387 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002996/0.498, allocations: 0.9643 MB / 0.5392 GB, free: 3.824 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01187/0.5099, allocations: 7.632 MB / 0.5466 GB, free: 380 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00853/0.5184, allocations: 4.374 MB / 0.5509 GB, free: 13.83 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005646/0.5241, allocations: 2.288 MB / 0.5531 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006079/0.5303, allocations: 3.549 MB / 0.5566 GB, free: 8.309 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00229/0.5326, allocations: 456 kB / 0.557 GB, free: 7.863 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004414/0.5371, allocations: 1.324 MB / 0.5583 GB, free: 6.582 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004936/0.542, allocations: 2.858 MB / 0.5611 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008171/0.5502, allocations: 3.218 MB / 0.5643 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01317/0.5635, allocations: 7.872 MB / 0.572 GB, free: 8.863 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.616e-06/0.5635, allocations: 0 / 0.572 GB, free: 8.863 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5636, allocations: 0 / 0.572 GB, free: 8.863 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005819/0.5641, allocations: 0 / 0.572 GB, free: 8.863 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: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.02446/0.5886, allocations: 7.205 MB / 0.579 GB, free: 1.734 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.447e-05/0.5887, allocations: 12.03 kB / 0.579 GB, free: 1.723 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01601/0.6047, allocations: 3.833 MB / 0.5828 GB, free: 13.88 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01018/0.6149, allocations: 4.051 MB / 0.5867 GB, free: 9.82 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004354/0.6154, allocations: 315.9 kB / 0.587 GB, free: 9.562 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002531/0.618, allocations: 435 kB / 0.5874 GB, free: 9.191 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03333/0.6513, allocations: 15.59 MB / 0.6027 GB, free: 9.039 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003664/0.6517, allocations: 63.42 kB / 0.6027 GB, free: 8.977 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002139/0.6539, allocations: 197.3 kB / 0.6029 GB, free: 8.84 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00722/0.6611, allocations: 3.376 MB / 0.6062 GB, free: 5.477 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03411/0.6953, allocations: 14.82 MB / 0.6207 GB, free: 6.641 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09832/0.7936, allocations: 55.28 MB / 0.6747 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01885/0.8125, allocations: 8.205 MB / 0.6827 GB, free: 6.062 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007256/0.8199, allocations: 4.834 MB / 0.6874 GB, free: 1.223 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002362/0.8222, allocations: 2.21 MB / 0.6895 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.928e-05/0.8224, allocations: 69.06 kB / 0.6896 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=367): time 1.204e-05/0.8224, allocations: 3.938 kB / 0.6896 GB, free: 14.56 MB / 0.5294 GB Notification: Performance of matching and sorting (n=419): time 0.3908/1.213, allocations: 40.16 MB / 0.7288 GB, free: 181.8 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.817e-05/1.213, allocations: 114 kB / 0.7289 GB, free: 181.7 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005337/1.219, allocations: 4.286 MB / 0.7331 GB, free: 180.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000819/1.22, allocations: 88.28 kB / 0.7332 GB, free: 180.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001952/1.221, allocations: 3.8 MB / 0.7369 GB, free: 177.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001686/1.223, allocations: 1.484 MB / 0.7384 GB, free: 176.1 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001985/1.225, allocations: 1.574 MB / 0.7399 GB, free: 175.4 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.121e-05/1.225, allocations: 301.1 kB / 0.7402 GB, free: 175.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004957/1.23, allocations: 4.074 MB / 0.7442 GB, free: 173 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005861/1.236, allocations: 7.845 MB / 0.7518 GB, free: 163.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01161/1.248, allocations: 12.88 MB / 0.7644 GB, free: 148.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.483e-05/1.248, allocations: 36 kB / 0.7645 GB, free: 148.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02571/1.274, allocations: 14.73 MB / 0.7788 GB, free: 133.9 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001587/1.274, allocations: 60 kB / 0.7789 GB, free: 133.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000257/1.274, allocations: 128 kB / 0.779 GB, free: 133.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007446/1.281, allocations: 2.944 MB / 0.7819 GB, free: 130.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006616/1.288, allocations: 1.805 MB / 0.7837 GB, free: 129 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01836/1.307, allocations: 15.95 MB / 0.7992 GB, free: 112.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007453/1.314, allocations: 0.4957 MB / 0.7997 GB, free: 112.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001848/1.316, allocations: 427.9 kB / 0.8001 GB, free: 111.9 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 (942): * Single equations (assignments): 934 * 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.007093/1.323, allocations: 2.879 MB / 0.8029 GB, free: 109 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001833/1.325, allocations: 458.1 kB / 0.8034 GB, free: 108.5 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01984/1.345, allocations: 10.95 MB / 0.8141 GB, free: 97.53 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.09e-05/1.345, allocations: 55.98 kB / 0.8141 GB, free: 97.48 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.745e-05/1.345, allocations: 15.94 kB / 0.8141 GB, free: 97.46 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.787e-05/1.345, allocations: 15.94 kB / 0.8142 GB, free: 97.45 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03985/1.385, allocations: 21.69 MB / 0.8353 GB, free: 75.53 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.994e-05/1.385, allocations: 12 kB / 0.8354 GB, free: 75.52 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003478/1.388, allocations: 0.6786 MB / 0.836 GB, free: 74.84 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007477/1.396, allocations: 2.745 MB / 0.8387 GB, free: 72.08 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001021/1.397, allocations: 79.98 kB / 0.8388 GB, free: 72 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01628/1.413, allocations: 14.56 MB / 0.853 GB, free: 57.16 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-05/1.413, allocations: 15.94 kB / 0.853 GB, free: 57.14 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02519/1.439, allocations: 15.56 MB / 0.8682 GB, free: 41.32 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001657/1.44, allocations: 0.4952 MB / 0.8687 GB, free: 40.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002053/1.442, allocations: 79.44 kB / 0.8688 GB, free: 40.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00398/1.446, allocations: 315.5 kB / 0.8691 GB, free: 40.42 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001342/1.448, allocations: 265.9 kB / 0.8693 GB, free: 40.16 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000816/1.448, allocations: 115.9 kB / 0.8694 GB, free: 40.04 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005349/1.454, allocations: 2.689 MB / 0.8721 GB, free: 37.35 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.9e-07/1.454, allocations: 0 / 0.8721 GB, free: 37.35 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.009462/1.463, allocations: 1.682 MB / 0.8737 GB, free: 35.68 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 (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.001374/1.465, allocations: 236.5 kB / 0.8739 GB, free: 35.44 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.02939/1.494, allocations: 19.96 MB / 0.8934 GB, free: 15.51 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.771e-05/1.494, allocations: 5.938 kB / 0.8934 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.2324/1.727, allocations: 4.362 MB / 0.8977 GB, free: 178.5 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005549/1.732, allocations: 0.7195 MB / 0.8984 GB, free: 178.4 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03538/1.768, allocations: 19.45 MB / 0.9174 GB, free: 170.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005273/1.773, allocations: 4.533 MB / 0.9218 GB, free: 168.5 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002527/1.775, allocations: 406.3 kB / 0.9222 GB, free: 168.5 MB / 0.5294 GB Notification: Performance of SimCode: time 1.152e-06/1.776, allocations: 3.938 kB / 0.9222 GB, free: 168.5 MB / 0.5294 GB Notification: Performance of Templates: time 0.1575/1.933, allocations: 141.5 MB / 1.06 GB, free: 37.58 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches