Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.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.001156/0.001156, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.001206/0.001206, allocations: 147.1 kB / 24.89 MB, free: 8.742 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.9487/0.9487, allocations: 173.4 MB / 201.5 MB, free: 8.738 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.ThreeSprings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|body1.frame_a.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body1.w_a.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,variableFilter="time|body1.frame_a.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body1.w_a.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.843e-06/1.843e-06, allocations: 0 / 268.5 MB, free: 6.02 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.433e-05/2.618e-05, allocations: 6.25 kB / 268.5 MB, free: 6.012 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.01109/0.01112, allocations: 10.13 MB / 278.6 MB, free: 11.83 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008699/0.01981, allocations: 3.98 MB / 282.6 MB, free: 7.836 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001711/0.02153, allocations: 79.56 kB / 282.7 MB, free: 7.758 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00409/0.02561, allocations: 2.768 MB / 285.4 MB, free: 4.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004054/0.02967, allocations: 1.882 MB / 287.3 MB, free: 3.09 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001511/0.03118, allocations: 0.7445 MB / 288.1 MB, free: 2.344 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1304/0.1616, allocations: 4.039 MB / 292.1 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003623/0.1652, allocations: 3.161 MB / 295.3 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003337/0.1686, allocations: 2.27 MB / 297.5 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002688/0.1712, allocations: 2.033 MB / 299.6 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000785/0.172, allocations: 318.8 kB / 299.9 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001582/0.1736, allocations: 1.12 MB / 301 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001168/0.1748, allocations: 1.968 MB / 303 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001163/0.1759, allocations: 1.244 MB / 304.2 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003078/0.179, allocations: 4.404 MB / 308.6 MB, free: 12.04 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.179, allocations: 0 / 308.6 MB, free: 12.04 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.179, allocations: 0 / 308.6 MB, free: 12.04 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.484e-05/0.1791, allocations: 0 / 308.6 MB, free: 12.04 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: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.003339/0.1824, allocations: 4.301 MB / 312.9 MB, free: 9.66 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.1824, allocations: 10.2 kB / 312.9 MB, free: 9.66 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002328/0.1848, allocations: 1.082 MB / 314 MB, free: 9.25 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001297/0.1861, allocations: 1.541 MB / 315.5 MB, free: 7.984 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.559e-05/0.1861, allocations: 242.2 kB / 315.8 MB, free: 7.781 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004436/0.1866, allocations: 401.1 kB / 316.2 MB, free: 7.434 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003989/0.1906, allocations: 5.151 MB / 321.3 MB, free: 2.004 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.849e-05/0.1906, allocations: 40.67 kB / 321.4 MB, free: 1.984 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002351/0.1909, allocations: 156 kB / 321.5 MB, free: 1.867 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001119/0.192, allocations: 1.689 MB / 323.2 MB, free: 216 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003813/0.1958, allocations: 2.682 MB / 325.9 MB, free: 13.75 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01872/0.2145, allocations: 31.05 MB / 356.9 MB, free: 14.71 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004025/0.2185, allocations: 2.22 MB / 359.2 MB, free: 12.52 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005324/0.2191, allocations: 403.2 kB / 359.5 MB, free: 12.12 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004633/0.2237, allocations: 3.859 MB / 363.4 MB, free: 8.316 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.389e-05/0.2237, allocations: 50.94 kB / 363.5 MB, free: 8.262 MB / 314.7 MB Notification: Performance of pre-optimization done (n=152): time 3.306e-06/0.2237, allocations: 0 / 363.5 MB, free: 8.262 MB / 314.7 MB Notification: Performance of matching and sorting (n=159): time 0.01086/0.2346, allocations: 5.213 MB / 368.7 MB, free: 3.082 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007794/0.2354, allocations: 1.48 MB / 370.2 MB, free: 1.48 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002294/0.2377, allocations: 3.042 MB / 373.2 MB, free: 14.99 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.295e-05/0.2378, allocations: 49.7 kB / 373.2 MB, free: 14.93 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001215/0.239, allocations: 3.091 MB / 376.3 MB, free: 11.99 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003652/0.2393, allocations: 0.6711 MB / 377 MB, free: 11.36 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009541/0.2403, allocations: 1.181 MB / 378.2 MB, free: 10.22 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.511e-05/0.2404, allocations: 305.1 kB / 378.5 MB, free: 9.918 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001294/0.2417, allocations: 0.8097 MB / 379.3 MB, free: 9.102 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002689/0.2444, allocations: 4.604 MB / 383.9 MB, free: 2.59 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004156/0.2485, allocations: 6.064 MB / 390 MB, free: 10.66 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.648e-05/0.2486, allocations: 40 kB / 390 MB, free: 10.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=814) (initialization): time 0.007108/0.2557, allocations: 4.947 MB / 394.9 MB, free: 5.648 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.959e-05/0.2557, allocations: 64.22 kB / 395 MB, free: 5.586 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003629/0.2593, allocations: 1.282 MB / 396.3 MB, free: 4.277 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004215/0.2636, allocations: 1.093 MB / 397.4 MB, free: 3.164 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001955/0.2655, allocations: 1.329 MB / 398.7 MB, free: 1.832 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003172/0.2687, allocations: 3.85 MB / 402.6 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001913/0.2706, allocations: 275.7 kB / 402.8 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002735/0.2709, allocations: 348 kB / 403.2 MB, free: 13.14 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 637 * Number of states: 0 () * Number of discrete variables: 39 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (742): * Single equations (assignments): 732 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * 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): 1 system {(3,32)} Notification: Performance of prepare postOptimizeDAE: time 0.00113/0.272, allocations: 0.6379 MB / 403.8 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002642/0.2723, allocations: 199.8 kB / 404 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002137/0.2744, allocations: 1.4 MB / 405.4 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001693/0.2761, allocations: 0.9698 MB / 406.4 MB, free: 9.863 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.2761, allocations: 4 kB / 406.4 MB, free: 9.859 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.2761, allocations: 11.97 kB / 406.4 MB, free: 9.848 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005702/0.2818, allocations: 4.149 MB / 410.5 MB, free: 5.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.399e-06/0.2818, allocations: 4 kB / 410.5 MB, free: 5.586 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004155/0.2822, allocations: 151.8 kB / 410.7 MB, free: 5.438 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002182/0.2844, allocations: 1.038 MB / 411.7 MB, free: 4.375 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.476e-05/0.2845, allocations: 35.91 kB / 411.8 MB, free: 4.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002319/0.2868, allocations: 3.568 MB / 415.3 MB, free: 0.5508 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0005481/0.2873, allocations: 1.352 MB / 416.7 MB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002758/0.2901, allocations: 2.163 MB / 418.9 MB, free: 12.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003238/0.2904, allocations: 281.7 kB / 419.1 MB, free: 12.61 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002048/0.2906, allocations: 27.98 kB / 419.2 MB, free: 12.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005658/0.2912, allocations: 32 kB / 419.2 MB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001522/0.2913, allocations: 92.8 kB / 419.3 MB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.678e-05/0.2914, allocations: 39.95 kB / 419.3 MB, free: 12.42 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008823/0.2923, allocations: 1.079 MB / 420.4 MB, free: 11.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2923, allocations: 0 / 420.4 MB, free: 11.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003256/0.2956, allocations: 1.105 MB / 421.5 MB, free: 10.24 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.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 (91): * Single equations (assignments): 83 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * 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): 1 system {(6,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003608/0.2959, allocations: 172.7 kB / 421.7 MB, free: 10.06 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003715/0.2996, allocations: 2.947 MB / 424.6 MB, free: 7.098 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001449/0.2998, allocations: 96.16 kB / 424.7 MB, free: 6.996 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001317/0.3011, allocations: 0.9197 MB / 425.6 MB, free: 6.035 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001617/0.3027, allocations: 0.5493 MB / 426.2 MB, free: 5.484 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1168/0.4195, allocations: 7.127 MB / 433.3 MB, free: 108.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001192/0.4207, allocations: 1.151 MB / 434.5 MB, free: 108.6 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00126/0.4219, allocations: 462.3 kB / 434.9 MB, free: 108.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007163/0.4227, allocations: 0.4951 MB / 435.4 MB, free: 108.5 MB / 378.7 MB Notification: Performance of SimCode: time 1.552e-06/0.4227, allocations: 0 / 435.4 MB, free: 108.5 MB / 378.7 MB Notification: Performance of Templates: time 0.04342/0.4661, allocations: 35.63 MB / 471 MB, free: 90.54 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ThreeSprings/ThreeSprings.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.013728694990277]