Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001289/0.001289, allocations: 184.1 kB / 16.72 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.26/1.26, allocations: 225.7 MB / 243.2 MB, free: 10.19 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007177/0.0007178, allocations: 91.92 kB / 294.4 MB, free: 9.73 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003183/0.0003184, allocations: 8 kB / 354.2 MB, free: 13.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1988/0.1991, allocations: 50.42 MB / 404.6 MB, free: 31.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.03735/0.2365, allocations: 51.74 MB / 456.3 MB, free: 11.46 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0232/0.2598, allocations: 14.41 MB / 470.7 MB, free: 12.33 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008027/0.2678, allocations: 243.4 kB / 471 MB, free: 12.09 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001403/0.2693, allocations: 445.8 kB / 471.4 MB, free: 11.65 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004057/0.2733, allocations: 1.838 MB / 473.2 MB, free: 9.809 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001291/0.2746, allocations: 0.6553 MB / 473.9 MB, free: 9.152 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.007026/0.2817, allocations: 6.555 MB / 480.5 MB, free: 2.582 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007293/0.289, allocations: 6.926 MB / 487.4 MB, free: 11.26 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00196/0.291, allocations: 1.338 MB / 488.7 MB, free: 9.918 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002335/0.2933, allocations: 1.962 MB / 490.7 MB, free: 7.949 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003805/0.2937, allocations: 148 kB / 490.8 MB, free: 7.805 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001825/0.2956, allocations: 1.108 MB / 491.9 MB, free: 6.695 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001495/0.2971, allocations: 1.811 MB / 493.7 MB, free: 4.879 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001637/0.2987, allocations: 2.105 MB / 495.9 MB, free: 2.754 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006147/0.3049, allocations: 7.096 MB / 0.4912 GB, free: 11.63 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3049, allocations: 0 / 0.4912 GB, free: 11.63 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3049, allocations: 0 / 0.4912 GB, free: 11.63 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001523/0.3051, allocations: 0 / 0.4912 GB, free: 11.63 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.007814/0.3129, allocations: 4.259 MB / 0.4953 GB, free: 7.305 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.313, allocations: 11.97 kB / 0.4953 GB, free: 7.293 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008009/0.321, allocations: 2.237 MB / 0.4975 GB, free: 5.047 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005464/0.3265, allocations: 2.795 MB / 0.5002 GB, free: 2.191 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001698/0.3267, allocations: 250.3 kB / 0.5005 GB, free: 1.945 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006235/0.3273, allocations: 331.8 kB / 0.5008 GB, free: 1.621 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1775/0.5048, allocations: 10.8 MB / 0.5113 GB, free: 93.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.655e-05/0.5049, allocations: 45.08 kB / 0.5114 GB, free: 93.66 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003365/0.5053, allocations: 157.9 kB / 0.5115 GB, free: 93.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002632/0.5079, allocations: 2.15 MB / 0.5136 GB, free: 92.76 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0136/0.5215, allocations: 9.186 MB / 0.5226 GB, free: 84.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03519/0.5567, allocations: 41.93 MB / 0.5636 GB, free: 41.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009376/0.5661, allocations: 4.486 MB / 0.5679 GB, free: 36.8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002596/0.5688, allocations: 2.49 MB / 0.5704 GB, free: 34.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009292/0.5781, allocations: 7.39 MB / 0.5776 GB, free: 26.75 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.062e-05/0.5782, allocations: 55.5 kB / 0.5776 GB, free: 26.69 MB / 378.7 MB Notification: Performance of pre-optimization done (n=177): time 4.869e-06/0.5782, allocations: 0 / 0.5776 GB, free: 26.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=198): time 0.03919/0.6174, allocations: 18.74 MB / 0.5959 GB, free: 7.828 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.005e-05/0.6175, allocations: 175.5 kB / 0.5961 GB, free: 7.617 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0054/0.6229, allocations: 4.586 MB / 0.6006 GB, free: 3.012 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000378/0.6233, allocations: 61.38 kB / 0.6006 GB, free: 2.949 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001486/0.6248, allocations: 3.216 MB / 0.6038 GB, free: 15.73 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000875/0.6257, allocations: 0.7536 MB / 0.6045 GB, free: 14.98 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002921/0.626, allocations: 128.1 kB / 0.6046 GB, free: 14.86 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000388/0.6264, allocations: 0.5746 MB / 0.6052 GB, free: 14.28 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004018/0.6304, allocations: 2.374 MB / 0.6075 GB, free: 11.9 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006566/0.637, allocations: 6.119 MB / 0.6135 GB, free: 3.922 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01019/0.6472, allocations: 9.202 MB / 0.6225 GB, free: 8.875 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001093/0.6474, allocations: 36 kB / 0.6225 GB, free: 8.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01796/0.6654, allocations: 9.305 MB / 0.6316 GB, free: 15.52 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.847e-05/0.6655, allocations: 60 kB / 0.6317 GB, free: 15.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001347/0.6656, allocations: 132 kB / 0.6318 GB, free: 15.33 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002792/0.6684, allocations: 1.199 MB / 0.633 GB, free: 14.13 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00459/0.673, allocations: 1.45 MB / 0.6344 GB, free: 12.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008166/0.6812, allocations: 6.755 MB / 0.641 GB, free: 5.793 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004292/0.6855, allocations: 359.1 kB / 0.6413 GB, free: 5.445 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000729/0.6863, allocations: 384 kB / 0.6417 GB, free: 5.07 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * Number of states: 0 () * Number of discrete variables: 49 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.color[3],forceAndTorque.forceArrow.color[2],forceAndTorque.forceArrow.color[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (772): * Single equations (assignments): 766 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,22,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003449/0.6898, allocations: 2.237 MB / 0.6439 GB, free: 2.82 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006582/0.6904, allocations: 390.8 kB / 0.6442 GB, free: 2.434 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006632/0.6971, allocations: 4.058 MB / 0.6482 GB, free: 14.36 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.408e-05/0.6971, allocations: 24 kB / 0.6482 GB, free: 14.33 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/0.6971, allocations: 4 kB / 0.6482 GB, free: 14.33 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-05/0.6972, allocations: 11.97 kB / 0.6482 GB, free: 14.32 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01583/0.713, allocations: 9.618 MB / 0.6576 GB, free: 4.594 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.474e-05/0.713, allocations: 4 kB / 0.6576 GB, free: 4.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001368/0.7144, allocations: 320.2 kB / 0.6579 GB, free: 4.277 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002497/0.7169, allocations: 1.019 MB / 0.6589 GB, free: 3.258 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001529/0.7171, allocations: 35.98 kB / 0.659 GB, free: 3.223 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.191/0.9081, allocations: 6.355 MB / 0.6652 GB, free: 141.5 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.9081, allocations: 7.812 kB / 0.6652 GB, free: 141.5 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01011/0.9183, allocations: 7.033 MB / 0.6721 GB, free: 139 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001184/0.9195, allocations: 478.2 kB / 0.6725 GB, free: 138.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006834/0.9202, allocations: 39.8 kB / 0.6725 GB, free: 138.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001604/0.9218, allocations: 119.3 kB / 0.6727 GB, free: 138.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003402/0.9221, allocations: 130.5 kB / 0.6728 GB, free: 138.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001271/0.9223, allocations: 58.97 kB / 0.6728 GB, free: 138.8 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003936/0.9262, allocations: 2.918 MB / 0.6757 GB, free: 137.8 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.9262, allocations: 0 / 0.6757 GB, free: 137.8 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005165/0.9314, allocations: 1.085 MB / 0.6768 GB, free: 137.7 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.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 (157): * Single equations (assignments): 153 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005043/0.9319, allocations: 191.1 kB / 0.6769 GB, free: 137.6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00784/0.9398, allocations: 5.773 MB / 0.6826 GB, free: 135.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.605e-06/0.9398, allocations: 0 / 0.6826 GB, free: 135.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002827/0.9426, allocations: 2.053 MB / 0.6846 GB, free: 134.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005395/0.9481, allocations: 490.8 kB / 0.685 GB, free: 134.5 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01354/0.9616, allocations: 12.48 MB / 0.6972 GB, free: 123.6 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002594/0.9642, allocations: 3.452 MB / 0.7006 GB, free: 120.7 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004115/0.9684, allocations: 2.063 MB / 0.7026 GB, free: 118.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006915/0.9691, allocations: 263.4 kB / 0.7029 GB, free: 118.4 MB / 442.7 MB Notification: Performance of SimCode: time 7.62e-07/0.9691, allocations: 0 / 0.7029 GB, free: 118.4 MB / 442.7 MB Notification: Performance of Templates: time 0.06094/1.03, allocations: 40.74 MB / 0.7427 GB, free: 77.88 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches