Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008122/0.0008122, allocations: 180.8 kB / 17.04 MB, free: 5.113 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.106/1.106, allocations: 223.3 MB / 241 MB, free: 10.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007618/0.0007618, allocations: 90.59 kB / 292.2 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000255/0.000255, allocations: 11.94 kB / 351.8 MB, free: 15.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.212/0.2122, allocations: 50.41 MB / 402.2 MB, free: 32.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.03628/0.2486, allocations: 51.58 MB / 453.8 MB, free: 12.83 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.06044/0.3091, allocations: 11.07 MB / 464.9 MB, free: 1.738 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008986/0.3181, allocations: 243.4 kB / 465.1 MB, free: 1.5 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007457/0.3256, allocations: 2.706 MB / 467.8 MB, free: 14.78 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02006/0.3457, allocations: 7.996 MB / 475.8 MB, free: 6.754 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00323/0.349, allocations: 0.6241 MB / 476.4 MB, free: 6.129 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.1227/0.4717, allocations: 32.7 MB / 0.4972 GB, free: 5.387 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007341/0.4791, allocations: 5.021 MB / 0.5021 GB, free: 300 kB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2142/0.6933, allocations: 1.295 MB / 0.5034 GB, free: 33.58 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002445/0.6958, allocations: 1.962 MB / 0.5053 GB, free: 33.58 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004164/0.6963, allocations: 151 kB / 0.5054 GB, free: 33.58 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00171/0.698, allocations: 0.9479 MB / 0.5064 GB, free: 33.58 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001173/0.6992, allocations: 1.796 MB / 0.5081 GB, free: 33.58 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006327/0.6998, allocations: 0.8787 MB / 0.509 GB, free: 33.55 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004731/0.7045, allocations: 5.849 MB / 0.5147 GB, free: 33.18 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.7046, allocations: 4.844 kB / 0.5147 GB, free: 33.18 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.7046, allocations: 2.188 kB / 0.5147 GB, free: 33.18 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.533e-05/0.7047, allocations: 3.969 kB / 0.5147 GB, free: 33.18 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.007149/0.7118, allocations: 4.315 MB / 0.5189 GB, free: 31.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.7119, allocations: 8.562 kB / 0.5189 GB, free: 31.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007692/0.7196, allocations: 2.238 MB / 0.5211 GB, free: 30.9 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00431/0.7239, allocations: 2.735 MB / 0.5238 GB, free: 30.35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000125/0.724, allocations: 248.6 kB / 0.524 GB, free: 30.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004927/0.7245, allocations: 333.7 kB / 0.5243 GB, free: 30.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01328/0.7378, allocations: 10.81 MB / 0.5349 GB, free: 26.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001005/0.7379, allocations: 40.16 kB / 0.5349 GB, free: 26.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003898/0.7383, allocations: 156 kB / 0.5351 GB, free: 26.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002935/0.7413, allocations: 2.163 MB / 0.5372 GB, free: 26.45 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0133/0.7546, allocations: 9.186 MB / 0.5461 GB, free: 20.9 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03885/0.7935, allocations: 41.89 MB / 0.5871 GB, free: 1.895 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01024/0.8038, allocations: 4.505 MB / 0.5915 GB, free: 14.14 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002795/0.8066, allocations: 2.499 MB / 0.5939 GB, free: 12.59 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01012/0.8167, allocations: 7.383 MB / 0.6011 GB, free: 6.109 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.571e-05/0.8168, allocations: 54.56 kB / 0.6012 GB, free: 6.051 MB / 410.7 MB Notification: Performance of pre-optimization done (n=177): time 4.419e-06/0.8168, allocations: 0 / 0.6012 GB, free: 6.051 MB / 410.7 MB Notification: Performance of matching and sorting (n=198): time 0.04407/0.8609, allocations: 18.73 MB / 0.6194 GB, free: 3.246 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.861, allocations: 178.4 kB / 0.6196 GB, free: 3.035 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00702/0.868, allocations: 4.6 MB / 0.6241 GB, free: 14.42 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001874/0.8682, allocations: 53.53 kB / 0.6242 GB, free: 14.37 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002051/0.8703, allocations: 3.21 MB / 0.6273 GB, free: 11.17 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007104/0.871, allocations: 0.7582 MB / 0.628 GB, free: 10.42 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002519/0.8713, allocations: 124 kB / 0.6282 GB, free: 10.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003306/0.8716, allocations: 0.5768 MB / 0.6287 GB, free: 9.719 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003175/0.8748, allocations: 2.37 MB / 0.631 GB, free: 7.344 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005605/0.8804, allocations: 6.126 MB / 0.637 GB, free: 15.43 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004944/0.8854, allocations: 3.733 MB / 0.6407 GB, free: 11.81 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.002e-05/0.8854, allocations: 36 kB / 0.6407 GB, free: 11.77 MB / 458.7 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01492/0.9004, allocations: 9.304 MB / 0.6498 GB, free: 3.254 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001069/0.9005, allocations: 60 kB / 0.6498 GB, free: 3.195 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001882/0.9007, allocations: 132 kB / 0.65 GB, free: 3.066 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002799/0.9035, allocations: 1.226 MB / 0.6512 GB, free: 1.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004201/0.9077, allocations: 1.45 MB / 0.6526 GB, free: 0.5117 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008331/0.9161, allocations: 6.778 MB / 0.6592 GB, free: 9.676 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00401/0.9201, allocations: 353.6 kB / 0.6595 GB, free: 9.332 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005886/0.9207, allocations: 380 kB / 0.6599 GB, free: 8.961 MB / 474.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 22} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003568/0.9243, allocations: 2.234 MB / 0.6621 GB, free: 6.844 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007812/0.9251, allocations: 394.8 kB / 0.6625 GB, free: 6.453 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006795/0.9319, allocations: 4.047 MB / 0.6664 GB, free: 2.398 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.841e-05/0.9319, allocations: 24 kB / 0.6664 GB, free: 2.375 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.414e-05/0.9319, allocations: 4 kB / 0.6664 GB, free: 2.371 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.879e-05/0.932, allocations: 9.938 kB / 0.6664 GB, free: 2.363 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01563/0.9476, allocations: 9.608 MB / 0.6758 GB, free: 8.711 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.518e-05/0.9476, allocations: 8 kB / 0.6758 GB, free: 8.703 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001357/0.949, allocations: 325.6 kB / 0.6761 GB, free: 8.402 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002415/0.9514, allocations: 1.019 MB / 0.6771 GB, free: 7.379 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001452/0.9516, allocations: 41.62 kB / 0.6772 GB, free: 7.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008037/0.9596, allocations: 6.351 MB / 0.6834 GB, free: 0.8711 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/0.9596, allocations: 6.719 kB / 0.6834 GB, free: 0.8672 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1784/1.138, allocations: 7.023 MB / 0.6902 GB, free: 189.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001196/1.139, allocations: 475.3 kB / 0.6907 GB, free: 189.7 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004067/1.14, allocations: 38.89 kB / 0.6907 GB, free: 189.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00137/1.141, allocations: 126.2 kB / 0.6909 GB, free: 189.7 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002536/1.141, allocations: 123.2 kB / 0.691 GB, free: 189.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001249/1.142, allocations: 53.86 kB / 0.691 GB, free: 189.7 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003516/1.145, allocations: 2.94 MB / 0.6939 GB, free: 188.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.31e-07/1.145, allocations: 5.438 kB / 0.6939 GB, free: 188.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003746/1.149, allocations: 1.083 MB / 0.695 GB, free: 188.6 MB / 490.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004253/1.149, allocations: 179.5 kB / 0.6951 GB, free: 188.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006476/1.156, allocations: 5.766 MB / 0.7008 GB, free: 186.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/1.156, allocations: 0 / 0.7008 GB, free: 186.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002509/1.158, allocations: 2.051 MB / 0.7028 GB, free: 185.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002255/1.161, allocations: 476.4 kB / 0.7032 GB, free: 185.5 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01296/1.173, allocations: 12.47 MB / 0.7154 GB, free: 175.7 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002631/1.176, allocations: 3.447 MB / 0.7188 GB, free: 173 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009895/1.177, allocations: 314.8 kB / 0.7191 GB, free: 172.7 MB / 490.7 MB Notification: Performance of SimCode: time 9.22e-07/1.177, allocations: 0 / 0.7191 GB, free: 172.7 MB / 490.7 MB Notification: Performance of Templates: time 0.113/1.29, allocations: 81.48 MB / 0.7986 GB, free: 93.1 MB / 490.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/jenkins1/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