Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.001185/0.001185, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001415/0.001415, allocations: 163.9 kB / 25.61 MB, free: 8.582 MB / 18.57 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 1.017/1.017, allocations: 177.2 MB / 206.1 MB, free: 4.469 MB / 186.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.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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.784e-06/1.784e-06, allocations: 0 / 274.2 MB, free: 4.398 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.025e-05/3.203e-05, allocations: 6.25 kB / 274.2 MB, free: 4.391 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.009319/0.009351, allocations: 7.032 MB / 281.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007429/0.01678, allocations: 3.161 MB / 284.4 MB, free: 10.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001295/0.01808, allocations: 43.81 kB / 284.4 MB, free: 10.13 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002371/0.02045, allocations: 1.082 MB / 285.5 MB, free: 9.047 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003592/0.02404, allocations: 1.427 MB / 287 MB, free: 7.613 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001064/0.0251, allocations: 0.491 MB / 287.4 MB, free: 7.121 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003621/0.02872, allocations: 3.03 MB / 290.5 MB, free: 4.086 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002085/0.03081, allocations: 1.625 MB / 292.1 MB, free: 2.43 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001886/0.03269, allocations: 1.317 MB / 293.4 MB, free: 1.109 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002171/0.03486, allocations: 1.426 MB / 294.8 MB, free: 15.68 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004011/0.03527, allocations: 172 kB / 295 MB, free: 15.51 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001832/0.0371, allocations: 0.967 MB / 296 MB, free: 14.54 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001356/0.03845, allocations: 1.165 MB / 297.1 MB, free: 13.38 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009859/0.03944, allocations: 0.728 MB / 297.9 MB, free: 12.64 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003888/0.04333, allocations: 2.969 MB / 300.8 MB, free: 9.664 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.545e-06/0.04333, allocations: 0 / 300.8 MB, free: 9.664 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.04334, allocations: 0 / 300.8 MB, free: 9.664 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.71e-05/0.04339, allocations: 0 / 300.8 MB, free: 9.664 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.003412/0.0468, allocations: 3.176 MB / 304 MB, free: 6.438 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.371e-05/0.04684, allocations: 12.03 kB / 304 MB, free: 6.426 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003594/0.05043, allocations: 1.216 MB / 305.2 MB, free: 5.207 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001552/0.05198, allocations: 1.128 MB / 306.4 MB, free: 4.051 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.483e-05/0.05208, allocations: 135.4 kB / 306.5 MB, free: 3.918 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005192/0.0526, allocations: 247.6 kB / 306.7 MB, free: 3.676 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005153/0.05775, allocations: 3.736 MB / 310.5 MB, free: 15.3 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.408e-05/0.05782, allocations: 35.62 kB / 310.5 MB, free: 15.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002263/0.05804, allocations: 87.89 kB / 310.6 MB, free: 15.18 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00149/0.05953, allocations: 1.195 MB / 311.8 MB, free: 13.99 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004494/0.06403, allocations: 1.984 MB / 313.8 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02316/0.08719, allocations: 28.21 MB / 342 MB, free: 14.86 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003961/0.09115, allocations: 1.287 MB / 343.3 MB, free: 13.52 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004913/0.09164, allocations: 308.7 kB / 343.6 MB, free: 13.2 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003543/0.09518, allocations: 2.426 MB / 346 MB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.646e-05/0.09522, allocations: 53.88 kB / 346.1 MB, free: 10.68 MB / 330.7 MB Notification: Performance of pre-optimization done (n=112): time 4.308e-06/0.09522, allocations: 0 / 346.1 MB, free: 10.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=125): time 0.01431/0.1095, allocations: 4.732 MB / 350.8 MB, free: 5.879 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001026/0.1106, allocations: 2.004 MB / 352.8 MB, free: 3.711 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0021/0.1127, allocations: 2.434 MB / 355.2 MB, free: 1.234 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.352e-05/0.1128, allocations: 45.69 kB / 355.3 MB, free: 1.184 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1398/0.2526, allocations: 2.31 MB / 357.6 MB, free: 79.01 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009273/0.2535, allocations: 0.5461 MB / 358.1 MB, free: 78.77 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001549/0.255, allocations: 1.012 MB / 359.1 MB, free: 78.65 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.2552, allocations: 0.5316 MB / 359.7 MB, free: 78.17 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001137/0.2563, allocations: 0.4942 MB / 360.2 MB, free: 78.15 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002308/0.2586, allocations: 4.672 MB / 364.8 MB, free: 72.77 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003632/0.2623, allocations: 5.71 MB / 370.5 MB, free: 67.37 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.425e-05/0.2623, allocations: 27.38 kB / 370.6 MB, free: 67.37 MB / 330.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.008062/0.2704, allocations: 4.322 MB / 374.9 MB, free: 66.41 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.39e-05/0.2704, allocations: 47.97 kB / 374.9 MB, free: 66.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004153/0.2746, allocations: 1.188 MB / 376.1 MB, free: 66.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004928/0.2795, allocations: 0.8515 MB / 377 MB, free: 66.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003909/0.2834, allocations: 0.977 MB / 378 MB, free: 66.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006843/0.2903, allocations: 5.213 MB / 383.2 MB, free: 62.08 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003557/0.2938, allocations: 212.6 kB / 383.4 MB, free: 61.89 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003708/0.2942, allocations: 247.3 kB / 383.6 MB, free: 61.66 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.0008151/0.295, allocations: 0.5236 MB / 384.1 MB, free: 61.2 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002796/0.2953, allocations: 253.5 kB / 384.4 MB, free: 60.95 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002344/0.2955, allocations: 270.6 kB / 384.7 MB, free: 60.71 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001998/0.2975, allocations: 0.9516 MB / 385.6 MB, free: 60.06 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.2975, allocations: 10.88 kB / 385.6 MB, free: 60.05 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.2975, allocations: 3.656 kB / 385.6 MB, free: 60.05 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007388/0.3049, allocations: 3.7 MB / 389.3 MB, free: 57.04 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.794e-06/0.3049, allocations: 4 kB / 389.3 MB, free: 57.03 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004173/0.3053, allocations: 135.8 kB / 389.5 MB, free: 56.9 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001916/0.3073, allocations: 0.6654 MB / 390.1 MB, free: 56.22 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.082e-05/0.3073, allocations: 30.09 kB / 390.1 MB, free: 56.2 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003271/0.3106, allocations: 4.934 MB / 395.1 MB, free: 51.1 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0004064/0.311, allocations: 1.862 MB / 396.9 MB, free: 49.12 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003001/0.314, allocations: 2.187 MB / 399.1 MB, free: 46.91 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003273/0.3143, allocations: 215.8 kB / 399.3 MB, free: 46.71 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001601/0.3145, allocations: 21.88 kB / 399.4 MB, free: 46.69 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005595/0.3151, allocations: 23.98 kB / 399.4 MB, free: 46.67 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001688/0.3152, allocations: 92.36 kB / 399.5 MB, free: 46.58 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.768e-05/0.3153, allocations: 27.98 kB / 399.5 MB, free: 46.55 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007549/0.316, allocations: 0.9641 MB / 400.5 MB, free: 45.66 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.316, allocations: 0 / 400.5 MB, free: 45.66 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002968/0.319, allocations: 0.8484 MB / 401.3 MB, free: 44.82 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.0002766/0.3193, allocations: 175.5 kB / 401.5 MB, free: 44.65 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003062/0.3223, allocations: 2.595 MB / 404.1 MB, free: 42.09 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.3224, allocations: 0 / 404.1 MB, free: 42.09 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001092/0.3234, allocations: 0.9556 MB / 405 MB, free: 41.11 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009406/0.3244, allocations: 267.8 kB / 405.3 MB, free: 40.87 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005141/0.3295, allocations: 5.17 MB / 410.5 MB, free: 35.65 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005361/0.3301, allocations: 0.7878 MB / 411.3 MB, free: 34.84 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007305/0.3308, allocations: 333.8 kB / 411.6 MB, free: 34.5 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004466/0.3312, allocations: 421.7 kB / 412 MB, free: 34.09 MB / 330.7 MB Notification: Performance of SimCode: time 1.413e-06/0.3312, allocations: 0 / 412 MB, free: 34.09 MB / 330.7 MB Notification: Performance of Templates: time 0.03636/0.3676, allocations: 31.4 MB / 443.4 MB, free: 3.023 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.934865213930607]