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.001102/0.001102, allocations: 114.9 kB / 17.74 MB, free: 5.336 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.001091/0.001091, allocations: 188.5 kB / 18.67 MB, free: 4.41 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.396/1.396, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001108/0.001108, allocations: 51.88 kB / 352 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2529/0.254, allocations: 49.43 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.0119/0.266, allocations: 11.41 MB / 412.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007833/0.2738, allocations: 4.07 MB / 416.9 MB, free: 9.324 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001498/0.2754, allocations: 75.75 kB / 417 MB, free: 9.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005657/0.2811, allocations: 3.185 MB / 420.1 MB, free: 6.055 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004958/0.2861, allocations: 1.956 MB / 422.1 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002018/0.2882, allocations: 0.8227 MB / 422.9 MB, free: 3.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006511/0.2947, allocations: 4.454 MB / 427.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00469/0.2994, allocations: 4.06 MB / 431.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002774/0.3022, allocations: 1.655 MB / 433.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003239/0.3055, allocations: 2.149 MB / 435.2 MB, free: 6.863 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001059/0.3066, allocations: 352 kB / 435.6 MB, free: 6.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002749/0.3093, allocations: 1.268 MB / 436.9 MB, free: 5.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00251/0.3119, allocations: 2.069 MB / 438.9 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003903/0.3158, allocations: 2.357 MB / 441.3 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008708/0.3245, allocations: 7.63 MB / 448.9 MB, free: 9.148 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.3246, allocations: 0 / 448.9 MB, free: 9.148 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3246, allocations: 0 / 448.9 MB, free: 9.148 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002395/0.3248, allocations: 0 / 448.9 MB, free: 9.148 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.01271/0.3376, allocations: 5.19 MB / 454.1 MB, free: 3.887 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.3376, allocations: 8.031 kB / 454.1 MB, free: 3.879 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00939/0.347, allocations: 2.178 MB / 456.3 MB, free: 1.691 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006958/0.354, allocations: 2.838 MB / 459.1 MB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002342/0.3543, allocations: 258.1 kB / 459.4 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001246/0.3555, allocations: 327.8 kB / 459.7 MB, free: 14.22 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01946/0.375, allocations: 10.82 MB / 470.5 MB, free: 2.703 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001214/0.3752, allocations: 35.69 kB / 470.6 MB, free: 2.668 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005238/0.3757, allocations: 159.8 kB / 470.7 MB, free: 2.512 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003656/0.3794, allocations: 2.154 MB / 472.9 MB, free: 364 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01766/0.3971, allocations: 9.219 MB / 482.1 MB, free: 7.113 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04816/0.4453, allocations: 41.7 MB / 0.5115 GB, free: 12.28 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01157/0.4569, allocations: 4.483 MB / 0.5159 GB, free: 7.652 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00307/0.46, allocations: 2.501 MB / 0.5183 GB, free: 5.145 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01165/0.4717, allocations: 7.377 MB / 0.5255 GB, free: 13.56 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.729e-05/0.4718, allocations: 51.56 kB / 0.5256 GB, free: 13.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 4.819e-06/0.4718, allocations: 0 / 0.5256 GB, free: 13.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=198): time 0.2667/0.7385, allocations: 18.76 MB / 0.5439 GB, free: 130.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.743e-05/0.7386, allocations: 179.1 kB / 0.5441 GB, free: 130 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006303/0.7449, allocations: 4.618 MB / 0.5486 GB, free: 128.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004377/0.7454, allocations: 58.7 kB / 0.5486 GB, free: 128.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001791/0.7472, allocations: 3.21 MB / 0.5518 GB, free: 125.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000793/0.748, allocations: 0.7552 MB / 0.5525 GB, free: 125.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001446/0.7495, allocations: 1.297 MB / 0.5538 GB, free: 124.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.386e-05/0.7495, allocations: 312.5 kB / 0.5541 GB, free: 124.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00265/0.7522, allocations: 2.395 MB / 0.5564 GB, free: 123.6 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003873/0.756, allocations: 6.14 MB / 0.5624 GB, free: 117.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007316/0.7634, allocations: 9.242 MB / 0.5714 GB, free: 107.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.377e-05/0.7635, allocations: 36 kB / 0.5715 GB, free: 107.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01519/0.7787, allocations: 9.362 MB / 0.5806 GB, free: 98.68 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001425/0.7789, allocations: 60 kB / 0.5807 GB, free: 98.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001584/0.779, allocations: 132 kB / 0.5808 GB, free: 98.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002752/0.7818, allocations: 1.191 MB / 0.582 GB, free: 97.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004465/0.7863, allocations: 1.45 MB / 0.5834 GB, free: 95.85 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007569/0.7939, allocations: 7.282 MB / 0.5905 GB, free: 88.43 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005378/0.7993, allocations: 355.4 kB / 0.5908 GB, free: 88.08 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009827/0.8003, allocations: 388 kB / 0.5912 GB, free: 87.7 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.003405/0.8038, allocations: 2.241 MB / 0.5934 GB, free: 85.45 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008966/0.8047, allocations: 386.9 kB / 0.5938 GB, free: 85.07 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00609/0.8108, allocations: 4.054 MB / 0.5977 GB, free: 81 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.125e-05/0.8108, allocations: 35.94 kB / 0.5978 GB, free: 80.97 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/0.8109, allocations: 4 kB / 0.5978 GB, free: 80.96 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.272e-05/0.8109, allocations: 7.969 kB / 0.5978 GB, free: 80.96 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01702/0.8279, allocations: 9.524 MB / 0.6071 GB, free: 71.34 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.594e-05/0.828, allocations: 4 kB / 0.6071 GB, free: 71.33 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001501/0.8295, allocations: 323.4 kB / 0.6074 GB, free: 71.02 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00244/0.832, allocations: 1.025 MB / 0.6084 GB, free: 69.99 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002532/0.8322, allocations: 36 kB / 0.6084 GB, free: 69.95 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007362/0.8396, allocations: 6.874 MB / 0.6151 GB, free: 62.95 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.8396, allocations: 8 kB / 0.6151 GB, free: 62.94 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009187/0.8488, allocations: 7.057 MB / 0.622 GB, free: 55.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001483/0.8504, allocations: 463.9 kB / 0.6225 GB, free: 55.32 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006523/0.851, allocations: 39.83 kB / 0.6225 GB, free: 55.29 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001662/0.8527, allocations: 123.8 kB / 0.6226 GB, free: 55.16 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003184/0.853, allocations: 129 kB / 0.6227 GB, free: 55.04 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001292/0.8532, allocations: 56 kB / 0.6228 GB, free: 54.98 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003765/0.8569, allocations: 2.96 MB / 0.6257 GB, free: 52.02 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.857, allocations: 0 / 0.6257 GB, free: 52.02 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005832/0.8628, allocations: 1.081 MB / 0.6267 GB, free: 50.94 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.0005415/0.8634, allocations: 181.6 kB / 0.6269 GB, free: 50.76 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00786/0.8712, allocations: 5.766 MB / 0.6326 GB, free: 45.02 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.498e-05/0.8713, allocations: 4 kB / 0.6326 GB, free: 45.01 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002953/0.8743, allocations: 2.06 MB / 0.6346 GB, free: 42.94 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003493/0.8778, allocations: 0.5036 MB / 0.6351 GB, free: 42.45 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01615/0.894, allocations: 10.74 MB / 0.6455 GB, free: 31.62 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003006/0.897, allocations: 3.441 MB / 0.6489 GB, free: 28.15 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001122/0.8982, allocations: 323.3 kB / 0.6492 GB, free: 27.83 MB / 462.1 MB Notification: Performance of SimCode: time 1.523e-06/0.8982, allocations: 0 / 0.6492 GB, free: 27.83 MB / 462.1 MB Notification: Performance of Templates: time 0.318/1.216, allocations: 83.46 MB / 0.7307 GB, free: 174 MB / 0.5137 GB 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","/var/lib/jenkins1/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