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.001121/0.001121, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001179/0.001179, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 59.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.2632, allocations: 50.55 MB / 409.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01204/0.2753, allocations: 11.16 MB / 420.4 MB, free: 6.379 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007919/0.2832, allocations: 4.049 MB / 424.5 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001574/0.2848, allocations: 71.81 kB / 424.5 MB, free: 2.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005728/0.2906, allocations: 3.17 MB / 427.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004661/0.2953, allocations: 1.934 MB / 429.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00194/0.2973, allocations: 0.8227 MB / 430.5 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006662/0.3039, allocations: 4.41 MB / 434.9 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005515/0.3095, allocations: 4.003 MB / 438.9 MB, free: 3.816 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002609/0.3121, allocations: 1.612 MB / 440.5 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003264/0.3154, allocations: 2.107 MB / 442.6 MB, free: 88 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001075/0.3165, allocations: 348 kB / 442.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002634/0.3191, allocations: 1.244 MB / 444.2 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002294/0.3214, allocations: 2.011 MB / 446.2 MB, free: 12.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003852/0.3253, allocations: 2.272 MB / 448.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008336/0.3337, allocations: 7.366 MB / 455.8 MB, free: 2.809 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3337, allocations: 0 / 455.8 MB, free: 2.809 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3337, allocations: 4 kB / 455.8 MB, free: 2.805 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001328/0.3338, allocations: 0 / 455.8 MB, free: 2.805 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: 1541 * Number of variables: 1541 Notification: Performance of Generate backend data structure: time 0.009219/0.3431, allocations: 5.053 MB / 460.9 MB, free: 13.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.3431, allocations: 12.03 kB / 460.9 MB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00746/0.3506, allocations: 2.12 MB / 463 MB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00491/0.3555, allocations: 2.779 MB / 465.8 MB, free: 8.699 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001751/0.3557, allocations: 242.2 kB / 466 MB, free: 8.461 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006578/0.3564, allocations: 315.9 kB / 466.4 MB, free: 8.152 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01592/0.3723, allocations: 10.45 MB / 476.8 MB, free: 13 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.785e-05/0.3724, allocations: 35.69 kB / 476.8 MB, free: 12.96 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003773/0.3728, allocations: 151.9 kB / 477 MB, free: 12.82 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002949/0.3758, allocations: 2.029 MB / 479 MB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01561/0.3914, allocations: 8.909 MB / 487.9 MB, free: 1.855 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04577/0.4372, allocations: 40.81 MB / 0.5163 GB, free: 7.953 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0106/0.4478, allocations: 4.495 MB / 0.5207 GB, free: 3.312 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002801/0.4507, allocations: 2.489 MB / 0.5232 GB, free: 0.8125 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01003/0.4607, allocations: 7.349 MB / 0.5303 GB, free: 9.254 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.407e-05/0.4608, allocations: 55.44 kB / 0.5304 GB, free: 9.191 MB / 462.1 MB Notification: Performance of pre-optimization done (n=177): time 3.767e-06/0.4608, allocations: 0 / 0.5304 GB, free: 9.191 MB / 462.1 MB Notification: Performance of matching and sorting (n=198): time 0.2657/0.7265, allocations: 18.64 MB / 0.5486 GB, free: 121.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.803e-05/0.7266, allocations: 178.1 kB / 0.5488 GB, free: 121 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004517/0.7311, allocations: 4.569 MB / 0.5532 GB, free: 119.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002692/0.7314, allocations: 57.27 kB / 0.5533 GB, free: 119.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001203/0.7326, allocations: 3.123 MB / 0.5563 GB, free: 117 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005204/0.7332, allocations: 0.7551 MB / 0.5571 GB, free: 116.4 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00124/0.7344, allocations: 1.28 MB / 0.5583 GB, free: 115.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.768e-05/0.7345, allocations: 305.1 kB / 0.5586 GB, free: 115.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002607/0.7371, allocations: 2.38 MB / 0.5609 GB, free: 114.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003607/0.7407, allocations: 6.078 MB / 0.5669 GB, free: 107.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006689/0.7474, allocations: 9.135 MB / 0.5758 GB, free: 97.06 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-05/0.7475, allocations: 36 kB / 0.5758 GB, free: 97.03 MB / 462.1 MB Notification: Performance of matching and sorting (n=821) (initialization): time 0.01187/0.7593, allocations: 9.285 MB / 0.5849 GB, free: 87.73 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.061e-05/0.7594, allocations: 64.94 kB / 0.585 GB, free: 87.67 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.509e-05/0.7595, allocations: 131.9 kB / 0.5851 GB, free: 87.54 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00276/0.7623, allocations: 1.199 MB / 0.5863 GB, free: 86.34 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003918/0.7662, allocations: 1.439 MB / 0.5877 GB, free: 84.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00704/0.7733, allocations: 7.283 MB / 0.5948 GB, free: 77.48 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004405/0.7777, allocations: 351.3 kB / 0.5951 GB, free: 77.14 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006087/0.7783, allocations: 376 kB / 0.5955 GB, free: 76.77 MB / 462.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.002871/0.7812, allocations: 2.171 MB / 0.5976 GB, free: 74.59 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006188/0.7818, allocations: 390.9 kB / 0.598 GB, free: 74.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005779/0.7876, allocations: 4.046 MB / 0.6019 GB, free: 70.14 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.971e-05/0.7877, allocations: 24 kB / 0.6019 GB, free: 70.11 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.048e-05/0.7877, allocations: 4 kB / 0.6019 GB, free: 70.11 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.846e-05/0.7877, allocations: 15.89 kB / 0.6019 GB, free: 70.09 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.013/0.8007, allocations: 9.425 MB / 0.6112 GB, free: 60.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-05/0.8008, allocations: 8.125 kB / 0.6112 GB, free: 60.59 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001331/0.8021, allocations: 319.5 kB / 0.6115 GB, free: 60.27 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002275/0.8044, allocations: 1.03 MB / 0.6125 GB, free: 59.24 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001546/0.8046, allocations: 39.75 kB / 0.6125 GB, free: 59.21 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006811/0.8114, allocations: 6.867 MB / 0.6192 GB, free: 52.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/0.8114, allocations: 8 kB / 0.6192 GB, free: 52.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007991/0.8194, allocations: 7.051 MB / 0.6261 GB, free: 45.05 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008965/0.8203, allocations: 463.9 kB / 0.6266 GB, free: 44.57 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003854/0.8207, allocations: 36 kB / 0.6266 GB, free: 44.54 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001386/0.8221, allocations: 121.2 kB / 0.6267 GB, free: 44.42 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002892/0.8224, allocations: 129 kB / 0.6268 GB, free: 44.29 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001324/0.8226, allocations: 59.98 kB / 0.6269 GB, free: 44.23 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003284/0.8258, allocations: 2.92 MB / 0.6297 GB, free: 41.31 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.8259, allocations: 0 / 0.6297 GB, free: 41.31 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004611/0.8305, allocations: 1.059 MB / 0.6308 GB, free: 40.25 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.000478/0.831, allocations: 181.3 kB / 0.6309 GB, free: 40.08 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008054/0.839, allocations: 5.736 MB / 0.6365 GB, free: 34.36 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.742e-05/0.8391, allocations: 0 / 0.6365 GB, free: 34.36 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002735/0.8418, allocations: 2.071 MB / 0.6386 GB, free: 32.28 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002972/0.8448, allocations: 496.1 kB / 0.639 GB, free: 31.81 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01662/0.8615, allocations: 10.04 MB / 0.6488 GB, free: 21.67 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002873/0.8644, allocations: 3.363 MB / 0.6521 GB, free: 18.27 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004148/0.8686, allocations: 2.026 MB / 0.6541 GB, free: 16.24 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007486/0.8693, allocations: 267.4 kB / 0.6544 GB, free: 15.98 MB / 462.1 MB Notification: Performance of SimCode: time 1.152e-06/0.8693, allocations: 0 / 0.6544 GB, free: 15.98 MB / 462.1 MB Notification: Performance of Templates: time 0.06887/0.9382, allocations: 38.9 MB / 0.6923 GB, free: 9.297 MB / 494.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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins/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