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.0009486/0.0009486, allocations: 79.73 kB / 21.97 MB, free: 2.602 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.0009624/0.0009624, allocations: 169.7 kB / 25.33 MB, free: 9.461 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.8408/0.8408, allocations: 158.6 MB / 187.2 MB, free: 2.48 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.824e-06/1.824e-06, allocations: 0 / 251 MB, free: 3.582 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.927e-05/2.109e-05, allocations: 6.312 kB / 251.1 MB, free: 3.574 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.02484/0.02486, allocations: 12.18 MB / 263.2 MB, free: 7.34 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.009444/0.0343, allocations: 4.116 MB / 267.3 MB, free: 3.211 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008379/0.03514, allocations: 83.62 kB / 267.4 MB, free: 3.129 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00347/0.03861, allocations: 3.481 MB / 270.9 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002905/0.04152, allocations: 2.236 MB / 273.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001094/0.04261, allocations: 0.9043 MB / 274.1 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004224/0.04683, allocations: 4.936 MB / 279 MB, free: 7.539 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002896/0.04973, allocations: 3.587 MB / 282.6 MB, free: 3.883 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002824/0.05255, allocations: 3.006 MB / 285.6 MB, free: 0.8711 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001921/0.05447, allocations: 2.498 MB / 288.1 MB, free: 14.36 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003777/0.05485, allocations: 392 kB / 288.5 MB, free: 13.98 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001231/0.05608, allocations: 1.237 MB / 289.7 MB, free: 12.74 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001432/0.05752, allocations: 2.384 MB / 292.1 MB, free: 10.35 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009981/0.05851, allocations: 1.472 MB / 293.6 MB, free: 8.875 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00368/0.06219, allocations: 5.398 MB / 299 MB, free: 3.457 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.0622, allocations: 0 / 299 MB, free: 3.457 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.0622, allocations: 4 kB / 299 MB, free: 3.453 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.7e-05/0.06225, allocations: 0 / 299 MB, free: 3.453 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.09972/0.162, allocations: 6.002 MB / 305 MB, free: 50.46 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/0.162, allocations: 14.39 kB / 305 MB, free: 50.46 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005674/0.1677, allocations: 2.741 MB / 307.7 MB, free: 50.1 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003122/0.1708, allocations: 2.613 MB / 310.3 MB, free: 49.6 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001296/0.1709, allocations: 265.5 kB / 310.6 MB, free: 49.52 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003821/0.1713, allocations: 350.4 kB / 310.9 MB, free: 49.44 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007533/0.1788, allocations: 6.901 MB / 317.8 MB, free: 45.69 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.172e-05/0.1789, allocations: 40.95 kB / 317.9 MB, free: 45.68 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003622/0.1793, allocations: 171.6 kB / 318 MB, free: 45.61 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002029/0.1813, allocations: 2.222 MB / 320.3 MB, free: 43.74 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007943/0.1893, allocations: 3.697 MB / 324 MB, free: 40.16 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02762/0.2169, allocations: 46.85 MB / 370.8 MB, free: 8.371 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007296/0.2242, allocations: 2.661 MB / 373.5 MB, free: 5.672 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001157/0.2253, allocations: 0.7157 MB / 374.2 MB, free: 4.934 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006565/0.2319, allocations: 4.565 MB / 378.8 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.194e-05/0.2319, allocations: 54.7 kB / 378.8 MB, free: 456 kB / 298.7 MB Notification: Performance of pre-optimization done (n=184): time 4.147e-06/0.232, allocations: 0 / 378.8 MB, free: 456 kB / 298.7 MB Notification: Performance of matching and sorting (n=189): time 0.02151/0.2535, allocations: 11.79 MB / 390.6 MB, free: 4.633 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.276e-05/0.2535, allocations: 171.5 kB / 390.8 MB, free: 4.43 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0036/0.2571, allocations: 3.873 MB / 394.6 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.494e-05/0.2572, allocations: 50.33 kB / 394.7 MB, free: 0.5234 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001729/0.259, allocations: 3.82 MB / 398.5 MB, free: 12.74 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005077/0.2595, allocations: 0.7879 MB / 399.3 MB, free: 11.96 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001216/0.2607, allocations: 1.455 MB / 400.7 MB, free: 10.49 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.2608, allocations: 476.8 kB / 401.2 MB, free: 10.02 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001178/0.262, allocations: 0.7353 MB / 401.9 MB, free: 9.285 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003741/0.2657, allocations: 6.804 MB / 408.8 MB, free: 15.7 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006038/0.2718, allocations: 8.297 MB / 417 MB, free: 4.672 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.116e-05/0.2718, allocations: 44 kB / 417.1 MB, free: 4.629 MB / 346.7 MB Notification: Performance of matching and sorting (n=877) (initialization): time 0.007502/0.2793, allocations: 5.978 MB / 423.1 MB, free: 14.64 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.766e-05/0.2794, allocations: 68 kB / 423.1 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001106/0.2795, allocations: 144 kB / 423.3 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000945/0.2804, allocations: 480.2 kB / 423.7 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002621/0.283, allocations: 1.583 MB / 425.3 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002243/0.2853, allocations: 2.908 MB / 428.2 MB, free: 9.355 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002164/0.2874, allocations: 396.8 kB / 428.6 MB, free: 8.969 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000327/0.2878, allocations: 407 kB / 429 MB, free: 8.574 MB / 362.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.001109/0.2889, allocations: 0.713 MB / 429.7 MB, free: 7.848 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003722/0.2893, allocations: 417.5 kB / 430.1 MB, free: 7.438 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002132/0.2914, allocations: 1.543 MB / 431.7 MB, free: 5.875 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.837e-05/0.2914, allocations: 23.28 kB / 431.7 MB, free: 5.855 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.2914, allocations: 4 kB / 431.7 MB, free: 5.852 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/0.2914, allocations: 11.97 kB / 431.7 MB, free: 5.84 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1113/0.4027, allocations: 5.785 MB / 437.5 MB, free: 106.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.432e-05/0.4027, allocations: 9.75 kB / 437.5 MB, free: 106.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001104/0.4038, allocations: 325.5 kB / 437.8 MB, free: 106.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008475/0.4047, allocations: 278.7 kB / 438.1 MB, free: 106.1 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001134/0.4048, allocations: 39.47 kB / 438.1 MB, free: 106.1 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001779/0.4066, allocations: 2.601 MB / 440.7 MB, free: 104.2 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.603e-06/0.4066, allocations: 15.86 kB / 440.8 MB, free: 104.2 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00328/0.4099, allocations: 2.862 MB / 443.6 MB, free: 103.3 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007997/0.4107, allocations: 0.5456 MB / 444.2 MB, free: 103.3 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002599/0.4109, allocations: 39.38 kB / 444.2 MB, free: 103.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007365/0.4116, allocations: 121.8 kB / 444.3 MB, free: 103.2 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002003/0.4118, allocations: 128.1 kB / 444.5 MB, free: 103.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.148e-05/0.4119, allocations: 60.28 kB / 444.5 MB, free: 103.2 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00189/0.4138, allocations: 1.648 MB / 446.2 MB, free: 103.1 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4138, allocations: 1.719 kB / 446.2 MB, free: 103.1 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003165/0.417, allocations: 1.139 MB / 447.3 MB, free: 103.1 MB / 362.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.0003271/0.4173, allocations: 204.4 kB / 447.5 MB, free: 103 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003757/0.4211, allocations: 3.297 MB / 450.8 MB, free: 102.7 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.4211, allocations: 6.344 kB / 450.8 MB, free: 102.7 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007826/0.4219, allocations: 0.8342 MB / 451.6 MB, free: 102.5 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001337/0.4232, allocations: 428.7 kB / 452.1 MB, free: 102.4 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008075/0.4313, allocations: 8.612 MB / 460.7 MB, free: 98.79 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009098/0.4322, allocations: 1.417 MB / 462.1 MB, free: 98.6 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002208/0.4344, allocations: 1.745 MB / 463.8 MB, free: 98.44 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004722/0.4349, allocations: 251.5 kB / 464.1 MB, free: 98.43 MB / 362.7 MB Notification: Performance of SimCode: time 1.463e-06/0.4349, allocations: 0 / 464.1 MB, free: 98.43 MB / 362.7 MB Notification: Performance of Templates: time 0.03779/0.4727, allocations: 31.11 MB / 495.2 MB, free: 69.41 MB / 362.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: 4.023969430010766]