Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001139/0.001139, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001275/0.001275, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 227.4 MB / 246.9 MB, free: 10.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2096/0.2096, allocations: 46.1 MB / 344.3 MB, free: 11.81 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 80.78 kB / 417.5 MB, free: 20.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1318, allocations: 62.45 MB / 479.9 MB, free: 5.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.3136/0.4455, allocations: 63.14 MB / 0.5303 GB, free: 8.402 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03152/0.4771, allocations: 12.58 MB / 0.5426 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01594/0.4931, allocations: 274.6 kB / 0.5429 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006339/0.4994, allocations: 3.01 MB / 0.5458 GB, free: 15.41 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007812/0.5074, allocations: 2.402 MB / 0.5482 GB, free: 13.8 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002765/0.5102, allocations: 0.9401 MB / 0.5491 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01316/0.5233, allocations: 10.35 MB / 0.5592 GB, free: 6.266 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006018/0.5294, allocations: 4.055 MB / 0.5632 GB, free: 2.18 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00536/0.5348, allocations: 1.977 MB / 0.5651 GB, free: 200 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006498/0.5413, allocations: 3.411 MB / 0.5684 GB, free: 12.77 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001992/0.5434, allocations: 316 kB / 0.5687 GB, free: 12.46 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003637/0.547, allocations: 1.221 MB / 0.5699 GB, free: 11.24 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003796/0.5509, allocations: 2.704 MB / 0.5726 GB, free: 8.531 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006403/0.5573, allocations: 3.048 MB / 0.5755 GB, free: 5.465 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01105/0.5683, allocations: 7.718 MB / 0.5831 GB, free: 13.73 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.248e-05/0.5684, allocations: 3.984 kB / 0.5831 GB, free: 13.73 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.5684, allocations: 0 / 0.5831 GB, free: 13.73 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003946/0.5688, allocations: 0 / 0.5831 GB, free: 13.73 MB / 430.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.02221/0.591, allocations: 7.212 MB / 0.5901 GB, free: 6.434 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.44e-05/0.5911, allocations: 8.875 kB / 0.5901 GB, free: 6.426 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0163/0.6074, allocations: 3.837 MB / 0.5939 GB, free: 2.574 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009739/0.6172, allocations: 3.944 MB / 0.5977 GB, free: 14.57 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003527/0.6176, allocations: 316.4 kB / 0.598 GB, free: 14.26 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002119/0.6197, allocations: 428 kB / 0.5984 GB, free: 13.84 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02947/0.6492, allocations: 15.59 MB / 0.6137 GB, free: 13.52 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000177/0.6494, allocations: 59.48 kB / 0.6137 GB, free: 13.46 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005851/0.65, allocations: 199.8 kB / 0.6139 GB, free: 13.26 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006068/0.6561, allocations: 3.376 MB / 0.6172 GB, free: 9.883 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0316/0.6877, allocations: 14.83 MB / 0.6317 GB, free: 11.04 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09417/0.7819, allocations: 55.27 MB / 0.6857 GB, free: 2.582 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01892/0.8009, allocations: 8.213 MB / 0.6937 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007035/0.808, allocations: 4.836 MB / 0.6984 GB, free: 5.293 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002136/0.8101, allocations: 2.208 MB / 0.7006 GB, free: 2.695 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.351e-05/0.8102, allocations: 65.08 kB / 0.7006 GB, free: 2.621 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=367): time 6.032e-06/0.8102, allocations: 0 / 0.7006 GB, free: 2.621 MB / 0.5294 GB Notification: Performance of matching and sorting (n=419): time 0.387/1.197, allocations: 40.14 MB / 0.7398 GB, free: 189.7 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.871e-05/1.197, allocations: 115.8 kB / 0.7399 GB, free: 189.6 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005096/1.202, allocations: 4.291 MB / 0.7441 GB, free: 188.1 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008571/1.203, allocations: 88.77 kB / 0.7442 GB, free: 188 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001851/1.205, allocations: 3.791 MB / 0.7479 GB, free: 185.1 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001486/1.207, allocations: 1.489 MB / 0.7494 GB, free: 184 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001928/1.209, allocations: 1.562 MB / 0.7509 GB, free: 183.3 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.076e-05/1.209, allocations: 301.1 kB / 0.7512 GB, free: 183 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004727/1.213, allocations: 4.083 MB / 0.7552 GB, free: 181.7 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006537/1.22, allocations: 7.847 MB / 0.7628 GB, free: 175.4 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01209/1.232, allocations: 12.88 MB / 0.7754 GB, free: 161.6 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.337e-05/1.232, allocations: 40 kB / 0.7754 GB, free: 161.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02335/1.256, allocations: 14.73 MB / 0.7898 GB, free: 146.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.23e-05/1.256, allocations: 58.81 kB / 0.7899 GB, free: 146.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001095/1.256, allocations: 132 kB / 0.79 GB, free: 146.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007266/1.263, allocations: 2.935 MB / 0.7929 GB, free: 143.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006103/1.269, allocations: 1.809 MB / 0.7946 GB, free: 141.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01627/1.285, allocations: 14.85 MB / 0.8091 GB, free: 126.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006223/1.292, allocations: 0.4995 MB / 0.8096 GB, free: 126.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001149/1.293, allocations: 431.9 kB / 0.81 GB, free: 125.9 MB / 0.545 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.004568/1.297, allocations: 2.873 MB / 0.8128 GB, free: 123 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009725/1.298, allocations: 454.2 kB / 0.8133 GB, free: 122.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01595/1.314, allocations: 10.94 MB / 0.8239 GB, free: 111.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.31e-05/1.315, allocations: 63.98 kB / 0.824 GB, free: 111.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.998e-05/1.315, allocations: 15.94 kB / 0.824 GB, free: 111.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-05/1.315, allocations: 19.92 kB / 0.824 GB, free: 111.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03425/1.349, allocations: 21.69 MB / 0.8452 GB, free: 89.53 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.818e-05/1.349, allocations: 8 kB / 0.8452 GB, free: 89.52 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003099/1.352, allocations: 0.6864 MB / 0.8459 GB, free: 88.83 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006941/1.359, allocations: 2.733 MB / 0.8486 GB, free: 86.09 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007039/1.36, allocations: 83.27 kB / 0.8487 GB, free: 86.01 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01467/1.374, allocations: 13.59 MB / 0.8619 GB, free: 72.16 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.077e-06/1.374, allocations: 15.94 kB / 0.8619 GB, free: 72.15 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02197/1.396, allocations: 15.56 MB / 0.8771 GB, free: 56.32 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001517/1.398, allocations: 0.4991 MB / 0.8776 GB, free: 55.79 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009666/1.399, allocations: 75.44 kB / 0.8777 GB, free: 55.72 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00245/1.401, allocations: 313.5 kB / 0.878 GB, free: 55.42 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007362/1.402, allocations: 265.9 kB / 0.8782 GB, free: 55.16 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002976/1.403, allocations: 112 kB / 0.8783 GB, free: 55.05 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003221/1.406, allocations: 2.685 MB / 0.881 GB, free: 52.36 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.8e-07/1.406, allocations: 3.938 kB / 0.881 GB, free: 52.36 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006883/1.413, allocations: 1.659 MB / 0.8826 GB, free: 50.7 MB / 0.545 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.0006935/1.413, allocations: 242.5 kB / 0.8828 GB, free: 50.46 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01244/1.426, allocations: 10.03 MB / 0.8926 GB, free: 40.42 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.288e-05/1.426, allocations: 7.938 kB / 0.8926 GB, free: 40.41 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005229/1.431, allocations: 4.373 MB / 0.8969 GB, free: 36.01 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004154/1.435, allocations: 0.6712 MB / 0.8976 GB, free: 35.35 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02387/1.459, allocations: 19.46 MB / 0.9166 GB, free: 15.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2439/1.703, allocations: 4.514 MB / 0.921 GB, free: 178.2 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002391/1.706, allocations: 402 kB / 0.9213 GB, free: 178.2 MB / 0.545 GB Notification: Performance of SimCode: time 9.21e-07/1.706, allocations: 3.438 kB / 0.9214 GB, free: 178.2 MB / 0.545 GB Notification: Performance of Templates: time 0.1555/1.861, allocations: 141.2 MB / 1.059 GB, free: 65.91 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches