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.001366/0.001367, allocations: 101 kB / 17.59 MB, free: 5.426 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.001451/0.001451, allocations: 191.3 kB / 18.51 MB, free: 4.504 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.391/1.391, allocations: 222.9 MB / 242.2 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009946/0.0009947, allocations: 42.39 kB / 301.3 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1013, allocations: 49.46 MB / 350.7 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01374/0.1151, allocations: 11.4 MB / 362.1 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009642/0.1248, allocations: 4.081 MB / 366.2 MB, free: 4.867 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002276/0.1271, allocations: 71.81 kB / 366.3 MB, free: 4.797 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006252/0.1334, allocations: 3.205 MB / 369.5 MB, free: 1.582 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1787/0.3122, allocations: 1.935 MB / 371.4 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002146/0.3143, allocations: 0.8275 MB / 372.3 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006506/0.3209, allocations: 4.443 MB / 376.7 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005319/0.3262, allocations: 4.062 MB / 380.8 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003273/0.3295, allocations: 1.656 MB / 382.4 MB, free: 8.816 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003203/0.3328, allocations: 2.155 MB / 384.6 MB, free: 8.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001049/0.3338, allocations: 353.4 kB / 384.9 MB, free: 8.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002517/0.3364, allocations: 1.259 MB / 386.2 MB, free: 8.016 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001998/0.3384, allocations: 2.066 MB / 388.2 MB, free: 7.293 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002153/0.3405, allocations: 2.36 MB / 390.6 MB, free: 5.637 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006407/0.3469, allocations: 7.383 MB / 398 MB, free: 1.309 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.347, allocations: 2.594 kB / 398 MB, free: 1.309 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.165e-06/0.347, allocations: 0 / 398 MB, free: 1.309 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002082/0.3472, allocations: 0 / 398 MB, free: 1.309 MB / 302.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.01046/0.3577, allocations: 5.175 MB / 403.2 MB, free: 13.12 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.3577, allocations: 12.03 kB / 403.2 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009253/0.367, allocations: 2.181 MB / 405.4 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006212/0.3733, allocations: 2.793 MB / 408.1 MB, free: 8.258 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001993/0.3735, allocations: 244.4 kB / 408.4 MB, free: 8.055 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001143/0.3746, allocations: 334.6 kB / 408.7 MB, free: 7.766 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02115/0.3958, allocations: 10.83 MB / 419.5 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001719/0.396, allocations: 35.5 kB / 419.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001085/0.3971, allocations: 158.2 kB / 419.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003968/0.4011, allocations: 2.152 MB / 421.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01926/0.4204, allocations: 9.229 MB / 431.1 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0546/0.475, allocations: 41.88 MB / 473 MB, free: 6.215 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01239/0.4875, allocations: 4.493 MB / 477.5 MB, free: 1.574 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003382/0.4909, allocations: 2.5 MB / 480 MB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01254/0.5035, allocations: 7.372 MB / 487.4 MB, free: 7.539 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.753e-05/0.5036, allocations: 47.56 kB / 487.4 MB, free: 7.484 MB / 398.1 MB Notification: Performance of pre-optimization done (n=177): time 5.561e-06/0.5036, allocations: 7.938 kB / 487.4 MB, free: 7.477 MB / 398.1 MB Notification: Performance of matching and sorting (n=198): time 0.05379/0.5574, allocations: 18.77 MB / 0.4943 GB, free: 4.598 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.5575, allocations: 179.5 kB / 0.4945 GB, free: 4.387 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008139/0.5657, allocations: 4.614 MB / 0.499 GB, free: 15.75 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004638/0.5662, allocations: 53.7 kB / 0.499 GB, free: 15.7 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002491/0.5687, allocations: 3.215 MB / 0.5022 GB, free: 12.48 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001192/0.5699, allocations: 0.7594 MB / 0.5029 GB, free: 11.73 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002805/0.5727, allocations: 1.299 MB / 0.5042 GB, free: 10.42 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.995e-05/0.5728, allocations: 301.1 kB / 0.5045 GB, free: 10.12 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004006/0.5768, allocations: 2.398 MB / 0.5068 GB, free: 7.719 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006558/0.5834, allocations: 6.14 MB / 0.5128 GB, free: 15.73 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01105/0.5945, allocations: 9.237 MB / 0.5218 GB, free: 4.672 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001236/0.5947, allocations: 36 kB / 0.5219 GB, free: 4.637 MB / 446.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.2077/0.8024, allocations: 9.36 MB / 0.531 GB, free: 140.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001984/0.8026, allocations: 65.94 kB / 0.5311 GB, free: 140.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003136/0.8029, allocations: 131.7 kB / 0.5312 GB, free: 140.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003509/0.8064, allocations: 1.2 MB / 0.5324 GB, free: 140.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005247/0.8117, allocations: 1.447 MB / 0.5338 GB, free: 140.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01031/0.8221, allocations: 7.297 MB / 0.5409 GB, free: 137.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005134/0.8272, allocations: 354.7 kB / 0.5412 GB, free: 137.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001381/0.8286, allocations: 384.2 kB / 0.5416 GB, free: 137.6 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.004834/0.8335, allocations: 2.24 MB / 0.5438 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001073/0.8346, allocations: 392.2 kB / 0.5442 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007839/0.8424, allocations: 4.059 MB / 0.5481 GB, free: 135.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-05/0.8425, allocations: 21.47 kB / 0.5482 GB, free: 135.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.37e-05/0.8425, allocations: 15.09 kB / 0.5482 GB, free: 135.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.864e-05/0.8426, allocations: 15.5 kB / 0.5482 GB, free: 135.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01829/0.8609, allocations: 9.609 MB / 0.5576 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.476e-05/0.861, allocations: 11.94 kB / 0.5576 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00153/0.8625, allocations: 322.3 kB / 0.5579 GB, free: 131.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002498/0.865, allocations: 1.019 MB / 0.5589 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003054/0.8653, allocations: 39.12 kB / 0.5589 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007543/0.8729, allocations: 6.82 MB / 0.5656 GB, free: 127.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.8729, allocations: 11.92 kB / 0.5656 GB, free: 127.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008865/0.8818, allocations: 7.049 MB / 0.5725 GB, free: 120.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001167/0.883, allocations: 463.8 kB / 0.5729 GB, free: 119.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001076/0.8841, allocations: 43.73 kB / 0.573 GB, free: 119.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002183/0.8863, allocations: 123.8 kB / 0.5731 GB, free: 119.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004257/0.8867, allocations: 121 kB / 0.5732 GB, free: 119.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001932/0.887, allocations: 59.81 kB / 0.5733 GB, free: 119.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004574/0.8915, allocations: 2.952 MB / 0.5761 GB, free: 116.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.8916, allocations: 0 / 0.5761 GB, free: 116.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005444/0.897, allocations: 1.093 MB / 0.5772 GB, free: 115.3 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.0004618/0.8975, allocations: 187.8 kB / 0.5774 GB, free: 115.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009258/0.9068, allocations: 6.849 MB / 0.5841 GB, free: 108.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/0.9068, allocations: 3.938 kB / 0.5841 GB, free: 108.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002814/0.9096, allocations: 2.06 MB / 0.5861 GB, free: 106.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002925/0.9126, allocations: 0.5132 MB / 0.5866 GB, free: 105.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01495/0.9276, allocations: 10.85 MB / 0.5972 GB, free: 94.83 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003/0.9306, allocations: 3.441 MB / 0.6005 GB, free: 91.36 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001254/0.9319, allocations: 319.4 kB / 0.6009 GB, free: 91.04 MB / 446.1 MB Notification: Performance of SimCode: time 7.62e-07/0.9319, allocations: 0 / 0.6009 GB, free: 91.04 MB / 446.1 MB Notification: Performance of Templates: time 0.08814/1.02, allocations: 82.11 MB / 0.681 GB, free: 9.023 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/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