Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001417/0.001417, allocations: 195.3 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 226.5 MB / 244.7 MB, free: 6.445 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008148/0.0008149, allocations: 96.06 kB / 296.7 MB, free: 6.699 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002554/0.0002554, allocations: 8 kB / 356.8 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2096/0.2099, allocations: 51.3 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.03744/0.2473, allocations: 51.6 MB / 459.6 MB, free: 7.969 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02221/0.2696, allocations: 11.09 MB / 470.7 MB, free: 12.85 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007997/0.2776, allocations: 243.4 kB / 471 MB, free: 12.61 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00754/0.2852, allocations: 2.698 MB / 473.7 MB, free: 9.902 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01919/0.3044, allocations: 8.025 MB / 481.7 MB, free: 1.848 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00327/0.3077, allocations: 0.6631 MB / 482.4 MB, free: 1.184 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.04199/0.3497, allocations: 32.82 MB / 0.5031 GB, free: 332 kB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1912/0.5409, allocations: 5.506 MB / 0.5085 GB, free: 31.09 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00248/0.5435, allocations: 1.312 MB / 0.5098 GB, free: 31.09 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002467/0.546, allocations: 1.957 MB / 0.5117 GB, free: 31.08 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007741/0.5468, allocations: 143.5 kB / 0.5118 GB, free: 31.08 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002065/0.5488, allocations: 1.098 MB / 0.5129 GB, free: 31.08 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00168/0.5505, allocations: 1.8 MB / 0.5146 GB, free: 31.08 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001641/0.5522, allocations: 1.977 MB / 0.5166 GB, free: 31.05 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004837/0.557, allocations: 5.852 MB / 0.5223 GB, free: 30.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.5571, allocations: 0 / 0.5223 GB, free: 30.66 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.043e-06/0.5571, allocations: 0 / 0.5223 GB, free: 30.66 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001409/0.5572, allocations: 3.562 kB / 0.5223 GB, free: 30.66 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.007403/0.5646, allocations: 4.283 MB / 0.5265 GB, free: 28.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.5647, allocations: 10.06 kB / 0.5265 GB, free: 28.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007804/0.5725, allocations: 2.234 MB / 0.5287 GB, free: 27.51 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004998/0.5775, allocations: 2.762 MB / 0.5314 GB, free: 26.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001258/0.5777, allocations: 261.3 kB / 0.5316 GB, free: 26.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005755/0.5782, allocations: 329.2 kB / 0.5319 GB, free: 26.49 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01385/0.5921, allocations: 10.81 MB / 0.5425 GB, free: 22.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.622e-05/0.5922, allocations: 39.03 kB / 0.5425 GB, free: 22.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003576/0.5926, allocations: 164.8 kB / 0.5427 GB, free: 22.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002774/0.5954, allocations: 2.148 MB / 0.5448 GB, free: 20.29 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01417/0.6095, allocations: 9.189 MB / 0.5537 GB, free: 13.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04492/0.6545, allocations: 41.92 MB / 0.5947 GB, free: 10.82 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01084/0.6654, allocations: 4.491 MB / 0.5991 GB, free: 7.078 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003131/0.6686, allocations: 2.494 MB / 0.6015 GB, free: 4.676 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0116/0.6802, allocations: 7.38 MB / 0.6087 GB, free: 13.15 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.799e-05/0.6803, allocations: 47.56 kB / 0.6088 GB, free: 13.1 MB / 426.7 MB Notification: Performance of pre-optimization done (n=177): time 7.183e-06/0.6803, allocations: 4 kB / 0.6088 GB, free: 13.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=198): time 0.05155/0.7318, allocations: 18.76 MB / 0.6271 GB, free: 10.27 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.732, allocations: 179.5 kB / 0.6273 GB, free: 10.06 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007915/0.7399, allocations: 4.595 MB / 0.6317 GB, free: 5.449 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005105/0.7405, allocations: 53.7 kB / 0.6318 GB, free: 5.391 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00244/0.7429, allocations: 3.213 MB / 0.6349 GB, free: 2.195 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001053/0.744, allocations: 0.7598 MB / 0.6357 GB, free: 1.441 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003496/0.7443, allocations: 120 kB / 0.6358 GB, free: 1.324 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003694/0.7447, allocations: 0.5785 MB / 0.6364 GB, free: 0.7383 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003623/0.7483, allocations: 2.37 MB / 0.6387 GB, free: 14.36 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006104/0.7545, allocations: 6.121 MB / 0.6446 GB, free: 6.449 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.011/0.7655, allocations: 9.2 MB / 0.6536 GB, free: 11.95 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.506e-05/0.7656, allocations: 36 kB / 0.6537 GB, free: 11.91 MB / 474.7 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01759/0.7832, allocations: 9.314 MB / 0.6628 GB, free: 3.09 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001694/0.7835, allocations: 60 kB / 0.6628 GB, free: 3.031 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002026/0.7837, allocations: 136.2 kB / 0.6629 GB, free: 2.898 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002901/0.7866, allocations: 1.206 MB / 0.6641 GB, free: 1.688 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004529/0.7912, allocations: 1.45 MB / 0.6655 GB, free: 240 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008693/0.7999, allocations: 6.759 MB / 0.6721 GB, free: 9.328 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004359/0.8043, allocations: 359.5 kB / 0.6725 GB, free: 8.977 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009942/0.8053, allocations: 380 kB / 0.6728 GB, free: 8.605 MB / 490.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.004148/0.8094, allocations: 2.241 MB / 0.675 GB, free: 6.355 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007922/0.8102, allocations: 386.9 kB / 0.6754 GB, free: 5.973 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007472/0.8177, allocations: 4.05 MB / 0.6794 GB, free: 1.906 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.72e-05/0.8178, allocations: 21.48 kB / 0.6794 GB, free: 1.887 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.211e-05/0.8178, allocations: 4 kB / 0.6794 GB, free: 1.883 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.168e-05/0.8178, allocations: 11.97 kB / 0.6794 GB, free: 1.871 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1967/1.014, allocations: 9.609 MB / 0.6888 GB, free: 184.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.365e-05/1.015, allocations: 13.88 kB / 0.6888 GB, free: 184.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001555/1.016, allocations: 314.8 kB / 0.6891 GB, free: 184.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002565/1.019, allocations: 1.024 MB / 0.6901 GB, free: 184.1 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003002/1.019, allocations: 41.17 kB / 0.6901 GB, free: 184.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007135/1.026, allocations: 6.353 MB / 0.6963 GB, free: 181 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.045e-06/1.026, allocations: 8.719 kB / 0.6963 GB, free: 181 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01/1.036, allocations: 7.029 MB / 0.7032 GB, free: 178.3 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00121/1.037, allocations: 481.1 kB / 0.7037 GB, free: 178.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001106/1.039, allocations: 33.58 kB / 0.7037 GB, free: 178.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002133/1.041, allocations: 123.4 kB / 0.7038 GB, free: 178.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003978/1.041, allocations: 130.7 kB / 0.7039 GB, free: 178.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002195/1.041, allocations: 59.84 kB / 0.704 GB, free: 178.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005406/1.047, allocations: 2.929 MB / 0.7069 GB, free: 177.1 MB / 490.7 MB Notification: Performance of sort global known variables: time 5.71e-07/1.047, allocations: 0 / 0.7069 GB, free: 177.1 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006601/1.053, allocations: 1.087 MB / 0.7079 GB, free: 176.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.0007901/1.054, allocations: 171.7 kB / 0.7081 GB, free: 176.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008723/1.063, allocations: 5.767 MB / 0.7137 GB, free: 171.5 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/1.063, allocations: 0 / 0.7137 GB, free: 171.5 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003104/1.066, allocations: 2.05 MB / 0.7157 GB, free: 169.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006872/1.073, allocations: 495 kB / 0.7162 GB, free: 169.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0198/1.093, allocations: 12.47 MB / 0.7284 GB, free: 158 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004817/1.098, allocations: 3.444 MB / 0.7317 GB, free: 155 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00136/1.099, allocations: 307.4 kB / 0.732 GB, free: 154.7 MB / 490.7 MB Notification: Performance of SimCode: time 7.12e-07/1.099, allocations: 0 / 0.732 GB, free: 154.7 MB / 490.7 MB Notification: Performance of Templates: time 0.1016/1.201, allocations: 81.36 MB / 0.8115 GB, free: 73.43 MB / 490.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches