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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 73.42 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001881/0.003077, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 141 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001714/0.002831, allocations: 483.5 kB / 11.81 MB, free: 2.359 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8487/0.8487, allocations: 173.4 MB / 186 MB, free: 7.523 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1414/0.9901, allocations: 52.49 MB / 238.5 MB, free: 7.609 MB / 234.7 MB " [Timeout remaining time 179] 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=5002,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=5002,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 239.8 MB, free: 6.336 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.87e-05/2.002e-05, allocations: 2.312 kB / 239.8 MB, free: 6.332 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.008406/0.008426, allocations: 10.94 MB / 250.7 MB, free: 11.36 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005853/0.01428, allocations: 4.169 MB / 254.9 MB, free: 7.203 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009918/0.01527, allocations: 75.69 kB / 254.9 MB, free: 7.129 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002736/0.01801, allocations: 3.252 MB / 258.2 MB, free: 3.871 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002407/0.02041, allocations: 2.053 MB / 260.2 MB, free: 1.809 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009968/0.02141, allocations: 0.8341 MB / 261.1 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003162/0.02457, allocations: 4.51 MB / 265.6 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0021/0.02667, allocations: 3.245 MB / 268.8 MB, free: 9.125 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00253/0.0292, allocations: 2.958 MB / 271.8 MB, free: 6.164 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001759/0.03096, allocations: 2.163 MB / 273.9 MB, free: 3.996 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003478/0.03131, allocations: 356 kB / 274.3 MB, free: 3.648 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001294/0.0326, allocations: 1.244 MB / 275.5 MB, free: 2.402 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001296/0.0339, allocations: 1.995 MB / 277.5 MB, free: 412 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008319/0.03473, allocations: 1.114 MB / 278.7 MB, free: 15.28 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003067/0.0378, allocations: 4.643 MB / 283.3 MB, free: 10.62 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.0378, allocations: 4 kB / 283.3 MB, free: 10.62 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.03781, allocations: 3.984 kB / 283.3 MB, free: 10.62 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.832e-05/0.03785, allocations: 0 / 283.3 MB, free: 10.62 MB / 282.7 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.004732/0.04258, allocations: 5.828 MB / 289.1 MB, free: 4.715 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.165e-05/0.0426, allocations: 8.031 kB / 289.1 MB, free: 4.707 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002709/0.04531, allocations: 1.16 MB / 290.3 MB, free: 3.547 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002218/0.04753, allocations: 2.064 MB / 292.4 MB, free: 1.426 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001061/0.04763, allocations: 250.4 kB / 292.6 MB, free: 1.18 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003229/0.04795, allocations: 339.7 kB / 292.9 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005086/0.05304, allocations: 5.219 MB / 298.2 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.46e-05/0.05311, allocations: 43.62 kB / 298.2 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002384/0.05334, allocations: 155.8 kB / 298.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001397/0.05474, allocations: 1.764 MB / 300.1 MB, free: 8.961 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003832/0.05857, allocations: 2.665 MB / 302.8 MB, free: 6.258 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02127/0.07984, allocations: 32.17 MB / 335 MB, free: 4.863 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004047/0.08389, allocations: 1.878 MB / 336.8 MB, free: 2.938 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004539/0.08434, allocations: 424.1 kB / 337.2 MB, free: 2.516 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1104/0.1947, allocations: 3.546 MB / 340.8 MB, free: 67.81 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.051e-05/0.1948, allocations: 49.09 kB / 340.8 MB, free: 67.77 MB / 330.7 MB Notification: Performance of pre-optimization done (n=145): time 3.526e-06/0.1948, allocations: 1.156 kB / 340.8 MB, free: 67.77 MB / 330.7 MB Notification: Performance of matching and sorting (n=150): time 0.01302/0.2078, allocations: 5.742 MB / 346.6 MB, free: 67.36 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.057e-05/0.2078, allocations: 146.1 kB / 346.7 MB, free: 67.21 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002141/0.21, allocations: 3.332 MB / 350.1 MB, free: 66.72 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.392e-05/0.21, allocations: 53.17 kB / 350.1 MB, free: 66.69 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008768/0.2109, allocations: 3.241 MB / 353.3 MB, free: 64.56 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002902/0.2112, allocations: 0.6287 MB / 354 MB, free: 64.21 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007876/0.212, allocations: 1.192 MB / 355.2 MB, free: 64.06 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 2.691e-05/0.212, allocations: 305.1 kB / 355.5 MB, free: 63.76 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009876/0.213, allocations: 0.7607 MB / 356.2 MB, free: 63.73 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001728/0.2147, allocations: 4.609 MB / 360.8 MB, free: 58.58 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003166/0.2179, allocations: 6.375 MB / 367.2 MB, free: 53.33 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.424e-05/0.2179, allocations: 42.5 kB / 367.3 MB, free: 53.33 MB / 330.7 MB Notification: Performance of matching and sorting (n=814) (initialization): time 0.003805/0.2217, allocations: 4.321 MB / 371.6 MB, free: 52.79 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.255e-05/0.2218, allocations: 68.78 kB / 371.6 MB, free: 52.79 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.528e-05/0.2219, allocations: 148.2 kB / 371.8 MB, free: 52.79 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006533/0.2225, allocations: 377.7 kB / 372.2 MB, free: 52.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002041/0.2245, allocations: 1.562 MB / 373.7 MB, free: 51.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001433/0.226, allocations: 2.204 MB / 375.9 MB, free: 49.89 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001727/0.2277, allocations: 275.5 kB / 376.2 MB, free: 49.72 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002345/0.2279, allocations: 336.4 kB / 376.5 MB, free: 49.45 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 643 * 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 (781): * Single equations (assignments): 777 * 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 prepare postOptimizeDAE: time 0.0008256/0.2288, allocations: 0.6485 MB / 377.2 MB, free: 48.95 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002227/0.229, allocations: 209.8 kB / 377.4 MB, free: 48.81 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001035/0.23, allocations: 0.8806 MB / 378.2 MB, free: 48.28 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-05/0.23, allocations: 16 kB / 378.3 MB, free: 48.26 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.23, allocations: 0 / 378.3 MB, free: 48.26 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.2301, allocations: 11.92 kB / 378.3 MB, free: 48.25 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003798/0.2339, allocations: 4.07 MB / 382.3 MB, free: 45.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-05/0.2339, allocations: 19.98 kB / 382.4 MB, free: 45 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005195/0.2344, allocations: 243.8 kB / 382.6 MB, free: 44.76 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002303/0.2346, allocations: 312.2 kB / 382.9 MB, free: 44.45 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000663/0.2353, allocations: 391.2 kB / 383.3 MB, free: 44.07 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.832e-05/0.2353, allocations: 31.98 kB / 383.3 MB, free: 44.04 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001178/0.2365, allocations: 1.918 MB / 385.2 MB, free: 42.05 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.2365, allocations: 11.94 kB / 385.3 MB, free: 42.04 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001375/0.2379, allocations: 1.818 MB / 387.1 MB, free: 40.12 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001755/0.2381, allocations: 35.81 kB / 387.1 MB, free: 40.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005255/0.2386, allocations: 31.94 kB / 387.1 MB, free: 40.06 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.2387, allocations: 102.1 kB / 387.2 MB, free: 39.96 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.944e-05/0.2388, allocations: 43.98 kB / 387.3 MB, free: 39.92 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007114/0.2395, allocations: 1.21 MB / 388.5 MB, free: 38.87 MB / 330.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2395, allocations: 0 / 388.5 MB, free: 38.87 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002408/0.2419, allocations: 1.048 MB / 389.5 MB, free: 37.83 MB / 330.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.0002981/0.2422, allocations: 181.3 kB / 389.7 MB, free: 37.64 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002077/0.2443, allocations: 2.643 MB / 392.4 MB, free: 35.32 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001465/0.2444, allocations: 116 kB / 392.5 MB, free: 35.2 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000924/0.2453, allocations: 1.084 MB / 393.6 MB, free: 34.13 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001585/0.2469, allocations: 2.687 MB / 396.2 MB, free: 31.09 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008689/0.2556, allocations: 7.913 MB / 404.2 MB, free: 23.07 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00085/0.2564, allocations: 1.297 MB / 405.5 MB, free: 21.75 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0009413/0.2574, allocations: 499.8 kB / 405.9 MB, free: 21.26 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005769/0.258, allocations: 0.5121 MB / 406.5 MB, free: 20.75 MB / 330.7 MB Notification: Performance of SimCode: time 1.392e-06/0.258, allocations: 0 / 406.5 MB, free: 20.75 MB / 330.7 MB Notification: Performance of Templates: time 0.03932/0.2973, allocations: 28.8 MB / 435.3 MB, free: 8.137 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0498629277572036]