Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.0009786/0.0009786, allocations: 80.72 kB / 22.21 MB, free: 2.293 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.0009297/0.0009297, allocations: 140.4 kB / 25.59 MB, free: 8.906 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 1.004/1.004, allocations: 173.4 MB / 202.3 MB, free: 8.289 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.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.frame_a.r_0.[0-9,]+.|body.v_0.[0-9,]+.|body.w_a.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.frame_a.r_0.[0-9,]+.|body.v_0.[0-9,]+.|body.w_a.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 269.2 MB, free: 9.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.345e-05/1.489e-05, allocations: 3.781 kB / 269.2 MB, free: 9.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.005755/0.00577, allocations: 7.066 MB / 276.3 MB, free: 2.668 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0044/0.01017, allocations: 3.144 MB / 279.4 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004448/0.01061, allocations: 39.81 kB / 279.5 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001271/0.01189, allocations: 1.086 MB / 280.5 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001672/0.01356, allocations: 1.47 MB / 282 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005215/0.01408, allocations: 490.8 kB / 282.5 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001934/0.01601, allocations: 2.967 MB / 285.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001108/0.01712, allocations: 1.64 MB / 287.1 MB, free: 7.797 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009757/0.0181, allocations: 1.325 MB / 288.4 MB, free: 6.469 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001159/0.01926, allocations: 1.426 MB / 289.8 MB, free: 5.039 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001836/0.01944, allocations: 176 kB / 290 MB, free: 4.867 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009643/0.0204, allocations: 0.9788 MB / 291 MB, free: 3.887 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006821/0.02108, allocations: 1.196 MB / 292.2 MB, free: 2.688 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005482/0.02163, allocations: 0.7358 MB / 292.9 MB, free: 1.949 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00219/0.02382, allocations: 3.016 MB / 295.9 MB, free: 14.92 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.02383, allocations: 0 / 295.9 MB, free: 14.92 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.02383, allocations: 0 / 295.9 MB, free: 14.92 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.621e-05/0.02385, allocations: 0 / 295.9 MB, free: 14.92 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.003116/0.02697, allocations: 3.206 MB / 299.2 MB, free: 11.66 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.247e-05/0.027, allocations: 12.03 kB / 299.2 MB, free: 11.65 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002824/0.02983, allocations: 1.173 MB / 300.3 MB, free: 10.48 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001108/0.03093, allocations: 1.136 MB / 301.5 MB, free: 9.312 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.994e-05/0.031, allocations: 135.4 kB / 301.6 MB, free: 9.18 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003779/0.03138, allocations: 247.6 kB / 301.8 MB, free: 8.938 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003555/0.03494, allocations: 3.728 MB / 305.6 MB, free: 4.57 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.696e-05/0.03498, allocations: 31.7 kB / 305.6 MB, free: 4.539 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000169/0.03515, allocations: 87.89 kB / 305.7 MB, free: 4.453 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001111/0.03626, allocations: 1.187 MB / 306.9 MB, free: 3.266 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00305/0.03931, allocations: 1.98 MB / 308.9 MB, free: 1.285 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01561/0.05492, allocations: 28.21 MB / 337.1 MB, free: 4.137 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002724/0.05765, allocations: 1.278 MB / 338.3 MB, free: 2.812 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004623/0.05811, allocations: 308.1 kB / 338.6 MB, free: 2.496 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002347/0.06046, allocations: 2.422 MB / 341.1 MB, free: 44 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.527e-05/0.06049, allocations: 53.94 kB / 341.1 MB, free: 15.98 MB / 330.7 MB Notification: Performance of pre-optimization done (n=112): time 2.335e-06/0.06049, allocations: 4 kB / 341.1 MB, free: 15.97 MB / 330.7 MB Notification: Performance of matching and sorting (n=125): time 0.01028/0.07078, allocations: 4.706 MB / 345.8 MB, free: 11.19 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007899/0.07157, allocations: 2 MB / 347.8 MB, free: 9.027 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001944/0.07351, allocations: 2.439 MB / 350.3 MB, free: 6.547 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.259e-05/0.07357, allocations: 41.7 kB / 350.3 MB, free: 6.5 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009935/0.07457, allocations: 2.321 MB / 352.6 MB, free: 4.152 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003204/0.07489, allocations: 0.5545 MB / 353.2 MB, free: 3.594 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008189/0.07571, allocations: 1.004 MB / 354.2 MB, free: 2.574 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.07584, allocations: 0.5315 MB / 354.7 MB, free: 2.035 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007058/0.07655, allocations: 0.4929 MB / 355.2 MB, free: 1.535 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1065/0.183, allocations: 4.672 MB / 359.9 MB, free: 77.54 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003765/0.1868, allocations: 5.711 MB / 365.6 MB, free: 72.15 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.501e-05/0.1868, allocations: 28.03 kB / 365.6 MB, free: 72.15 MB / 330.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.007586/0.1944, allocations: 4.324 MB / 370 MB, free: 71.32 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.74e-05/0.1945, allocations: 46.44 kB / 370 MB, free: 71.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003877/0.1983, allocations: 1.18 MB / 371.2 MB, free: 71.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004422/0.2027, allocations: 0.8593 MB / 372 MB, free: 71.18 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001335/0.2041, allocations: 0.9742 MB / 373 MB, free: 71.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004255/0.2083, allocations: 5.204 MB / 378.2 MB, free: 67.3 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001491/0.2098, allocations: 212.2 kB / 378.4 MB, free: 67.3 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001961/0.21, allocations: 246.6 kB / 378.7 MB, free: 67.3 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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 (547): * Single equations (assignments): 539 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,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 {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005927/0.2106, allocations: 0.5284 MB / 379.2 MB, free: 67.04 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000246/0.2109, allocations: 247.2 kB / 379.4 MB, free: 67.04 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002221/0.2131, allocations: 1.283 MB / 380.7 MB, free: 66.88 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001943/0.215, allocations: 0.9537 MB / 381.7 MB, free: 66.27 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.084e-06/0.215, allocations: 8 kB / 381.7 MB, free: 66.26 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.816e-06/0.215, allocations: 3.188 kB / 381.7 MB, free: 66.26 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004614/0.2197, allocations: 3.707 MB / 385.4 MB, free: 63.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.2197, allocations: 4 kB / 385.4 MB, free: 63.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003683/0.22, allocations: 139.8 kB / 385.5 MB, free: 63.59 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001895/0.2219, allocations: 0.6729 MB / 386.2 MB, free: 62.91 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.285e-05/0.222, allocations: 31.97 kB / 386.2 MB, free: 62.88 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003004/0.225, allocations: 4.938 MB / 391.2 MB, free: 57.8 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0003507/0.2253, allocations: 1.858 MB / 393 MB, free: 55.83 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002602/0.2279, allocations: 2.191 MB / 395.2 MB, free: 53.62 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000164/0.2281, allocations: 211.5 kB / 395.4 MB, free: 53.42 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001533/0.2283, allocations: 20 kB / 395.4 MB, free: 53.4 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005087/0.2288, allocations: 23.98 kB / 395.5 MB, free: 53.38 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001423/0.2289, allocations: 89.23 kB / 395.6 MB, free: 53.29 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.074e-05/0.229, allocations: 31.98 kB / 395.6 MB, free: 53.26 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000576/0.2295, allocations: 0.9652 MB / 396.6 MB, free: 52.37 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2295, allocations: 0 / 396.6 MB, free: 52.37 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002036/0.2316, allocations: 0.8768 MB / 397.4 MB, free: 51.5 MB / 330.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.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,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 {(5,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.0002784/0.2319, allocations: 179.9 kB / 397.6 MB, free: 51.32 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002629/0.2345, allocations: 2.585 MB / 400.2 MB, free: 48.77 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.2345, allocations: 0 / 400.2 MB, free: 48.77 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/0.2355, allocations: 0.9727 MB / 401.2 MB, free: 47.77 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008969/0.2364, allocations: 255.7 kB / 401.4 MB, free: 47.54 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004527/0.2409, allocations: 5.197 MB / 406.6 MB, free: 42.3 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005125/0.2415, allocations: 0.7921 MB / 407.4 MB, free: 41.49 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006604/0.2421, allocations: 325.9 kB / 407.7 MB, free: 41.16 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004514/0.2426, allocations: 414.1 kB / 408.1 MB, free: 40.76 MB / 330.7 MB Notification: Performance of SimCode: time 1.512e-06/0.2426, allocations: 4 kB / 408.1 MB, free: 40.75 MB / 330.7 MB Notification: Performance of Templates: time 0.03182/0.2744, allocations: 31.6 MB / 439.7 MB, free: 9.504 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.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.8251237557269633]