Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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) 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(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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009459/0.0009459, allocations: 94.2 kB / 18 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001149/0.001149, allocations: 202.4 kB / 18.93 MB, free: 4.852 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.7 MB / 247.5 MB, free: 9.469 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002603/0.0002604, allocations: 8 kB / 308.4 MB, free: 0.5664 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09544/0.09571, allocations: 51.52 MB / 359.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.1967/0.2925, allocations: 48.05 MB / 408 MB, free: 6.742 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02248/0.315, allocations: 10.25 MB / 418.2 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008992/0.3241, allocations: 210.2 kB / 418.4 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001631/0.3257, allocations: 429.7 kB / 418.8 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004795/0.3305, allocations: 1.777 MB / 420.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00163/0.3322, allocations: 0.6469 MB / 421.3 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007834/0.34, allocations: 6.438 MB / 427.7 MB, free: 6.945 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008118/0.3482, allocations: 5.694 MB / 433.4 MB, free: 1.168 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002152/0.3504, allocations: 1.159 MB / 434.6 MB, free: 4 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002875/0.3533, allocations: 1.942 MB / 436.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006767/0.354, allocations: 140 kB / 436.6 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002271/0.3563, allocations: 1.104 MB / 437.7 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001968/0.3582, allocations: 1.772 MB / 439.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002612/0.3609, allocations: 2.02 MB / 441.5 MB, free: 8.996 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005912/0.3668, allocations: 5.658 MB / 447.2 MB, free: 3.324 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3668, allocations: 0 / 447.2 MB, free: 3.324 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.3668, allocations: 0 / 447.2 MB, free: 3.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002196/0.3671, allocations: 4 kB / 447.2 MB, free: 3.32 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1541 * Number of variables: 1541 Notification: Performance of Generate backend data structure: time 0.008924/0.376, allocations: 4.156 MB / 451.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.3761, allocations: 11.97 kB / 451.4 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009067/0.3851, allocations: 2.183 MB / 453.5 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005583/0.3908, allocations: 2.725 MB / 456.3 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002232/0.391, allocations: 250.1 kB / 456.5 MB, free: 9.859 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001/0.392, allocations: 323.8 kB / 456.8 MB, free: 9.543 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01852/0.4105, allocations: 10.45 MB / 467.3 MB, free: 14.4 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001347/0.4107, allocations: 43.59 kB / 467.3 MB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007246/0.4115, allocations: 155.8 kB / 467.5 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003517/0.415, allocations: 2.025 MB / 469.5 MB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01734/0.4323, allocations: 8.921 MB / 478.4 MB, free: 3.234 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04815/0.4805, allocations: 41.02 MB / 0.5073 GB, free: 9.121 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01146/0.492, allocations: 4.497 MB / 0.5117 GB, free: 4.48 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003097/0.4951, allocations: 2.504 MB / 0.5141 GB, free: 1.965 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01111/0.5063, allocations: 7.352 MB / 0.5213 GB, free: 10.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.722e-05/0.5064, allocations: 55.5 kB / 0.5213 GB, free: 10.34 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 4.789e-06/0.5064, allocations: 4 kB / 0.5213 GB, free: 10.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.2111/0.7175, allocations: 18.63 MB / 0.5395 GB, free: 143.8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.164e-05/0.7176, allocations: 179.3 kB / 0.5397 GB, free: 143.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008984/0.7266, allocations: 4.558 MB / 0.5442 GB, free: 141.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004153/0.727, allocations: 57.36 kB / 0.5442 GB, free: 141.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002201/0.7292, allocations: 3.122 MB / 0.5473 GB, free: 139.5 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001039/0.7303, allocations: 0.7569 MB / 0.548 GB, free: 138.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001301/0.7316, allocations: 0.5496 MB / 0.5485 GB, free: 138.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.443e-05/0.7317, allocations: 303.9 kB / 0.5488 GB, free: 138.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004084/0.7358, allocations: 2.381 MB / 0.5511 GB, free: 137.6 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004926/0.7407, allocations: 6.082 MB / 0.5571 GB, free: 131.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007844/0.7486, allocations: 9.142 MB / 0.566 GB, free: 124.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.121e-05/0.7487, allocations: 38.94 kB / 0.5661 GB, free: 124.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=821) (initialization): time 0.01443/0.7631, allocations: 9.278 MB / 0.5751 GB, free: 119.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.563e-05/0.7633, allocations: 62.66 kB / 0.5752 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001287/0.7634, allocations: 135.9 kB / 0.5753 GB, free: 119.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002631/0.7661, allocations: 1.198 MB / 0.5765 GB, free: 118.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004158/0.7702, allocations: 1.43 MB / 0.5779 GB, free: 117 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006995/0.7772, allocations: 6.813 MB / 0.5845 GB, free: 110.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004657/0.7819, allocations: 347.5 kB / 0.5849 GB, free: 109.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007681/0.7827, allocations: 378.2 kB / 0.5852 GB, free: 109.4 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * Number of states: 0 () * Number of discrete variables: 46 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.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.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 (763): * Single equations (assignments): 757 * 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 {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002986/0.7857, allocations: 2.179 MB / 0.5873 GB, free: 107.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007223/0.7865, allocations: 390.9 kB / 0.5877 GB, free: 106.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006118/0.7926, allocations: 4.05 MB / 0.5917 GB, free: 102.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.142e-05/0.7926, allocations: 24 kB / 0.5917 GB, free: 102.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-05/0.7927, allocations: 5.062 kB / 0.5917 GB, free: 102.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.691e-05/0.7927, allocations: 11.97 kB / 0.5917 GB, free: 102.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01365/0.8063, allocations: 9.526 MB / 0.601 GB, free: 93.08 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-05/0.8064, allocations: 4 kB / 0.601 GB, free: 93.07 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001376/0.8078, allocations: 315.5 kB / 0.6013 GB, free: 92.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002366/0.8102, allocations: 1.022 MB / 0.6023 GB, free: 91.74 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001917/0.8104, allocations: 43.98 kB / 0.6024 GB, free: 91.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006853/0.8172, allocations: 6.361 MB / 0.6086 GB, free: 85.21 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.072e-06/0.8173, allocations: 12.81 kB / 0.6086 GB, free: 85.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008818/0.8261, allocations: 7.036 MB / 0.6155 GB, free: 78.07 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001185/0.8273, allocations: 471.9 kB / 0.6159 GB, free: 77.58 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007369/0.8281, allocations: 37.55 kB / 0.6159 GB, free: 77.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001678/0.8298, allocations: 127.8 kB / 0.6161 GB, free: 77.42 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003013/0.8301, allocations: 125 kB / 0.6162 GB, free: 77.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001211/0.8302, allocations: 55.94 kB / 0.6162 GB, free: 77.25 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003494/0.8337, allocations: 2.927 MB / 0.6191 GB, free: 74.32 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.8337, allocations: 480 / 0.6191 GB, free: 74.32 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004987/0.8387, allocations: 1.054 MB / 0.6201 GB, free: 73.27 MB / 446.1 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.0004597/0.8392, allocations: 172 kB / 0.6203 GB, free: 73.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007086/0.8463, allocations: 5.709 MB / 0.6259 GB, free: 67.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.556e-06/0.8463, allocations: 0 / 0.6259 GB, free: 67.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002906/0.8493, allocations: 2.058 MB / 0.6279 GB, free: 65.33 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006332/0.8556, allocations: 473.5 kB / 0.6283 GB, free: 64.88 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01466/0.8703, allocations: 12.62 MB / 0.6407 GB, free: 52.14 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002715/0.8731, allocations: 3.352 MB / 0.6439 GB, free: 48.75 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001086/0.8742, allocations: 311.4 kB / 0.6442 GB, free: 48.45 MB / 446.1 MB Notification: Performance of SimCode: time 6.61e-07/0.8742, allocations: 0 / 0.6442 GB, free: 48.45 MB / 446.1 MB Notification: Performance of Templates: time 0.2509/1.125, allocations: 79.26 MB / 0.7216 GB, free: 137.1 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches