Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.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.001416/0.001416, allocations: 78.97 kB / 21.42 MB, free: 3.074 MB / 18.57 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.0009582/0.0009582, allocations: 148.8 kB / 24.8 MB, free: 8.945 MB / 18.57 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.892/0.892, allocations: 173.4 MB / 201.4 MB, free: 9.207 MB / 186.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.FreeBody,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.body.frame_a.r_0.[0-9,]+.|body.body.w_a.[0-9,]+.|body.v_0.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.body.frame_a.r_0.[0-9,]+.|body.body.w_a.[0-9,]+.|body.v_0.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.172e-06/1.172e-06, allocations: 0 / 268.4 MB, free: 6.188 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.193e-05/1.31e-05, allocations: 10.25 kB / 268.4 MB, free: 6.176 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.007278/0.007291, allocations: 9.865 MB / 278.3 MB, free: 12.26 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005424/0.01271, allocations: 3.73 MB / 282 MB, free: 8.516 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008607/0.01358, allocations: 71.62 kB / 282.1 MB, free: 8.445 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002373/0.01595, allocations: 2.437 MB / 284.5 MB, free: 6 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002434/0.01838, allocations: 1.812 MB / 286.3 MB, free: 4.18 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007771/0.01916, allocations: 0.6704 MB / 287 MB, free: 3.508 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1047/0.1239, allocations: 3.82 MB / 290.8 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00347/0.1273, allocations: 2.784 MB / 293.6 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002851/0.1302, allocations: 2.103 MB / 295.7 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003298/0.1335, allocations: 1.991 MB / 297.7 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008511/0.1343, allocations: 298.1 kB / 298 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001838/0.1362, allocations: 1.107 MB / 299.1 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001324/0.1375, allocations: 1.834 MB / 300.9 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001232/0.1387, allocations: 1.148 MB / 302.1 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003532/0.1423, allocations: 4.09 MB / 306.2 MB, free: 13.23 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.319e-06/0.1423, allocations: 4.562 kB / 306.2 MB, free: 13.22 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1423, allocations: 0 / 306.2 MB, free: 13.22 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.277e-05/0.1423, allocations: 0.625 kB / 306.2 MB, free: 13.22 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1330 * Number of variables: 1330 Notification: Performance of Generate backend data structure: time 0.004384/0.1467, allocations: 4.473 MB / 310.7 MB, free: 10.79 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.1467, allocations: 11.02 kB / 310.7 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003438/0.1502, allocations: 1.362 MB / 312 MB, free: 10.35 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001729/0.1519, allocations: 1.703 MB / 313.7 MB, free: 9.301 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001046/0.152, allocations: 213.1 kB / 313.9 MB, free: 9.23 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005507/0.1525, allocations: 362.8 kB / 314.3 MB, free: 9.129 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00493/0.1575, allocations: 4.993 MB / 319.3 MB, free: 4.047 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.5e-05/0.1575, allocations: 39.52 kB / 319.3 MB, free: 4.027 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002673/0.1578, allocations: 138.7 kB / 319.5 MB, free: 3.922 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001306/0.1591, allocations: 1.475 MB / 320.9 MB, free: 2.473 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004141/0.1633, allocations: 2.406 MB / 323.3 MB, free: 256 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02018/0.1834, allocations: 38.28 MB / 361.6 MB, free: 9.895 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003299/0.1867, allocations: 1.764 MB / 363.4 MB, free: 8.125 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004328/0.1872, allocations: 445.3 kB / 363.8 MB, free: 7.684 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003743/0.1909, allocations: 3.937 MB / 367.8 MB, free: 3.781 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.154e-05/0.1909, allocations: 53.7 kB / 367.8 MB, free: 3.723 MB / 314.7 MB Notification: Performance of pre-optimization done (n=132): time 2.264e-06/0.191, allocations: 0 / 367.8 MB, free: 3.723 MB / 314.7 MB Notification: Performance of matching and sorting (n=139): time 0.009757/0.2007, allocations: 4.765 MB / 372.6 MB, free: 14.94 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009099/0.2016, allocations: 2.004 MB / 374.6 MB, free: 12.8 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002377/0.204, allocations: 3.145 MB / 377.7 MB, free: 10.14 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.887e-05/0.2041, allocations: 48.52 kB / 377.8 MB, free: 10.09 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001348/0.2054, allocations: 3.071 MB / 380.8 MB, free: 7.152 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000386/0.2058, allocations: 0.6216 MB / 381.5 MB, free: 6.566 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009912/0.2068, allocations: 1.213 MB / 382.7 MB, free: 5.465 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.2e-05/0.2069, allocations: 480.7 kB / 383.1 MB, free: 4.992 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008061/0.2077, allocations: 0.5806 MB / 383.7 MB, free: 4.406 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002893/0.2106, allocations: 5.707 MB / 389.4 MB, free: 12.53 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00433/0.2149, allocations: 6.958 MB / 396.4 MB, free: 3.359 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.68e-05/0.215, allocations: 36 kB / 396.4 MB, free: 3.324 MB / 346.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.006936/0.2219, allocations: 4.898 MB / 401.3 MB, free: 14.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.622e-05/0.2219, allocations: 56.19 kB / 401.4 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003366/0.2253, allocations: 1.086 MB / 402.5 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003389/0.2287, allocations: 0.5722 MB / 403 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001788/0.2305, allocations: 1.205 MB / 404.2 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003335/0.2338, allocations: 4.29 MB / 408.5 MB, free: 6.926 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00168/0.2355, allocations: 243.7 kB / 408.8 MB, free: 6.688 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002543/0.2358, allocations: 296 kB / 409.1 MB, free: 6.398 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 557 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (676): * Single equations (assignments): 667 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008371/0.2366, allocations: 0.6225 MB / 409.7 MB, free: 5.766 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002997/0.2369, allocations: 322.1 kB / 410 MB, free: 5.449 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001781/0.2387, allocations: 1.208 MB / 411.2 MB, free: 4.207 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001364/0.24, allocations: 0.8051 MB / 412 MB, free: 3.379 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.24, allocations: 4 kB / 412 MB, free: 3.375 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.859e-06/0.2401, allocations: 11.92 kB / 412 MB, free: 3.363 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005326/0.2454, allocations: 4.37 MB / 416.4 MB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.029e-06/0.2454, allocations: 4 kB / 416.4 MB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004726/0.2459, allocations: 179.7 kB / 416.6 MB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001043/0.2469, allocations: 362.2 kB / 416.9 MB, free: 14.33 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.009e-05/0.247, allocations: 31.98 kB / 417 MB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002113/0.2491, allocations: 3.997 MB / 421 MB, free: 10.08 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006204/0.2497, allocations: 1.874 MB / 422.8 MB, free: 8.082 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002356/0.2521, allocations: 2.165 MB / 425 MB, free: 5.859 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002467/0.2523, allocations: 273.9 kB / 425.3 MB, free: 5.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001684/0.2525, allocations: 31.98 kB / 425.3 MB, free: 5.559 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005416/0.253, allocations: 24 kB / 425.3 MB, free: 5.535 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001455/0.2532, allocations: 92.41 kB / 425.4 MB, free: 5.445 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.96e-05/0.2532, allocations: 35.97 kB / 425.4 MB, free: 5.41 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009797/0.2542, allocations: 1.249 MB / 426.7 MB, free: 4.164 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2542, allocations: 0 / 426.7 MB, free: 4.164 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002416/0.2566, allocations: 1.023 MB / 427.7 MB, free: 3.141 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.body.w_a[3]) * 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 (105): * Single equations (assignments): 98 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003/0.2569, allocations: 190.8 kB / 427.9 MB, free: 2.945 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.09582/0.3527, allocations: 2.988 MB / 430.9 MB, free: 118.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.3527, allocations: 0 / 430.9 MB, free: 118.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001507/0.3542, allocations: 1.031 MB / 431.9 MB, free: 118 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001471/0.3557, allocations: 367.2 kB / 432.3 MB, free: 118 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00729/0.363, allocations: 6.823 MB / 439.1 MB, free: 115.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009537/0.364, allocations: 1.061 MB / 440.2 MB, free: 115.1 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001019/0.365, allocations: 430.3 kB / 440.6 MB, free: 114.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007279/0.3657, allocations: 0.5368 MB / 441.1 MB, free: 114.9 MB / 378.7 MB Notification: Performance of SimCode: time 1.382e-06/0.3657, allocations: 0 / 441.1 MB, free: 114.9 MB / 378.7 MB Notification: Performance of Templates: time 0.03834/0.404, allocations: 34.73 MB / 475.9 MB, free: 92.59 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/FreeBody/FreeBody.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.7622162392362952]