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/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) 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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000837/0.000837, allocations: 95.23 kB / 16.65 MB, free: 6.535 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.001098/0.001098, allocations: 175.4 kB / 17.56 MB, free: 6.18 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.341/1.341, allocations: 223.3 MB / 241.6 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002466/0.0002467, allocations: 11.94 kB / 301.4 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09655/0.09681, allocations: 50.42 MB / 351.8 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.2432/0.3401, allocations: 55.44 MB / 407.3 MB, free: 9.375 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02668/0.3668, allocations: 11.59 MB / 418.9 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01046/0.3773, allocations: 243 kB / 419.1 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001591/0.3789, allocations: 442.5 kB / 419.5 MB, free: 0.543 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005359/0.3843, allocations: 1.847 MB / 421.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001637/0.3859, allocations: 0.6515 MB / 422 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007803/0.3938, allocations: 6.55 MB / 428.6 MB, free: 7.531 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008653/0.4025, allocations: 5.745 MB / 434.3 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002281/0.4048, allocations: 1.202 MB / 435.5 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002988/0.4078, allocations: 1.973 MB / 437.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007/0.4085, allocations: 152 kB / 437.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002245/0.4108, allocations: 1.123 MB / 438.8 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00203/0.4128, allocations: 1.846 MB / 440.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002655/0.4155, allocations: 2.093 MB / 442.7 MB, free: 9.273 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00698/0.4225, allocations: 7.104 MB / 449.8 MB, free: 2.145 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.4225, allocations: 0 / 449.8 MB, free: 2.145 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.4225, allocations: 0 / 449.8 MB, free: 2.145 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001103/0.4226, allocations: 0 / 449.8 MB, free: 2.145 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: 1599 * Number of variables: 1599 Notification: Performance of Generate backend data structure: time 0.007538/0.4302, allocations: 4.266 MB / 454.1 MB, free: 13.81 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.4302, allocations: 12.03 kB / 454.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009363/0.4396, allocations: 2.229 MB / 456.3 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005429/0.4451, allocations: 2.792 MB / 459.1 MB, free: 8.707 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002186/0.4453, allocations: 254.2 kB / 459.4 MB, free: 8.457 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008412/0.4462, allocations: 327.8 kB / 459.7 MB, free: 8.137 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01931/0.4655, allocations: 10.84 MB / 470.5 MB, free: 12.6 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001438/0.4656, allocations: 39.59 kB / 470.6 MB, free: 12.56 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000718/0.4664, allocations: 155.8 kB / 470.7 MB, free: 12.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003844/0.4702, allocations: 2.15 MB / 472.9 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01835/0.4886, allocations: 9.234 MB / 482.1 MB, free: 1 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0542/0.5428, allocations: 41.91 MB / 0.5117 GB, free: 5.961 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01222/0.5551, allocations: 4.499 MB / 0.5161 GB, free: 1.316 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0032/0.5583, allocations: 2.504 MB / 0.5186 GB, free: 14.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01105/0.5694, allocations: 7.396 MB / 0.5258 GB, free: 7.199 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.281e-05/0.5695, allocations: 51.56 kB / 0.5258 GB, free: 7.141 MB / 446.1 MB Notification: Performance of pre-optimization done (n=177): time 4.368e-06/0.5695, allocations: 0 / 0.5258 GB, free: 7.141 MB / 446.1 MB Notification: Performance of matching and sorting (n=198): time 0.228/0.7975, allocations: 18.75 MB / 0.5442 GB, free: 149.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.011e-05/0.7976, allocations: 180.9 kB / 0.5443 GB, free: 149 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006185/0.8038, allocations: 4.614 MB / 0.5488 GB, free: 147.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003679/0.8042, allocations: 59.33 kB / 0.5489 GB, free: 147.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0016/0.8058, allocations: 3.209 MB / 0.552 GB, free: 144.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000682/0.8065, allocations: 0.7573 MB / 0.5528 GB, free: 144.3 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006069/0.8071, allocations: 0.5512 MB / 0.5533 GB, free: 144 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.804e-05/0.8071, allocations: 309.4 kB / 0.5536 GB, free: 143.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003046/0.8102, allocations: 2.396 MB / 0.5559 GB, free: 142.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004008/0.8142, allocations: 6.15 MB / 0.5619 GB, free: 137.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008264/0.8225, allocations: 9.234 MB / 0.571 GB, free: 129.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001139/0.8226, allocations: 38.31 kB / 0.571 GB, free: 129.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01521/0.8378, allocations: 9.36 MB / 0.5801 GB, free: 121.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.078e-05/0.838, allocations: 60 kB / 0.5802 GB, free: 121.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001215/0.8381, allocations: 132 kB / 0.5803 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00272/0.8408, allocations: 1.203 MB / 0.5815 GB, free: 120 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00443/0.8453, allocations: 1.45 MB / 0.5829 GB, free: 118.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007722/0.853, allocations: 6.825 MB / 0.5896 GB, free: 111.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006014/0.8591, allocations: 351.5 kB / 0.5899 GB, free: 111.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001308/0.8604, allocations: 389 kB / 0.5903 GB, free: 110.9 MB / 446.1 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 {(2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004889/0.8653, allocations: 2.235 MB / 0.5925 GB, free: 108.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001103/0.8665, allocations: 390.8 kB / 0.5928 GB, free: 108.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00724/0.8737, allocations: 4.062 MB / 0.5968 GB, free: 104.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.459e-05/0.8738, allocations: 20.47 kB / 0.5968 GB, free: 104.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.472e-05/0.8738, allocations: 7.938 kB / 0.5968 GB, free: 104.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.202e-05/0.8738, allocations: 11.97 kB / 0.5968 GB, free: 104.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01717/0.891, allocations: 9.618 MB / 0.6062 GB, free: 94.39 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.049e-05/0.891, allocations: 4 kB / 0.6062 GB, free: 94.39 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001437/0.8925, allocations: 331 kB / 0.6066 GB, free: 94.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00243/0.8949, allocations: 1.026 MB / 0.6076 GB, free: 93.04 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001881/0.8951, allocations: 36 kB / 0.6076 GB, free: 93.01 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007022/0.9022, allocations: 6.361 MB / 0.6138 GB, free: 86.52 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.9022, allocations: 7.938 kB / 0.6138 GB, free: 86.51 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008817/0.911, allocations: 7.042 MB / 0.6207 GB, free: 79.38 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001191/0.9122, allocations: 471.8 kB / 0.6211 GB, free: 78.89 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009769/0.9132, allocations: 41.25 kB / 0.6212 GB, free: 78.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002195/0.9154, allocations: 123.8 kB / 0.6213 GB, free: 78.73 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003648/0.9158, allocations: 125 kB / 0.6214 GB, free: 78.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000181/0.916, allocations: 57.17 kB / 0.6215 GB, free: 78.55 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004731/0.9208, allocations: 2.956 MB / 0.6244 GB, free: 75.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.9208, allocations: 8 kB / 0.6244 GB, free: 75.59 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007136/0.9279, allocations: 1.084 MB / 0.6254 GB, free: 74.51 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.0007724/0.9287, allocations: 180.3 kB / 0.6256 GB, free: 74.33 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008628/0.9374, allocations: 5.734 MB / 0.6312 GB, free: 68.62 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/0.9374, allocations: 448 / 0.6312 GB, free: 68.62 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00308/0.9405, allocations: 2.06 MB / 0.6332 GB, free: 66.54 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006234/0.9467, allocations: 496.5 kB / 0.6337 GB, free: 66.06 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01376/0.9605, allocations: 12.49 MB / 0.6459 GB, free: 53.47 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002751/0.9633, allocations: 3.449 MB / 0.6492 GB, free: 49.98 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004256/0.9676, allocations: 2.045 MB / 0.6512 GB, free: 47.93 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007286/0.9683, allocations: 267.4 kB / 0.6515 GB, free: 47.67 MB / 446.1 MB Notification: Performance of SimCode: time 5.61e-07/0.9683, allocations: 3.938 kB / 0.6515 GB, free: 47.67 MB / 446.1 MB Notification: Performance of Templates: time 0.2624/1.231, allocations: 40.72 MB / 0.6913 GB, free: 136.5 MB / 446.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches