Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.00137/0.00137, allocations: 109.4 kB / 17.73 MB, free: 5.348 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.001452/0.001452, allocations: 188.2 kB / 18.66 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.394/1.394, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001129/0.001129, allocations: 52.34 kB / 328.5 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09304/0.09417, allocations: 46.62 MB / 375.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.1724/0.2666, allocations: 12.49 MB / 387.6 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007331/0.274, allocations: 4.186 MB / 391.8 MB, free: 3.707 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001573/0.2757, allocations: 74.72 kB / 391.9 MB, free: 3.695 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005469/0.2811, allocations: 3.229 MB / 395.1 MB, free: 2.191 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005264/0.2864, allocations: 2.077 MB / 397.2 MB, free: 1.227 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001799/0.2883, allocations: 0.8252 MB / 398 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006882/0.2951, allocations: 4.553 MB / 402.6 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005093/0.3003, allocations: 4.183 MB / 406.8 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002628/0.3029, allocations: 1.758 MB / 408.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002857/0.3058, allocations: 2.354 MB / 410.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006633/0.3065, allocations: 389.1 kB / 411.3 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002358/0.3088, allocations: 1.273 MB / 412.5 MB, free: 9.707 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002204/0.3111, allocations: 2.233 MB / 414.8 MB, free: 7.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003454/0.3145, allocations: 2.548 MB / 417.3 MB, free: 5.277 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009228/0.3238, allocations: 8.245 MB / 425.6 MB, free: 13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.3238, allocations: 4 kB / 425.6 MB, free: 13 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.3238, allocations: 0 / 425.6 MB, free: 13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002235/0.3241, allocations: 0 / 425.6 MB, free: 13 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: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.0121/0.3362, allocations: 5.521 MB / 431.1 MB, free: 7.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.3362, allocations: 8.031 kB / 431.1 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009584/0.3458, allocations: 2.236 MB / 433.3 MB, free: 5.156 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006793/0.3527, allocations: 2.999 MB / 436.3 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000217/0.3529, allocations: 270.7 kB / 436.6 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001347/0.3543, allocations: 351.7 kB / 436.9 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02078/0.3751, allocations: 11.64 MB / 448.6 MB, free: 5.133 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001119/0.3752, allocations: 43.59 kB / 448.6 MB, free: 5.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004832/0.3757, allocations: 171.8 kB / 448.8 MB, free: 4.922 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004001/0.3797, allocations: 2.346 MB / 451.1 MB, free: 2.574 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02111/0.4009, allocations: 9.964 MB / 461.1 MB, free: 8.594 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05965/0.4606, allocations: 44.28 MB / 0.4935 GB, free: 11.16 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01285/0.4735, allocations: 5.334 MB / 0.4987 GB, free: 5.676 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003611/0.4771, allocations: 2.814 MB / 0.5015 GB, free: 2.852 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01301/0.4901, allocations: 8.124 MB / 0.5094 GB, free: 10.52 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.754e-05/0.4902, allocations: 67.8 kB / 0.5095 GB, free: 10.44 MB / 446.1 MB Notification: Performance of pre-optimization done (n=216): time 5.531e-06/0.4902, allocations: 3.938 kB / 0.5095 GB, free: 10.44 MB / 446.1 MB Notification: Performance of matching and sorting (n=237): time 0.05306/0.5433, allocations: 20.78 MB / 0.5298 GB, free: 5.508 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001483/0.5435, allocations: 180.2 kB / 0.53 GB, free: 5.293 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007479/0.551, allocations: 4.766 MB / 0.5346 GB, free: 0.5156 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005292/0.5516, allocations: 61.7 kB / 0.5347 GB, free: 460 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002672/0.5542, allocations: 3.393 MB / 0.538 GB, free: 13.01 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001223/0.5555, allocations: 0.8946 MB / 0.5389 GB, free: 12.1 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002819/0.5583, allocations: 1.377 MB / 0.5402 GB, free: 10.71 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.5585, allocations: 309 kB / 0.5405 GB, free: 10.41 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00421/0.5627, allocations: 2.699 MB / 0.5431 GB, free: 7.707 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2062/0.7689, allocations: 6.613 MB / 0.5496 GB, free: 142.8 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01252/0.7814, allocations: 10.08 MB / 0.5594 GB, free: 136.1 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001602/0.7817, allocations: 38.34 kB / 0.5595 GB, free: 136.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=893) (initialization): time 0.02382/0.8055, allocations: 10.18 MB / 0.5694 GB, free: 132.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001302/0.8057, allocations: 64.58 kB / 0.5695 GB, free: 132.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002232/0.8059, allocations: 136.3 kB / 0.5696 GB, free: 132.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003883/0.8098, allocations: 1.2 MB / 0.5708 GB, free: 132.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006375/0.8162, allocations: 1.609 MB / 0.5723 GB, free: 132.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008505/0.8247, allocations: 7.263 MB / 0.5794 GB, free: 128.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006127/0.8309, allocations: 386.1 kB / 0.5798 GB, free: 128.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001488/0.8324, allocations: 413.9 kB / 0.5802 GB, free: 128.4 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 42 (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.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 (835): * Single equations (assignments): 829 * 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.005186/0.8376, allocations: 2.373 MB / 0.5825 GB, free: 127.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001024/0.8387, allocations: 410.2 kB / 0.5829 GB, free: 127.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01099/0.8497, allocations: 4.776 MB / 0.5876 GB, free: 125.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.095e-05/0.8498, allocations: 31.56 kB / 0.5876 GB, free: 125.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.778e-05/0.8498, allocations: 3.688 kB / 0.5876 GB, free: 125.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.975e-05/0.8498, allocations: 15.39 kB / 0.5876 GB, free: 125.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01773/0.8676, allocations: 10.79 MB / 0.5982 GB, free: 118.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.778e-05/0.8676, allocations: 4 kB / 0.5982 GB, free: 118.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001952/0.8696, allocations: 428 kB / 0.5986 GB, free: 118.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002412/0.872, allocations: 1.015 MB / 0.5996 GB, free: 117.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002771/0.8723, allocations: 55.98 kB / 0.5996 GB, free: 117.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007473/0.8798, allocations: 6.876 MB / 0.6063 GB, free: 110.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/0.8799, allocations: 15.97 kB / 0.6063 GB, free: 110.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01018/0.89, allocations: 8.16 MB / 0.6143 GB, free: 102 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00234/0.8924, allocations: 0.8425 MB / 0.6151 GB, free: 101.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009528/0.8934, allocations: 44 kB / 0.6152 GB, free: 101.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002383/0.8958, allocations: 147.8 kB / 0.6153 GB, free: 101 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004043/0.8962, allocations: 149.6 kB / 0.6155 GB, free: 100.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001617/0.8964, allocations: 67.98 kB / 0.6155 GB, free: 100.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003976/0.9004, allocations: 3.046 MB / 0.6185 GB, free: 97.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.9004, allocations: 0 / 0.6185 GB, free: 97.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005687/0.9061, allocations: 1.186 MB / 0.6197 GB, free: 96.52 MB / 478.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 (198): * Single equations (assignments): 194 * 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.0006324/0.9068, allocations: 195.5 kB / 0.6198 GB, free: 96.33 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008985/0.9158, allocations: 6.533 MB / 0.6262 GB, free: 89.82 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/0.9158, allocations: 8.062 kB / 0.6262 GB, free: 89.81 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003438/0.9193, allocations: 2.414 MB / 0.6286 GB, free: 87.39 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003059/0.9223, allocations: 0.5079 MB / 0.6291 GB, free: 86.91 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01597/0.9383, allocations: 11.23 MB / 0.64 GB, free: 75.61 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002898/0.9413, allocations: 3.67 MB / 0.6436 GB, free: 71.91 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004233/0.9455, allocations: 2.219 MB / 0.6458 GB, free: 69.69 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008691/0.9464, allocations: 291.3 kB / 0.6461 GB, free: 69.4 MB / 478.1 MB Notification: Performance of SimCode: time 9.32e-07/0.9464, allocations: 4 kB / 0.6461 GB, free: 69.4 MB / 478.1 MB Notification: Performance of Templates: time 0.06386/1.01, allocations: 42.55 MB / 0.6876 GB, free: 26.96 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches