Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008971/0.0008971, allocations: 80.8 kB / 22.29 MB, free: 2.203 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001577/0.001577, allocations: 170.6 kB / 25.7 MB, free: 8.445 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8809/0.8809, allocations: 158.6 MB / 187.6 MB, free: 2.773 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 251.6 MB, free: 7.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.187e-05/2.321e-05, allocations: 2.312 kB / 251.6 MB, free: 7.242 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.009751/0.009775, allocations: 11.79 MB / 263.3 MB, free: 11.39 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007914/0.01769, allocations: 4.263 MB / 267.6 MB, free: 7.117 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001672/0.01936, allocations: 79.69 kB / 267.7 MB, free: 7.039 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003689/0.02305, allocations: 3.473 MB / 271.2 MB, free: 3.555 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003646/0.0267, allocations: 2.228 MB / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001228/0.02792, allocations: 0.9199 MB / 274.3 MB, free: 404 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004455/0.03238, allocations: 4.914 MB / 279.2 MB, free: 11.47 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003447/0.03583, allocations: 3.674 MB / 282.9 MB, free: 7.711 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003626/0.03945, allocations: 3.005 MB / 285.9 MB, free: 4.699 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002616/0.04207, allocations: 2.381 MB / 288.3 MB, free: 2.312 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007375/0.04281, allocations: 388 kB / 288.7 MB, free: 1.934 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001576/0.04438, allocations: 1.233 MB / 289.9 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001586/0.04597, allocations: 2.376 MB / 292.3 MB, free: 14.32 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001881/0.04785, allocations: 1.468 MB / 293.7 MB, free: 12.84 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005344/0.05319, allocations: 5.395 MB / 299.1 MB, free: 7.43 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.0532, allocations: 0 / 299.1 MB, free: 7.43 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.0532, allocations: 0 / 299.1 MB, free: 7.43 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002948/0.0535, allocations: 4 kB / 299.1 MB, free: 7.426 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: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.007074/0.06057, allocations: 5.145 MB / 304.3 MB, free: 2.227 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.06061, allocations: 15.97 kB / 304.3 MB, free: 2.211 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003239/0.06385, allocations: 1.249 MB / 305.5 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002874/0.06672, allocations: 2.174 MB / 307.7 MB, free: 14.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001311/0.06685, allocations: 274.9 kB / 308 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004096/0.06726, allocations: 351.8 kB / 308.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006955/0.07422, allocations: 5.563 MB / 313.9 MB, free: 7.832 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.081e-05/0.0743, allocations: 47.62 kB / 313.9 MB, free: 7.785 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000271/0.07457, allocations: 167.8 kB / 314.1 MB, free: 7.621 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001702/0.07627, allocations: 2.05 MB / 316.2 MB, free: 5.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004928/0.0812, allocations: 2.87 MB / 319 MB, free: 2.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1326/0.2138, allocations: 33.89 MB / 352.9 MB, free: 74.2 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004872/0.2187, allocations: 2.081 MB / 355 MB, free: 74 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006743/0.2193, allocations: 0.4956 MB / 355.5 MB, free: 73.95 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005154/0.2245, allocations: 3.911 MB / 359.4 MB, free: 73.31 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.2245, allocations: 59.92 kB / 359.5 MB, free: 73.27 MB / 330.7 MB Notification: Performance of pre-optimization done (n=184): time 3.998e-06/0.2245, allocations: 2.875 kB / 359.5 MB, free: 73.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=189): time 0.01316/0.2377, allocations: 6.266 MB / 365.7 MB, free: 72.97 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.741e-05/0.2377, allocations: 181 kB / 365.9 MB, free: 72.78 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002349/0.2401, allocations: 3.443 MB / 369.4 MB, free: 72.3 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.198e-05/0.2402, allocations: 51.2 kB / 369.4 MB, free: 72.27 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009805/0.2411, allocations: 3.417 MB / 372.8 MB, free: 70.12 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000359/0.2415, allocations: 0.7605 MB / 373.6 MB, free: 69.68 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009287/0.2424, allocations: 1.27 MB / 374.8 MB, free: 69.53 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 2.598e-05/0.2424, allocations: 308.6 kB / 375.2 MB, free: 69.23 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001165/0.2436, allocations: 0.8474 MB / 376 MB, free: 69.2 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002037/0.2456, allocations: 4.798 MB / 380.8 MB, free: 63.93 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003384/0.249, allocations: 6.216 MB / 387 MB, free: 57.79 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.343e-05/0.2491, allocations: 40 kB / 387.1 MB, free: 57.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=877) (initialization): time 0.004464/0.2535, allocations: 4.602 MB / 391.7 MB, free: 54.63 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.907e-05/0.2536, allocations: 70.19 kB / 391.7 MB, free: 54.56 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.364e-05/0.2537, allocations: 144 kB / 391.9 MB, free: 54.42 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006873/0.2544, allocations: 371.7 kB / 392.2 MB, free: 54.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002193/0.2566, allocations: 1.499 MB / 393.7 MB, free: 52.62 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001563/0.2581, allocations: 2.21 MB / 395.9 MB, free: 50.52 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002338/0.2605, allocations: 287.5 kB / 396.2 MB, free: 50.34 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002609/0.2607, allocations: 354.2 kB / 396.6 MB, free: 50.05 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 657 * Number of states: 0 () * Number of discrete variables: 42 (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 (834): * Single equations (assignments): 828 * 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.001134/0.2618, allocations: 0.6609 MB / 397.2 MB, free: 49.54 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003177/0.2622, allocations: 237.1 kB / 397.5 MB, free: 49.34 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001312/0.2635, allocations: 1.127 MB / 398.6 MB, free: 48.43 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.757e-05/0.2635, allocations: 22.95 kB / 398.6 MB, free: 48.41 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.2635, allocations: 8 kB / 398.6 MB, free: 48.4 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.2635, allocations: 7.969 kB / 398.6 MB, free: 48.39 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005394/0.2689, allocations: 4.609 MB / 403.2 MB, free: 44.7 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.2689, allocations: 7.984 kB / 403.2 MB, free: 44.7 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006574/0.2696, allocations: 280.4 kB / 403.5 MB, free: 44.42 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006914/0.2703, allocations: 377.8 kB / 403.9 MB, free: 44.05 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.297e-05/0.2704, allocations: 47.92 kB / 403.9 MB, free: 44 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001323/0.2717, allocations: 1.918 MB / 405.8 MB, free: 42.02 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.2717, allocations: 11.94 kB / 405.9 MB, free: 42.01 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001893/0.2736, allocations: 2.117 MB / 408 MB, free: 39.8 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005927/0.2742, allocations: 477.4 kB / 408.4 MB, free: 39.34 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002437/0.2744, allocations: 43.75 kB / 408.5 MB, free: 39.3 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006423/0.2751, allocations: 39.92 kB / 408.5 MB, free: 39.26 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.2752, allocations: 128.6 kB / 408.6 MB, free: 39.13 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.783e-05/0.2753, allocations: 47.98 kB / 408.7 MB, free: 39.09 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008194/0.2761, allocations: 1.242 MB / 409.9 MB, free: 38.02 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2761, allocations: 0 / 409.9 MB, free: 38.02 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003295/0.2794, allocations: 1.146 MB / 411.1 MB, free: 36.87 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 (161): * Single equations (assignments): 157 * 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.0003198/0.2797, allocations: 192.7 kB / 411.3 MB, free: 36.68 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002705/0.2824, allocations: 2.77 MB / 414 MB, free: 34 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001451/0.2825, allocations: 104.2 kB / 414.1 MB, free: 33.89 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006174/0.2832, allocations: 0.631 MB / 414.8 MB, free: 33.27 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001656/0.2848, allocations: 0.6589 MB / 415.4 MB, free: 32.62 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0081/0.2929, allocations: 8.409 MB / 423.8 MB, free: 24.07 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009589/0.2939, allocations: 1.402 MB / 425.2 MB, free: 22.65 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001166/0.295, allocations: 0.5318 MB / 425.8 MB, free: 22.12 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007348/0.2958, allocations: 0.5549 MB / 426.3 MB, free: 21.56 MB / 330.7 MB Notification: Performance of SimCode: time 1.343e-06/0.2958, allocations: 4 kB / 426.3 MB, free: 21.56 MB / 330.7 MB Notification: Performance of Templates: time 0.04462/0.3404, allocations: 33.02 MB / 459.4 MB, free: 4.648 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.6710155471228063]