Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001588/0.001588, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001957/0.001957, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 227.4 MB / 247.5 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 60.16 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08933/0.09052, allocations: 50.54 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01155/0.1021, allocations: 11.17 MB / 370.1 MB, free: 2.125 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1662/0.2683, allocations: 4.059 MB / 374.1 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001749/0.2701, allocations: 69.62 kB / 374.2 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006418/0.2766, allocations: 3.169 MB / 377.4 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00553/0.2821, allocations: 1.884 MB / 379.3 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002253/0.2844, allocations: 0.8273 MB / 380.1 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007677/0.2921, allocations: 4.403 MB / 384.5 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006221/0.2984, allocations: 4.009 MB / 388.5 MB, free: 6.387 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003166/0.3016, allocations: 1.616 MB / 390.1 MB, free: 5.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003327/0.3049, allocations: 2.108 MB / 392.2 MB, free: 4.414 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001339/0.3063, allocations: 346.8 kB / 392.6 MB, free: 4.414 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0029/0.3092, allocations: 1.242 MB / 393.8 MB, free: 3.984 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002226/0.3114, allocations: 1.992 MB / 395.8 MB, free: 2.844 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003512/0.315, allocations: 2.276 MB / 398.1 MB, free: 1.117 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008422/0.3234, allocations: 7.361 MB / 405.4 MB, free: 10.55 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.3235, allocations: 4 kB / 405.4 MB, free: 10.55 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3235, allocations: 0 / 405.4 MB, free: 10.55 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002166/0.3237, allocations: 0 / 405.4 MB, free: 10.55 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1541 * Number of variables: 1541 Notification: Performance of Generate backend data structure: time 0.01232/0.336, allocations: 5.052 MB / 410.5 MB, free: 5.527 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.277e-05/0.3361, allocations: 8.031 kB / 410.5 MB, free: 5.52 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008642/0.3447, allocations: 2.122 MB / 412.6 MB, free: 3.391 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007459/0.3522, allocations: 2.783 MB / 415.4 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002172/0.3525, allocations: 235.3 kB / 415.6 MB, free: 392 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001005/0.3535, allocations: 333.4 kB / 415.9 MB, free: 96 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0188/0.3723, allocations: 10.44 MB / 426.4 MB, free: 5.059 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001456/0.3725, allocations: 43.59 kB / 426.4 MB, free: 5.016 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004133/0.3729, allocations: 152.7 kB / 426.6 MB, free: 4.902 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003354/0.3763, allocations: 2.026 MB / 428.6 MB, free: 2.879 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01726/0.3936, allocations: 8.923 MB / 437.5 MB, free: 9.941 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0477/0.4413, allocations: 40.79 MB / 478.3 MB, free: 280 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01114/0.4525, allocations: 4.483 MB / 482.8 MB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003013/0.4556, allocations: 2.496 MB / 485.3 MB, free: 9.137 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01205/0.4676, allocations: 7.353 MB / 492.6 MB, free: 1.621 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.468e-05/0.4677, allocations: 59.5 kB / 492.7 MB, free: 1.555 MB / 398.1 MB Notification: Performance of pre-optimization done (n=177): time 4.278e-06/0.4677, allocations: 0 / 492.7 MB, free: 1.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=198): time 0.04513/0.5129, allocations: 18.65 MB / 0.4994 GB, free: 14.79 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.166e-05/0.513, allocations: 179.5 kB / 0.4995 GB, free: 14.58 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005766/0.5187, allocations: 4.56 MB / 0.504 GB, free: 9.996 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003738/0.5191, allocations: 56.36 kB / 0.504 GB, free: 9.938 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002053/0.5212, allocations: 3.125 MB / 0.5071 GB, free: 6.812 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009544/0.5222, allocations: 0.7543 MB / 0.5078 GB, free: 6.062 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001707/0.5239, allocations: 1.276 MB / 0.5091 GB, free: 4.777 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.524, allocations: 301.1 kB / 0.5094 GB, free: 4.48 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003389/0.5274, allocations: 2.386 MB / 0.5117 GB, free: 2.09 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006174/0.5336, allocations: 6.075 MB / 0.5176 GB, free: 10.18 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.173/0.7066, allocations: 9.14 MB / 0.5266 GB, free: 135.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000116/0.7068, allocations: 41.05 kB / 0.5266 GB, free: 135.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=821) (initialization): time 0.01542/0.7222, allocations: 9.287 MB / 0.5357 GB, free: 133.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.625e-05/0.7223, allocations: 62.53 kB / 0.5357 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001295/0.7224, allocations: 131.6 kB / 0.5359 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002826/0.7253, allocations: 1.191 MB / 0.537 GB, free: 133 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004197/0.7295, allocations: 1.432 MB / 0.5384 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007819/0.7373, allocations: 7.294 MB / 0.5455 GB, free: 129.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004005/0.7413, allocations: 352.2 kB / 0.5459 GB, free: 129.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005373/0.7419, allocations: 373.6 kB / 0.5462 GB, free: 129 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 591 * Number of states: 0 () * Number of discrete variables: 46 (forceAndTorque.torqueArrow.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.forceArrow.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.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 (763): * Single equations (assignments): 757 * 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.002421/0.7443, allocations: 2.18 MB / 0.5484 GB, free: 128.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004937/0.7448, allocations: 392 kB / 0.5487 GB, free: 128.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005594/0.7504, allocations: 4.045 MB / 0.5527 GB, free: 126.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-05/0.7504, allocations: 22.38 kB / 0.5527 GB, free: 126.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.166e-05/0.7505, allocations: 11.66 kB / 0.5527 GB, free: 126.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.561e-05/0.7505, allocations: 11.25 kB / 0.5527 GB, free: 126.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01233/0.7628, allocations: 9.49 MB / 0.562 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.141e-05/0.7629, allocations: 11.84 kB / 0.562 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001275/0.7641, allocations: 318.3 kB / 0.5623 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002192/0.7663, allocations: 1.018 MB / 0.5633 GB, free: 122.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001356/0.7665, allocations: 43.73 kB / 0.5633 GB, free: 122.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006808/0.7733, allocations: 6.821 MB / 0.57 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.66e-06/0.7733, allocations: 12.81 kB / 0.57 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007692/0.781, allocations: 7.035 MB / 0.5769 GB, free: 109.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008492/0.7819, allocations: 464.8 kB / 0.5773 GB, free: 108.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004177/0.7823, allocations: 32 kB / 0.5774 GB, free: 108.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001422/0.7838, allocations: 123.8 kB / 0.5775 GB, free: 108.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002804/0.784, allocations: 125 kB / 0.5776 GB, free: 108.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001304/0.7842, allocations: 56 kB / 0.5777 GB, free: 108.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003039/0.7872, allocations: 2.923 MB / 0.5805 GB, free: 105.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.7872, allocations: 4.766 kB / 0.5805 GB, free: 105.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003928/0.7912, allocations: 1.063 MB / 0.5816 GB, free: 104.5 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.0003507/0.7915, allocations: 176.3 kB / 0.5817 GB, free: 104.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006175/0.7977, allocations: 5.73 MB / 0.5873 GB, free: 98.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.167e-06/0.7977, allocations: 1.203 kB / 0.5873 GB, free: 98.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002522/0.8003, allocations: 2.061 MB / 0.5893 GB, free: 96.52 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002202/0.8025, allocations: 497.3 kB / 0.5898 GB, free: 96.05 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01102/0.8135, allocations: 10.05 MB / 0.5996 GB, free: 85.92 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002526/0.8161, allocations: 3.363 MB / 0.6029 GB, free: 82.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003543/0.8196, allocations: 2.033 MB / 0.6049 GB, free: 80.48 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006738/0.8203, allocations: 266.8 kB / 0.6051 GB, free: 80.22 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/0.8203, allocations: 0 / 0.6051 GB, free: 80.22 MB / 446.1 MB Notification: Performance of Templates: time 0.05608/0.8764, allocations: 36.73 MB / 0.641 GB, free: 43.76 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches