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.001129/0.001129, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001624/0.002753, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.001012/0.001012, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001366/0.002378, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.8472/0.8472, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1341/0.9813, allocations: 52.49 MB / 238.5 MB, free: 7.621 MB / 234.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 1.182e-06/1.182e-06, allocations: 0 / 239.7 MB, free: 6.348 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.067e-06/1.025e-05, allocations: 2.312 kB / 239.7 MB, free: 6.344 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.006871/0.006881, allocations: 9.825 MB / 249.6 MB, free: 12.49 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005153/0.01203, allocations: 3.835 MB / 253.4 MB, free: 8.664 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006559/0.01269, allocations: 63.69 kB / 253.5 MB, free: 8.602 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00185/0.01454, allocations: 1.995 MB / 255.5 MB, free: 6.602 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002111/0.01665, allocations: 1.737 MB / 257.2 MB, free: 4.863 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007625/0.01741, allocations: 0.6157 MB / 257.8 MB, free: 4.246 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002372/0.01979, allocations: 3.571 MB / 261.4 MB, free: 0.668 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001391/0.02118, allocations: 2.259 MB / 263.7 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001336/0.02251, allocations: 2.03 MB / 265.7 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001261/0.02377, allocations: 1.742 MB / 267.4 MB, free: 10.56 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000256/0.02403, allocations: 256 kB / 267.7 MB, free: 10.31 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001042/0.02507, allocations: 1.006 MB / 268.7 MB, free: 9.305 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00115/0.02622, allocations: 1.52 MB / 270.2 MB, free: 7.781 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00116/0.02738, allocations: 0.8607 MB / 271.1 MB, free: 6.918 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003263/0.03065, allocations: 3.588 MB / 274.6 MB, free: 3.316 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.146e-05/0.03066, allocations: 0 / 274.6 MB, free: 3.316 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.03066, allocations: 0 / 274.6 MB, free: 3.316 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.876e-05/0.03073, allocations: 0 / 274.6 MB, free: 3.316 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.004121/0.03485, allocations: 4.564 MB / 279.2 MB, free: 14.68 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.098e-05/0.03488, allocations: 12.03 kB / 279.2 MB, free: 14.67 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002162/0.03704, allocations: 0.9411 MB / 280.2 MB, free: 13.73 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001652/0.03869, allocations: 1.468 MB / 281.6 MB, free: 12.21 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.301e-05/0.03879, allocations: 193 kB / 281.8 MB, free: 12.02 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002796/0.03907, allocations: 255.9 kB / 282.1 MB, free: 11.77 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004008/0.04307, allocations: 4.213 MB / 286.3 MB, free: 6.887 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.782e-05/0.04314, allocations: 39.67 kB / 286.3 MB, free: 6.848 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001941/0.04334, allocations: 127.9 kB / 286.4 MB, free: 6.723 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001137/0.04447, allocations: 1.376 MB / 287.8 MB, free: 5.34 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003091/0.04756, allocations: 2.107 MB / 289.9 MB, free: 3.211 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01792/0.06548, allocations: 27.42 MB / 317.3 MB, free: 6.734 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002417/0.0679, allocations: 1.247 MB / 318.6 MB, free: 5.438 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003013/0.0682, allocations: 268.6 kB / 318.9 MB, free: 5.156 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00356/0.07176, allocations: 2.977 MB / 321.8 MB, free: 2.152 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.761e-05/0.07179, allocations: 47 kB / 321.9 MB, free: 2.098 MB / 314.7 MB Notification: Performance of pre-optimization done (n=103): time 2.565e-06/0.07179, allocations: 0 / 321.9 MB, free: 2.098 MB / 314.7 MB Notification: Performance of matching and sorting (n=104): time 0.005577/0.07737, allocations: 2.627 MB / 324.5 MB, free: 15.43 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.156e-05/0.07742, allocations: 141 kB / 324.6 MB, free: 15.26 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002274/0.07969, allocations: 2.907 MB / 327.6 MB, free: 12.33 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.453e-05/0.07975, allocations: 41.7 kB / 327.6 MB, free: 12.29 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001019/0.08077, allocations: 2.758 MB / 330.4 MB, free: 9.492 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002467/0.08101, allocations: 468.6 kB / 330.8 MB, free: 9.031 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006872/0.0817, allocations: 1.009 MB / 331.8 MB, free: 8.012 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.969e-05/0.08176, allocations: 305.1 kB / 332.1 MB, free: 7.711 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007686/0.08253, allocations: 0.6152 MB / 332.7 MB, free: 7.09 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002259/0.08479, allocations: 4.012 MB / 336.7 MB, free: 1.289 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1111/0.1959, allocations: 5.516 MB / 342.3 MB, free: 62.53 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.241e-05/0.1959, allocations: 35.78 kB / 342.3 MB, free: 62.53 MB / 330.7 MB Notification: Performance of matching and sorting (n=691) (initialization): time 0.005005/0.2009, allocations: 3.592 MB / 345.9 MB, free: 62.22 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.711e-05/0.201, allocations: 59.34 kB / 345.9 MB, free: 62.22 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001676/0.2012, allocations: 132.5 kB / 346.1 MB, free: 62.22 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001424/0.2013, allocations: 165.1 kB / 346.2 MB, free: 62.22 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0028/0.2041, allocations: 1.358 MB / 347.6 MB, free: 62.11 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001684/0.2043, allocations: 245.2 kB / 347.8 MB, free: 62.05 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00295/0.2072, allocations: 247.5 kB / 348.1 MB, free: 62.05 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002807/0.2075, allocations: 297.3 kB / 348.4 MB, free: 62.05 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.0008896/0.2084, allocations: 0.5566 MB / 348.9 MB, free: 61.81 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002722/0.2087, allocations: 164.3 kB / 349.1 MB, free: 61.81 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006333/0.2093, allocations: 0.5074 MB / 349.6 MB, free: 61.73 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-05/0.2093, allocations: 17.59 kB / 349.6 MB, free: 61.72 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.2093, allocations: 0 / 349.6 MB, free: 61.72 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.2093, allocations: 4.984 kB / 349.6 MB, free: 61.72 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002487/0.2118, allocations: 2.189 MB / 351.8 MB, free: 61.25 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/0.2118, allocations: 12.36 kB / 351.8 MB, free: 61.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003265/0.2122, allocations: 142.3 kB / 352 MB, free: 61.25 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002252/0.2124, allocations: 250.2 kB / 352.2 MB, free: 61.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001564/0.2125, allocations: 52.2 kB / 352.2 MB, free: 61.23 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.859e-05/0.2126, allocations: 13.58 kB / 352.3 MB, free: 61.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007336/0.2133, allocations: 1.418 MB / 353.7 MB, free: 60.05 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.2133, allocations: 11.5 kB / 353.7 MB, free: 60.05 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008196/0.2141, allocations: 1.216 MB / 354.9 MB, free: 59.4 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001504/0.2143, allocations: 25.59 kB / 354.9 MB, free: 59.39 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004038/0.2147, allocations: 12.5 kB / 354.9 MB, free: 59.39 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.312e-05/0.2148, allocations: 53.81 kB / 355 MB, free: 59.39 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-05/0.2148, allocations: 28.14 kB / 355 MB, free: 59.39 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007184/0.2155, allocations: 1.031 MB / 356.1 MB, free: 59.3 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2155, allocations: 0.7656 kB / 356.1 MB, free: 59.3 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002156/0.2177, allocations: 0.8118 MB / 356.9 MB, free: 59.3 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.0002712/0.2179, allocations: 159.8 kB / 357 MB, free: 59.22 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001837/0.2198, allocations: 2.038 MB / 359.1 MB, free: 58.95 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001277/0.2199, allocations: 97.88 kB / 359.2 MB, free: 58.93 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000424/0.2203, allocations: 404.5 kB / 359.6 MB, free: 58.79 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001818/0.2221, allocations: 2.664 MB / 362.2 MB, free: 56.85 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01015/0.2323, allocations: 5.874 MB / 368.1 MB, free: 52.19 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007323/0.233, allocations: 0.9865 MB / 369.1 MB, free: 51.67 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001019/0.234, allocations: 423.1 kB / 369.5 MB, free: 51.36 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005009/0.2345, allocations: 464 kB / 369.9 MB, free: 50.95 MB / 330.7 MB Notification: Performance of SimCode: time 1.373e-06/0.2345, allocations: 0 / 369.9 MB, free: 50.95 MB / 330.7 MB Notification: Performance of Templates: time 0.03002/0.2646, allocations: 21.01 MB / 391 MB, free: 31.29 MB / 330.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8996527018025517]