Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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.0009534/0.0009534, allocations: 80.62 kB / 22.21 MB, free: 2.297 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.0008808/0.0008808, allocations: 151 kB / 25.6 MB, free: 8.938 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.8886/0.8886, allocations: 173.4 MB / 202.2 MB, free: 8.301 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.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.02e-07/9.02e-07, allocations: 0 / 269.2 MB, free: 9.758 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.11e-05/1.2e-05, allocations: 5.266 kB / 269.2 MB, free: 9.754 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.007507/0.007519, allocations: 9.69 MB / 278.9 MB, free: 28 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004556/0.01208, allocations: 3.683 MB / 282.6 MB, free: 12.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005819/0.01266, allocations: 67.62 kB / 282.7 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001879/0.01454, allocations: 2.059 MB / 284.7 MB, free: 10.21 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002049/0.01659, allocations: 1.777 MB / 286.5 MB, free: 8.422 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007674/0.01735, allocations: 0.6781 MB / 287.2 MB, free: 7.742 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002868/0.02022, allocations: 3.692 MB / 290.9 MB, free: 4.039 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001893/0.02211, allocations: 2.466 MB / 293.3 MB, free: 1.516 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001615/0.02373, allocations: 1.949 MB / 295.3 MB, free: 15.56 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001512/0.02524, allocations: 1.843 MB / 297.1 MB, free: 13.71 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002805/0.02552, allocations: 260 kB / 297.4 MB, free: 13.46 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001089/0.02661, allocations: 0.9866 MB / 298.4 MB, free: 12.47 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009017/0.02751, allocations: 1.687 MB / 300 MB, free: 10.78 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007771/0.02829, allocations: 1.047 MB / 301.1 MB, free: 9.73 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002644/0.03093, allocations: 3.845 MB / 304.9 MB, free: 5.871 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.03094, allocations: 4 kB / 304.9 MB, free: 5.867 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.03094, allocations: 0 / 304.9 MB, free: 5.867 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.641e-05/0.03098, allocations: 0 / 304.9 MB, free: 5.867 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.003905/0.03489, allocations: 4.273 MB / 309.2 MB, free: 1.531 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.955e-05/0.03492, allocations: 12.03 kB / 309.2 MB, free: 1.52 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002603/0.03752, allocations: 1.286 MB / 310.5 MB, free: 236 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001537/0.03906, allocations: 1.597 MB / 312.1 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.311e-05/0.03915, allocations: 201 kB / 312.3 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002727/0.03943, allocations: 251.8 kB / 312.5 MB, free: 14.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004135/0.04356, allocations: 4.741 MB / 317.3 MB, free: 8.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.091e-05/0.04362, allocations: 43.62 kB / 317.3 MB, free: 8.457 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001934/0.04382, allocations: 123.9 kB / 317.5 MB, free: 8.336 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001179/0.04499, allocations: 1.469 MB / 318.9 MB, free: 6.867 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004327/0.04932, allocations: 2.074 MB / 321 MB, free: 4.785 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1596/0.2089, allocations: 38.41 MB / 359.4 MB, free: 53.78 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00371/0.2126, allocations: 1.31 MB / 360.7 MB, free: 53.6 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000633/0.2133, allocations: 345.9 kB / 361.1 MB, free: 53.54 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005823/0.2191, allocations: 3.25 MB / 364.3 MB, free: 52.47 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.623e-05/0.2191, allocations: 50.36 kB / 364.4 MB, free: 52.43 MB / 330.7 MB Notification: Performance of pre-optimization done (n=103): time 5.43e-06/0.2191, allocations: 0 / 364.4 MB, free: 52.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=104): time 0.008744/0.2279, allocations: 3.105 MB / 367.5 MB, free: 51.95 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.2279, allocations: 141.3 kB / 367.6 MB, free: 51.8 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002951/0.2309, allocations: 3.251 MB / 370.9 MB, free: 51.28 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.414e-05/0.231, allocations: 40.55 kB / 370.9 MB, free: 51.25 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001171/0.2321, allocations: 3.112 MB / 374 MB, free: 49.52 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003778/0.2325, allocations: 474.2 kB / 374.5 MB, free: 49.28 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000954/0.2335, allocations: 1.191 MB / 375.7 MB, free: 49.14 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.581e-05/0.2335, allocations: 476.8 kB / 376.1 MB, free: 48.67 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001168/0.2347, allocations: 449 kB / 376.6 MB, free: 48.66 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002619/0.2373, allocations: 5.71 MB / 382.3 MB, free: 41.82 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003984/0.2413, allocations: 6.761 MB / 389 MB, free: 34.88 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000117/0.2414, allocations: 36 kB / 389.1 MB, free: 34.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=691) (initialization): time 0.006539/0.2479, allocations: 4.229 MB / 393.3 MB, free: 31.2 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.428e-05/0.248, allocations: 60.22 kB / 393.4 MB, free: 31.14 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001282/0.2481, allocations: 128 kB / 393.5 MB, free: 31.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001023/0.2482, allocations: 168 kB / 393.6 MB, free: 30.86 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002508/0.2507, allocations: 1.213 MB / 394.9 MB, free: 29.78 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001317/0.2509, allocations: 247.8 kB / 395.1 MB, free: 29.56 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003049/0.2539, allocations: 243.7 kB / 395.3 MB, free: 29.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004614/0.2544, allocations: 288 kB / 395.6 MB, free: 29.04 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 575 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[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],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (667): * Single equations (assignments): 664 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001323/0.2557, allocations: 0.6215 MB / 396.2 MB, free: 28.41 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00074/0.2565, allocations: 306.1 kB / 396.5 MB, free: 28.11 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001225/0.2577, allocations: 0.5566 MB / 397.1 MB, free: 27.63 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.707e-05/0.2577, allocations: 12 kB / 397.1 MB, free: 27.62 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.2577, allocations: 0 / 397.1 MB, free: 27.62 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.2577, allocations: 3.75 kB / 397.1 MB, free: 27.62 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00451/0.2622, allocations: 2.402 MB / 399.5 MB, free: 25.15 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/0.2622, allocations: 4 kB / 399.5 MB, free: 25.14 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003428/0.2626, allocations: 123.8 kB / 399.6 MB, free: 25.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002207/0.2628, allocations: 43.62 kB / 399.7 MB, free: 24.98 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.109e-05/0.2628, allocations: 20 kB / 399.7 MB, free: 24.96 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000955/0.2638, allocations: 1.792 MB / 401.5 MB, free: 23.06 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2638, allocations: 4 kB / 401.5 MB, free: 23.05 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001398/0.2652, allocations: 1.46 MB / 403 MB, free: 21.55 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004691/0.2657, allocations: 262 kB / 403.2 MB, free: 21.29 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001929/0.2659, allocations: 15.12 kB / 403.2 MB, free: 21.28 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000467/0.2663, allocations: 19.94 kB / 403.2 MB, free: 21.26 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.049e-05/0.2664, allocations: 55.97 kB / 403.3 MB, free: 21.2 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.484e-05/0.2665, allocations: 31.97 kB / 403.3 MB, free: 21.17 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001204/0.2677, allocations: 1.285 MB / 404.6 MB, free: 19.89 MB / 330.7 MB Notification: Performance of sort global known variables: time 2e-07/0.2677, allocations: 0 / 404.6 MB, free: 19.89 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.004095/0.2718, allocations: 0.8161 MB / 405.4 MB, free: 19.08 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (rev.w,damper.phi_rel) * 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 (78): * Single equations (assignments): 74 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000426/0.2722, allocations: 163 kB / 405.6 MB, free: 18.91 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003033/0.2752, allocations: 2.098 MB / 407.7 MB, free: 16.83 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.707e-06/0.2752, allocations: 0 / 407.7 MB, free: 16.83 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005466/0.2758, allocations: 442.8 kB / 408.1 MB, free: 16.38 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001612/0.2774, allocations: 336.9 kB / 408.4 MB, free: 16.07 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008259/0.2856, allocations: 5.789 MB / 414.2 MB, free: 10.19 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007756/0.2864, allocations: 0.9933 MB / 415.2 MB, free: 9.18 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001099/0.2875, allocations: 427.5 kB / 415.6 MB, free: 8.762 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005106/0.288, allocations: 0.502 MB / 416.2 MB, free: 8.258 MB / 330.7 MB Notification: Performance of SimCode: time 2.435e-06/0.288, allocations: 0 / 416.2 MB, free: 8.258 MB / 330.7 MB Notification: Performance of Templates: time 0.04162/0.3296, allocations: 22.57 MB / 438.7 MB, free: 2.195 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.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.87230973970145]