Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.0007833/0.0007833, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001395/0.002179, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007197/0.0007197, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000995/0.001715, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9875/0.9875, allocations: 177.2 MB / 189.8 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1206/1.108, allocations: 53.65 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body1.frame_a.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body1.w_a.[0-9,]+.|p2.s|p2.v",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body1.frame_a.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body1.w_a.[0-9,]+.|p2.s|p2.v",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.042e-06/1.042e-06, allocations: 0 / 244.7 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.736e-05/1.841e-05, allocations: 6.312 kB / 244.7 MB, free: 14.21 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.008624/0.008643, allocations: 11.44 MB / 256.2 MB, free: 2.711 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007304/0.01595, allocations: 4.296 MB / 260.5 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001266/0.01721, allocations: 83.56 kB / 260.5 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00313/0.02034, allocations: 2.795 MB / 263.3 MB, free: 11.51 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003779/0.02412, allocations: 2.041 MB / 265.4 MB, free: 9.461 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001373/0.02549, allocations: 0.8303 MB / 266.2 MB, free: 8.629 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005316/0.03081, allocations: 5.209 MB / 271.4 MB, free: 3.406 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00325/0.03406, allocations: 3.15 MB / 274.6 MB, free: 200 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1164/0.1505, allocations: 2.729 MB / 277.3 MB, free: 3.461 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003968/0.1545, allocations: 2.49 MB / 279.8 MB, free: 3.461 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001129/0.1556, allocations: 355.7 kB / 280.1 MB, free: 3.461 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002361/0.158, allocations: 1.255 MB / 281.4 MB, free: 3.461 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001712/0.1597, allocations: 2.003 MB / 283.4 MB, free: 3.418 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001977/0.1617, allocations: 1.139 MB / 284.5 MB, free: 3.203 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005301/0.167, allocations: 4.63 MB / 289.2 MB, free: 2.477 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.608e-05/0.167, allocations: 0.6875 kB / 289.2 MB, free: 2.477 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.167, allocations: 0 / 289.2 MB, free: 2.477 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002839/0.1673, allocations: 1.812 kB / 289.2 MB, free: 2.477 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: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.007211/0.1745, allocations: 5.878 MB / 295 MB, free: 320 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.1745, allocations: 14.7 kB / 295 MB, free: 316 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003535/0.178, allocations: 1.304 MB / 296.4 MB, free: 304 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002605/0.1807, allocations: 1.895 MB / 298.2 MB, free: 15.71 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001278/0.1808, allocations: 272 kB / 298.5 MB, free: 15.7 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005882/0.1814, allocations: 424.5 kB / 298.9 MB, free: 15.7 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007786/0.1892, allocations: 5.87 MB / 304.8 MB, free: 10.7 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.301e-05/0.1892, allocations: 50.02 kB / 304.8 MB, free: 10.68 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003119/0.1896, allocations: 174 kB / 305 MB, free: 10.55 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001584/0.1911, allocations: 1.818 MB / 306.8 MB, free: 8.75 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008369/0.1995, allocations: 3.145 MB / 310 MB, free: 5.867 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03383/0.2333, allocations: 34.84 MB / 344.8 MB, free: 3.074 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007065/0.2404, allocations: 2.391 MB / 347.2 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008319/0.2412, allocations: 479 kB / 347.7 MB, free: 256 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00744/0.2487, allocations: 4.283 MB / 352 MB, free: 12.01 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.08e-05/0.2487, allocations: 51.53 kB / 352 MB, free: 11.95 MB / 330.7 MB Notification: Performance of pre-optimization done (n=183): time 4.95e-06/0.2487, allocations: 0 / 352 MB, free: 11.95 MB / 330.7 MB Notification: Performance of matching and sorting (n=205): time 0.01846/0.2672, allocations: 7.364 MB / 359.4 MB, free: 4.672 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008245/0.268, allocations: 1.484 MB / 360.9 MB, free: 3.07 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003232/0.2712, allocations: 3.311 MB / 364.2 MB, free: 380 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002507/0.2715, allocations: 53.7 kB / 364.2 MB, free: 320 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001518/0.273, allocations: 3.345 MB / 367.6 MB, free: 13.13 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006835/0.2737, allocations: 0.8344 MB / 368.4 MB, free: 12.34 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001172/0.2749, allocations: 1.287 MB / 369.7 MB, free: 11.2 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.146e-05/0.2749, allocations: 305.1 kB / 370 MB, free: 10.9 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001583/0.2765, allocations: 0.8861 MB / 370.9 MB, free: 10.01 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003436/0.2799, allocations: 4.874 MB / 375.7 MB, free: 3.332 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005628/0.2856, allocations: 6.927 MB / 382.7 MB, free: 10.66 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.309e-05/0.2856, allocations: 40 kB / 382.7 MB, free: 10.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=895) (initialization): time 0.008021/0.2937, allocations: 5.072 MB / 387.8 MB, free: 5.531 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.574e-05/0.2937, allocations: 68 kB / 387.8 MB, free: 5.465 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001327/0.2938, allocations: 152 kB / 388 MB, free: 5.316 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003087/0.2969, allocations: 0.5986 MB / 388.6 MB, free: 4.703 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002845/0.2998, allocations: 1.72 MB / 390.3 MB, free: 2.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003252/0.303, allocations: 3.087 MB / 393.4 MB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003297/0.3063, allocations: 302 kB / 393.7 MB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004054/0.3067, allocations: 360 kB / 394 MB, free: 15.07 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 666 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (857): * Single equations (assignments): 848 * 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.001375/0.3081, allocations: 0.6835 MB / 394.7 MB, free: 14.38 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003954/0.3085, allocations: 239.7 kB / 395 MB, free: 14.14 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002279/0.3108, allocations: 1.352 MB / 396.3 MB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001373/0.3122, allocations: 0.8459 MB / 397.2 MB, free: 11.9 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.3122, allocations: 0 / 397.2 MB, free: 11.9 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.389e-05/0.3122, allocations: 19.91 kB / 397.2 MB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007617/0.3198, allocations: 5.964 MB / 403.1 MB, free: 5.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.133e-05/0.3198, allocations: 16 kB / 403.2 MB, free: 5.824 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001076/0.3209, allocations: 379.5 kB / 403.5 MB, free: 5.453 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005184/0.3214, allocations: 345.4 kB / 403.9 MB, free: 5.113 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001211/0.3226, allocations: 0.536 MB / 404.4 MB, free: 4.559 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001121/0.3227, allocations: 59.97 kB / 404.5 MB, free: 4.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001836/0.3246, allocations: 2.817 MB / 407.3 MB, free: 1.488 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0005297/0.3251, allocations: 1.354 MB / 408.6 MB, free: 28 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002998/0.3281, allocations: 2.636 MB / 411.3 MB, free: 13.17 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003347/0.3284, allocations: 55.98 kB / 411.3 MB, free: 13.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008066/0.3292, allocations: 51.98 kB / 411.4 MB, free: 13.06 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002227/0.3295, allocations: 184.3 kB / 411.6 MB, free: 12.88 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.121e-05/0.3295, allocations: 71.89 kB / 411.6 MB, free: 12.81 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001118/0.3307, allocations: 1.206 MB / 412.8 MB, free: 11.62 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3307, allocations: 0 / 412.8 MB, free: 11.62 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003795/0.3345, allocations: 1.266 MB / 414.1 MB, free: 10.36 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($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],p2.s,p2.v) * 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 (180): * Single equations (assignments): 173 * 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.0004428/0.3349, allocations: 203.8 kB / 414.3 MB, free: 10.15 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004695/0.3396, allocations: 3.379 MB / 417.7 MB, free: 6.781 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001897/0.3398, allocations: 112.8 kB / 417.8 MB, free: 6.66 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002227/0.342, allocations: 1.691 MB / 419.5 MB, free: 4.879 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002556/0.3446, allocations: 3.072 MB / 422.6 MB, free: 1.367 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1135/0.4581, allocations: 8.808 MB / 431.4 MB, free: 113.3 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001279/0.4593, allocations: 1.334 MB / 432.7 MB, free: 113.1 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001434/0.4608, allocations: 0.534 MB / 433.2 MB, free: 113.1 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008908/0.4617, allocations: 0.5921 MB / 433.8 MB, free: 113 MB / 394.7 MB Notification: Performance of SimCode: time 1.333e-06/0.4617, allocations: 0 / 433.8 MB, free: 113 MB / 394.7 MB Notification: Performance of Templates: time 0.05311/0.5148, allocations: 38.84 MB / 472.7 MB, free: 90.64 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.5745730474591255]