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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001428/0.001428, allocations: 85.91 kB / 22.22 MB, free: 2.281 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001521/0.001521, allocations: 163.2 kB / 25.61 MB, free: 8.871 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9445/0.9445, allocations: 177 MB / 205.9 MB, free: 4.441 MB / 186.7 MB " [Timeout remaining time 179] 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=5002,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=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 274.1 MB, free: 4.258 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.014e-05/2.175e-05, allocations: 3.516 kB / 274.1 MB, free: 4.254 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.01227/0.01229, allocations: 10.6 MB / 284.7 MB, free: 9.621 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007903/0.0202, allocations: 3.952 MB / 288.7 MB, free: 5.668 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001049/0.02125, allocations: 79.62 kB / 288.8 MB, free: 5.59 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004882/0.02613, allocations: 3.357 MB / 292.1 MB, free: 2.223 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003576/0.0297, allocations: 2.006 MB / 294.1 MB, free: 212 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001103/0.03081, allocations: 0.9004 MB / 295 MB, free: 15.3 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003331/0.03414, allocations: 4.818 MB / 299.8 MB, free: 10.48 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002223/0.03636, allocations: 3.404 MB / 303.2 MB, free: 7.008 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002082/0.03844, allocations: 2.963 MB / 306.2 MB, free: 4.039 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001705/0.04015, allocations: 2.244 MB / 308.4 MB, free: 1.789 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003169/0.04047, allocations: 348 kB / 308.8 MB, free: 1.449 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001054/0.04152, allocations: 1.186 MB / 310 MB, free: 268 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001122/0.04264, allocations: 2.131 MB / 312.1 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009261/0.04357, allocations: 1.312 MB / 313.4 MB, free: 12.81 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003288/0.04686, allocations: 4.854 MB / 318.3 MB, free: 7.938 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.04686, allocations: 0 / 318.3 MB, free: 7.938 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.133e-06/0.04686, allocations: 0 / 318.3 MB, free: 7.938 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.017e-05/0.04691, allocations: 0 / 318.3 MB, free: 7.938 MB / 298.7 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.005285/0.0522, allocations: 5.333 MB / 323.6 MB, free: 2.535 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.277e-05/0.05223, allocations: 12.03 kB / 323.6 MB, free: 2.523 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003847/0.05608, allocations: 1.668 MB / 325.3 MB, free: 0.8516 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002213/0.05829, allocations: 2.157 MB / 327.4 MB, free: 14.64 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001181/0.05841, allocations: 241.8 kB / 327.7 MB, free: 14.4 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003414/0.05875, allocations: 323.8 kB / 328 MB, free: 14.09 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005523/0.06427, allocations: 5.648 MB / 333.6 MB, free: 7.5 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.132e-05/0.06434, allocations: 43.62 kB / 333.7 MB, free: 7.457 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000253/0.0646, allocations: 155.9 kB / 333.8 MB, free: 7.305 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001427/0.06602, allocations: 1.76 MB / 335.6 MB, free: 5.543 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004048/0.07007, allocations: 2.551 MB / 338.1 MB, free: 2.957 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1487/0.2187, allocations: 43.35 MB / 381.5 MB, free: 43.34 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004456/0.2232, allocations: 1.975 MB / 383.5 MB, free: 43.19 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004925/0.2237, allocations: 0.5095 MB / 384 MB, free: 43.14 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003881/0.2276, allocations: 3.86 MB / 387.8 MB, free: 42.11 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.27e-05/0.2276, allocations: 51.38 kB / 387.9 MB, free: 42.07 MB / 330.7 MB Notification: Performance of pre-optimization done (n=145): time 2.495e-06/0.2276, allocations: 5.188 kB / 387.9 MB, free: 42.07 MB / 330.7 MB Notification: Performance of matching and sorting (n=150): time 0.01369/0.2413, allocations: 6.456 MB / 394.3 MB, free: 41.38 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.411e-05/0.2413, allocations: 171.8 kB / 394.5 MB, free: 41.19 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002357/0.2437, allocations: 3.698 MB / 398.2 MB, free: 39.87 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.883e-05/0.2437, allocations: 45.45 kB / 398.3 MB, free: 39.82 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001132/0.2449, allocations: 3.559 MB / 401.8 MB, free: 36.6 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003064/0.2452, allocations: 0.6554 MB / 402.5 MB, free: 35.94 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000868/0.246, allocations: 1.374 MB / 403.8 MB, free: 34.55 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.41e-05/0.2461, allocations: 484 kB / 404.3 MB, free: 34.08 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007461/0.2468, allocations: 0.5619 MB / 404.9 MB, free: 33.52 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001884/0.2487, allocations: 6.349 MB / 411.2 MB, free: 24.57 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003338/0.252, allocations: 7.554 MB / 418.8 MB, free: 14.84 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.568e-05/0.2521, allocations: 43.94 kB / 418.8 MB, free: 14.8 MB / 330.7 MB Notification: Performance of matching and sorting (n=805) (initialization): time 0.00471/0.2568, allocations: 5.002 MB / 423.8 MB, free: 9.793 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.218e-05/0.2568, allocations: 64 kB / 423.9 MB, free: 9.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.657e-05/0.2569, allocations: 136 kB / 424 MB, free: 9.598 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007269/0.2576, allocations: 373.7 kB / 424.4 MB, free: 9.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001857/0.2595, allocations: 1.368 MB / 425.8 MB, free: 7.859 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001591/0.2611, allocations: 2.763 MB / 428.5 MB, free: 4.988 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001704/0.2628, allocations: 268.6 kB / 428.8 MB, free: 4.727 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002167/0.263, allocations: 332 kB / 429.1 MB, free: 4.402 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * 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 (762): * Single equations (assignments): 756 * 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,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009178/0.2639, allocations: 0.6672 MB / 429.8 MB, free: 3.727 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004334/0.2644, allocations: 377.7 kB / 430.1 MB, free: 3.355 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001775/0.2661, allocations: 0.9975 MB / 431.1 MB, free: 2.344 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-05/0.2662, allocations: 20 kB / 431.2 MB, free: 2.324 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.2662, allocations: 2.875 kB / 431.2 MB, free: 2.324 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.262e-05/0.2662, allocations: 7.984 kB / 431.2 MB, free: 2.316 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008008/0.2742, allocations: 4.718 MB / 435.9 MB, free: 13.44 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.125e-05/0.2742, allocations: 7.938 kB / 435.9 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007588/0.275, allocations: 203.7 kB / 436.1 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008734/0.2758, allocations: 191.5 kB / 436.3 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.211e-05/0.2759, allocations: 31.94 kB / 436.3 MB, free: 13.01 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002561/0.2785, allocations: 2.494 MB / 438.8 MB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.718e-06/0.2785, allocations: 11.94 kB / 438.8 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003257/0.2818, allocations: 2.166 MB / 441 MB, free: 8.09 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005857/0.2823, allocations: 321.5 kB / 441.3 MB, free: 7.773 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003325/0.2827, allocations: 32 kB / 441.3 MB, free: 7.742 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009474/0.2836, allocations: 30.94 kB / 441.4 MB, free: 7.715 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002081/0.2838, allocations: 108.2 kB / 441.5 MB, free: 7.609 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.2839, allocations: 47.98 kB / 441.5 MB, free: 7.562 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002275/0.2862, allocations: 1.461 MB / 443 MB, free: 6.117 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.2862, allocations: 0 / 443 MB, free: 6.117 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005246/0.2915, allocations: 1.008 MB / 444 MB, free: 5.109 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * 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 (120): * Single equations (assignments): 116 * 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 {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003652/0.2918, allocations: 186.7 kB / 444.2 MB, free: 4.922 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003141/0.295, allocations: 2.743 MB / 446.9 MB, free: 2.18 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.295, allocations: 0 / 446.9 MB, free: 2.18 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006328/0.2956, allocations: 0.6297 MB / 447.5 MB, free: 1.531 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001312/0.2969, allocations: 411.3 kB / 447.9 MB, free: 1.152 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007812/0.3047, allocations: 7.638 MB / 455.6 MB, free: 9.316 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001077/0.3058, allocations: 1.261 MB / 456.8 MB, free: 8.031 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009806/0.3068, allocations: 496.5 kB / 457.3 MB, free: 7.559 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006751/0.3075, allocations: 0.5567 MB / 457.9 MB, free: 7 MB / 362.7 MB Notification: Performance of SimCode: time 7.42e-07/0.3075, allocations: 0 / 457.9 MB, free: 7 MB / 362.7 MB Notification: Performance of Templates: time 0.04432/0.3518, allocations: 30.03 MB / 487.9 MB, free: 9.434 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ForceAndTorque/ForceAndTorque.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.8147220402024686]