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.001389/0.001389, allocations: 114.1 kB / 17.07 MB, free: 5.984 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.001632/0.001633, allocations: 194.9 kB / 18.01 MB, free: 5.066 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.397/1.397, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009699/0.0009699, allocations: 47.94 kB / 351.3 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2536, allocations: 49.44 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.0121/0.2657, allocations: 11.42 MB / 412.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008242/0.274, allocations: 4.061 MB / 416.2 MB, free: 9.316 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00177/0.2758, allocations: 67.81 kB / 416.3 MB, free: 9.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005868/0.2817, allocations: 3.197 MB / 419.5 MB, free: 6.043 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004624/0.2864, allocations: 1.953 MB / 421.4 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00194/0.2883, allocations: 0.8266 MB / 422.3 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006311/0.2946, allocations: 4.456 MB / 426.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00501/0.2997, allocations: 4.06 MB / 430.8 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002465/0.3021, allocations: 1.655 MB / 432.4 MB, free: 9.008 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003168/0.3053, allocations: 2.157 MB / 434.6 MB, free: 6.844 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001106/0.3065, allocations: 352 kB / 434.9 MB, free: 6.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002795/0.3093, allocations: 1.252 MB / 436.2 MB, free: 5.246 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002355/0.3116, allocations: 2.069 MB / 438.2 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003604/0.3153, allocations: 2.357 MB / 440.6 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008509/0.3238, allocations: 7.657 MB / 448.3 MB, free: 9.113 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3238, allocations: 0 / 448.3 MB, free: 9.113 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3238, allocations: 0 / 448.3 MB, free: 9.113 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001707/0.324, allocations: 4 kB / 448.3 MB, free: 9.109 MB / 366.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.009689/0.3337, allocations: 5.326 MB / 453.6 MB, free: 3.703 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.3338, allocations: 8.031 kB / 453.6 MB, free: 3.695 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008445/0.3422, allocations: 2.205 MB / 455.8 MB, free: 1.484 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005318/0.3475, allocations: 2.859 MB / 458.7 MB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001663/0.3477, allocations: 250.3 kB / 458.9 MB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006313/0.3484, allocations: 339.7 kB / 459.2 MB, free: 13.99 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01671/0.3651, allocations: 10.82 MB / 470.1 MB, free: 2.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001194/0.3653, allocations: 39.64 kB / 470.1 MB, free: 2.441 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004228/0.3657, allocations: 159.8 kB / 470.3 MB, free: 2.285 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003467/0.3692, allocations: 2.15 MB / 472.4 MB, free: 136 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01734/0.3865, allocations: 9.223 MB / 481.6 MB, free: 6.887 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05251/0.4391, allocations: 41.76 MB / 0.5111 GB, free: 12 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01151/0.4506, allocations: 4.499 MB / 0.5155 GB, free: 7.359 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00315/0.4538, allocations: 2.493 MB / 0.5179 GB, free: 4.863 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01186/0.4657, allocations: 7.398 MB / 0.5252 GB, free: 13.26 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.553e-05/0.4658, allocations: 51.5 kB / 0.5252 GB, free: 13.2 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 6.362e-06/0.4658, allocations: 0 / 0.5252 GB, free: 13.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=198): time 0.2589/0.7247, allocations: 19 MB / 0.5438 GB, free: 128.6 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.789e-05/0.7248, allocations: 175.7 kB / 0.5439 GB, free: 128.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006284/0.7311, allocations: 4.638 MB / 0.5485 GB, free: 126.8 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003537/0.7315, allocations: 53.42 kB / 0.5485 GB, free: 126.7 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001855/0.7333, allocations: 3.343 MB / 0.5518 GB, free: 124.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006579/0.734, allocations: 0.7884 MB / 0.5525 GB, free: 123.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00131/0.7353, allocations: 1.306 MB / 0.5538 GB, free: 123.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.14e-05/0.7354, allocations: 304.8 kB / 0.5541 GB, free: 123 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002761/0.7381, allocations: 2.397 MB / 0.5565 GB, free: 122.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004159/0.7423, allocations: 6.147 MB / 0.5625 GB, free: 116.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007506/0.7498, allocations: 9.24 MB / 0.5715 GB, free: 106.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.486e-05/0.7499, allocations: 36 kB / 0.5715 GB, free: 106.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01285/0.7628, allocations: 9.377 MB / 0.5807 GB, free: 97.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.097e-05/0.7629, allocations: 60 kB / 0.5807 GB, free: 97.14 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.363e-05/0.763, allocations: 132 kB / 0.5809 GB, free: 97.01 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00253/0.7655, allocations: 1.197 MB / 0.582 GB, free: 95.81 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003815/0.7693, allocations: 1.45 MB / 0.5834 GB, free: 94.36 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007455/0.7768, allocations: 7.289 MB / 0.5906 GB, free: 86.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00489/0.7817, allocations: 351.6 kB / 0.5909 GB, free: 86.59 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008392/0.7825, allocations: 387.9 kB / 0.5913 GB, free: 86.21 MB / 462.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.0036/0.7862, allocations: 2.239 MB / 0.5935 GB, free: 83.96 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009503/0.7871, allocations: 413.2 kB / 0.5938 GB, free: 83.55 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006849/0.794, allocations: 4.058 MB / 0.5978 GB, free: 79.48 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-05/0.794, allocations: 23.7 kB / 0.5978 GB, free: 79.46 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.469e-05/0.794, allocations: 4 kB / 0.5978 GB, free: 79.46 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.959e-05/0.7941, allocations: 11.97 kB / 0.5978 GB, free: 79.45 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01623/0.8103, allocations: 9.522 MB / 0.6071 GB, free: 69.83 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.279e-05/0.8104, allocations: 4 kB / 0.6071 GB, free: 69.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001439/0.8118, allocations: 323.5 kB / 0.6075 GB, free: 69.51 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002504/0.8143, allocations: 1.021 MB / 0.6085 GB, free: 68.48 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002258/0.8146, allocations: 43.94 kB / 0.6085 GB, free: 68.44 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007598/0.8222, allocations: 6.873 MB / 0.6152 GB, free: 61.44 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.8222, allocations: 7.938 kB / 0.6152 GB, free: 61.43 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009546/0.8318, allocations: 7.076 MB / 0.6221 GB, free: 54.27 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001384/0.8332, allocations: 490.2 kB / 0.6226 GB, free: 53.77 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001095/0.8343, allocations: 36.75 kB / 0.6226 GB, free: 53.73 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002539/0.8369, allocations: 123.8 kB / 0.6227 GB, free: 53.61 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000451/0.8373, allocations: 130 kB / 0.6229 GB, free: 53.48 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002054/0.8375, allocations: 60 kB / 0.6229 GB, free: 53.43 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005691/0.8433, allocations: 2.956 MB / 0.6258 GB, free: 50.47 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8433, allocations: 4 kB / 0.6258 GB, free: 50.46 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005614/0.8489, allocations: 1.082 MB / 0.6269 GB, free: 49.39 MB / 462.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.0005686/0.8495, allocations: 182.8 kB / 0.6271 GB, free: 49.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00773/0.8572, allocations: 5.768 MB / 0.6327 GB, free: 43.45 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.317e-06/0.8573, allocations: 4 kB / 0.6327 GB, free: 43.45 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003099/0.8604, allocations: 2.06 MB / 0.6347 GB, free: 41.38 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003884/0.8643, allocations: 0.5032 MB / 0.6352 GB, free: 40.88 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01678/0.8811, allocations: 10.42 MB / 0.6454 GB, free: 30.36 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00466/0.8858, allocations: 3.456 MB / 0.6487 GB, free: 26.87 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004787/0.8906, allocations: 2.043 MB / 0.6507 GB, free: 24.82 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001187/0.8918, allocations: 263.4 kB / 0.651 GB, free: 24.56 MB / 462.1 MB Notification: Performance of SimCode: time 1.914e-06/0.8918, allocations: 0 / 0.651 GB, free: 24.56 MB / 462.1 MB Notification: Performance of Templates: time 0.06608/0.9579, allocations: 39.49 MB / 0.6896 GB, free: 1.316 MB / 478.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