Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001701/0.0017, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001837/0.001837, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.447/1.447, allocations: 227.7 MB / 247.7 MB, free: 10.34 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001967/0.001967, allocations: 68.84 kB / 307.9 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09312/0.0951, allocations: 50.54 MB / 358.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01375/0.1089, allocations: 11.17 MB / 369.6 MB, free: 2.742 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1678/0.2767, allocations: 4.062 MB / 373.7 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001941/0.2787, allocations: 67.19 kB / 373.7 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006051/0.2848, allocations: 3.176 MB / 376.9 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005534/0.2904, allocations: 1.877 MB / 378.8 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002293/0.2927, allocations: 0.8228 MB / 379.6 MB, free: 8.805 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007188/0.2999, allocations: 4.396 MB / 384 MB, free: 7.695 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00482/0.3048, allocations: 4.019 MB / 388 MB, free: 6.105 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002827/0.3076, allocations: 1.618 MB / 389.6 MB, free: 5.363 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003019/0.3107, allocations: 2.111 MB / 391.8 MB, free: 4.207 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001073/0.3118, allocations: 345.9 kB / 392.1 MB, free: 4.207 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002995/0.3148, allocations: 1.232 MB / 393.3 MB, free: 3.785 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001949/0.3167, allocations: 1.999 MB / 395.3 MB, free: 2.637 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002228/0.319, allocations: 2.278 MB / 397.6 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008989/0.328, allocations: 7.133 MB / 404.7 MB, free: 10.76 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.546e-06/0.328, allocations: 0 / 404.7 MB, free: 10.76 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.3281, allocations: 0 / 404.7 MB, free: 10.76 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002814/0.3283, allocations: 0 / 404.7 MB, free: 10.76 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.01272/0.3411, allocations: 5.054 MB / 409.8 MB, free: 5.738 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.3411, allocations: 8.031 kB / 409.8 MB, free: 5.73 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009351/0.3505, allocations: 2.128 MB / 411.9 MB, free: 3.594 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006355/0.3569, allocations: 2.725 MB / 414.6 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002234/0.3572, allocations: 243 kB / 414.9 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009956/0.3582, allocations: 320.7 kB / 415.2 MB, free: 368 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02/0.3782, allocations: 10.44 MB / 425.6 MB, free: 5.324 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001394/0.3784, allocations: 47.58 kB / 425.7 MB, free: 5.277 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005727/0.3789, allocations: 153.6 kB / 425.8 MB, free: 5.164 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003776/0.3827, allocations: 2.033 MB / 427.9 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01951/0.4023, allocations: 8.907 MB / 436.8 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0586/0.4609, allocations: 40.97 MB / 477.8 MB, free: 368 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0124/0.4734, allocations: 4.48 MB / 482.2 MB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003633/0.477, allocations: 2.509 MB / 484.7 MB, free: 9.215 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01298/0.4901, allocations: 7.358 MB / 492.1 MB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.342e-05/0.4902, allocations: 59.44 kB / 492.2 MB, free: 1.629 MB / 398.1 MB Notification: Performance of pre-optimization done (n=177): time 4.849e-06/0.4902, allocations: 0 / 492.2 MB, free: 1.629 MB / 398.1 MB Notification: Performance of matching and sorting (n=198): time 0.05065/0.5408, allocations: 18.64 MB / 0.4988 GB, free: 14.88 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001252/0.541, allocations: 171.5 kB / 0.499 GB, free: 14.67 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007328/0.5483, allocations: 4.568 MB / 0.5035 GB, free: 10.08 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004754/0.5488, allocations: 57.7 kB / 0.5035 GB, free: 10.02 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002975/0.5518, allocations: 3.117 MB / 0.5065 GB, free: 6.898 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001215/0.5531, allocations: 0.7609 MB / 0.5073 GB, free: 6.145 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002166/0.5552, allocations: 1.273 MB / 0.5085 GB, free: 4.859 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.5554, allocations: 301.1 kB / 0.5088 GB, free: 4.562 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004025/0.5594, allocations: 2.39 MB / 0.5112 GB, free: 2.168 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007553/0.567, allocations: 6.079 MB / 0.5171 GB, free: 10.26 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1838/0.7508, allocations: 9.138 MB / 0.526 GB, free: 135.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001419/0.751, allocations: 37.44 kB / 0.5261 GB, free: 135.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=821) (initialization): time 0.01844/0.7694, allocations: 9.29 MB / 0.5351 GB, free: 133.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001034/0.7696, allocations: 61.28 kB / 0.5352 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002037/0.7698, allocations: 130.2 kB / 0.5353 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00336/0.7731, allocations: 1.189 MB / 0.5365 GB, free: 133 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004947/0.7781, allocations: 1.432 MB / 0.5379 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008678/0.7868, allocations: 7.301 MB / 0.545 GB, free: 129.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004878/0.7917, allocations: 348.9 kB / 0.5453 GB, free: 129 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009902/0.7928, allocations: 381.6 kB / 0.5457 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.003749/0.7965, allocations: 2.176 MB / 0.5478 GB, free: 128 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007872/0.7973, allocations: 392.3 kB / 0.5482 GB, free: 128 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006378/0.8037, allocations: 4.051 MB / 0.5521 GB, free: 126.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.561e-05/0.8038, allocations: 19.53 kB / 0.5522 GB, free: 126.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/0.8038, allocations: 11.78 kB / 0.5522 GB, free: 126.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.752e-05/0.8038, allocations: 7.453 kB / 0.5522 GB, free: 126.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01446/0.8183, allocations: 9.504 MB / 0.5615 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-05/0.8184, allocations: 18.02 kB / 0.5615 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001447/0.8198, allocations: 324.4 kB / 0.5618 GB, free: 123 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002309/0.8222, allocations: 1.02 MB / 0.5628 GB, free: 122.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002163/0.8224, allocations: 39.25 kB / 0.5628 GB, free: 122.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007115/0.8295, allocations: 6.828 MB / 0.5695 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.742e-06/0.8296, allocations: 11.94 kB / 0.5695 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008313/0.8379, allocations: 7.044 MB / 0.5764 GB, free: 109.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009332/0.8388, allocations: 459.9 kB / 0.5768 GB, free: 108.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005145/0.8394, allocations: 36 kB / 0.5769 GB, free: 108.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001523/0.8409, allocations: 119.8 kB / 0.577 GB, free: 108.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002976/0.8412, allocations: 129 kB / 0.5771 GB, free: 108.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/0.8413, allocations: 55.91 kB / 0.5771 GB, free: 108.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003449/0.8448, allocations: 2.931 MB / 0.58 GB, free: 105.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.8448, allocations: 0 / 0.58 GB, free: 105.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004871/0.8497, allocations: 1.051 MB / 0.581 GB, free: 104.4 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.0004123/0.8501, allocations: 180.4 kB / 0.5812 GB, free: 104.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008279/0.8584, allocations: 6.829 MB / 0.5879 GB, free: 97.47 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.8584, allocations: 2.438 kB / 0.5879 GB, free: 97.47 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002621/0.8611, allocations: 2.051 MB / 0.5899 GB, free: 95.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00262/0.8637, allocations: 491 kB / 0.5904 GB, free: 94.93 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01407/0.8778, allocations: 10.62 MB / 0.6007 GB, free: 84.21 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002771/0.8806, allocations: 3.351 MB / 0.604 GB, free: 80.82 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001121/0.8818, allocations: 307.4 kB / 0.6043 GB, free: 80.53 MB / 446.1 MB Notification: Performance of SimCode: time 8.72e-07/0.8818, allocations: 0 / 0.6043 GB, free: 80.53 MB / 446.1 MB Notification: Performance of Templates: time 0.08461/0.9664, allocations: 80.13 MB / 0.6825 GB, free: 492 kB / 446.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches