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.001363/0.001363, allocations: 81.73 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001419/0.001419, allocations: 145.3 kB / 23.93 MB, free: 4.168 MB / 14.72 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.426/1.426, allocations: 173.4 MB / 200.4 MB, free: 12.87 MB / 190.1 MB " [Timeout remaining time 178] 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 2.234e-06/2.234e-06, allocations: 0 / 318.9 MB, free: 3.547 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.525e-05/2.748e-05, allocations: 5.375 kB / 318.9 MB, free: 3.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.009901/0.009928, allocations: 9.009 MB / 327.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008498/0.01843, allocations: 3.608 MB / 331.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001898/0.02033, allocations: 70.69 kB / 331.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004777/0.0251, allocations: 2 MB / 333.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005058/0.03016, allocations: 1.762 MB / 335.4 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001739/0.0319, allocations: 0.6555 MB / 336 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005474/0.03737, allocations: 3.687 MB / 339.7 MB, free: 6.715 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004763/0.04214, allocations: 2.392 MB / 342.1 MB, free: 4.395 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00482/0.04696, allocations: 1.894 MB / 344 MB, free: 2.496 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003322/0.05028, allocations: 1.824 MB / 345.8 MB, free: 0.668 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00081/0.05109, allocations: 260 kB / 346.1 MB, free: 424 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002559/0.05365, allocations: 0.9788 MB / 347.1 MB, free: 15.43 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00229/0.05594, allocations: 1.687 MB / 348.8 MB, free: 13.74 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002403/0.05834, allocations: 1.047 MB / 349.8 MB, free: 12.69 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007755/0.06609, allocations: 5.856 MB / 355.7 MB, free: 6.816 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.0661, allocations: 3.984 kB / 355.7 MB, free: 6.812 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.0661, allocations: 4 kB / 355.7 MB, free: 6.809 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000195/0.0663, allocations: 4 kB / 355.7 MB, free: 6.805 MB / 318.1 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.009796/0.07609, allocations: 4.069 MB / 359.7 MB, free: 2.68 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.07614, allocations: 8.031 kB / 359.7 MB, free: 2.672 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007171/0.08331, allocations: 1.827 MB / 361.6 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004226/0.08753, allocations: 1.852 MB / 363.4 MB, free: 14.94 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002097/0.08774, allocations: 196.9 kB / 363.6 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008108/0.08855, allocations: 251.9 kB / 363.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01667/0.1052, allocations: 8.46 MB / 372.3 MB, free: 5.371 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000153/0.1054, allocations: 35.73 kB / 372.4 MB, free: 5.336 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007118/0.1061, allocations: 123.9 kB / 372.5 MB, free: 5.215 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003331/0.1094, allocations: 1.707 MB / 374.2 MB, free: 3.508 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01606/0.1255, allocations: 7.075 MB / 381.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04946/0.1749, allocations: 32.22 MB / 413.5 MB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008501/0.1834, allocations: 2.813 MB / 416.3 MB, free: 8.363 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002434/0.1859, allocations: 1.357 MB / 417.7 MB, free: 6.992 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008116/0.194, allocations: 3.446 MB / 421.1 MB, free: 3.512 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.504e-05/0.194, allocations: 51.16 kB / 421.2 MB, free: 3.453 MB / 382.1 MB Notification: Performance of pre-optimization done (n=121): time 3.677e-06/0.194, allocations: 0 / 421.2 MB, free: 3.453 MB / 382.1 MB Notification: Performance of matching and sorting (n=129): time 0.03518/0.2292, allocations: 11.86 MB / 433 MB, free: 7.52 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/0.2293, allocations: 145.1 kB / 433.1 MB, free: 7.348 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0069/0.2362, allocations: 3.514 MB / 436.7 MB, free: 3.82 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003611/0.2366, allocations: 45.69 kB / 436.7 MB, free: 3.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002688/0.2393, allocations: 2.851 MB / 439.6 MB, free: 0.8906 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000969/0.2403, allocations: 0.5351 MB / 440.1 MB, free: 360 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002184/0.2424, allocations: 1.068 MB / 441.2 MB, free: 15.27 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.2426, allocations: 308.9 kB / 441.5 MB, free: 14.97 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003038/0.2456, allocations: 1.709 MB / 443.2 MB, free: 13.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006508/0.2521, allocations: 5.124 MB / 448.3 MB, free: 6.402 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01027/0.2624, allocations: 7.412 MB / 455.7 MB, free: 13.28 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001511/0.2626, allocations: 36 kB / 455.7 MB, free: 13.25 MB / 430.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01441/0.277, allocations: 6.7 MB / 462.4 MB, free: 6.539 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001878/0.2772, allocations: 63.94 kB / 462.5 MB, free: 6.477 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002423/0.2774, allocations: 120 kB / 462.6 MB, free: 6.359 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008571/0.2783, allocations: 320.7 kB / 462.9 MB, free: 6.043 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004738/0.283, allocations: 1.244 MB / 464.2 MB, free: 4.797 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003195/0.2862, allocations: 2.355 MB / 466.5 MB, free: 2.34 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004012/0.2902, allocations: 323.6 kB / 466.9 MB, free: 2.023 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009234/0.2911, allocations: 328 kB / 467.2 MB, free: 1.703 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * 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 (668): * 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: 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.1624/0.4535, allocations: 1.779 MB / 469 MB, free: 125.4 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007422/0.4543, allocations: 284.9 kB / 469.2 MB, free: 125.4 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004928/0.4592, allocations: 2.319 MB / 471.5 MB, free: 125.4 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.696e-05/0.4592, allocations: 15.66 kB / 471.6 MB, free: 125.4 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.4593, allocations: 3.844 kB / 471.6 MB, free: 125.4 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.842e-05/0.4593, allocations: 15.7 kB / 471.6 MB, free: 125.4 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01032/0.4696, allocations: 5.16 MB / 476.7 MB, free: 123.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/0.4696, allocations: 1.375 kB / 476.7 MB, free: 123.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008201/0.4704, allocations: 177 kB / 476.9 MB, free: 123.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002241/0.4727, allocations: 0.7155 MB / 477.6 MB, free: 123.6 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.363e-05/0.4728, allocations: 25.11 kB / 477.7 MB, free: 123.6 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005366/0.4781, allocations: 4.701 MB / 482.4 MB, free: 121 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.4781, allocations: 1.25 kB / 482.4 MB, free: 121 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006181/0.4843, allocations: 4.292 MB / 486.7 MB, free: 119.4 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006957/0.485, allocations: 276.9 kB / 486.9 MB, free: 119.4 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005113/0.4855, allocations: 22.84 kB / 486.9 MB, free: 119.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001647/0.4872, allocations: 93.47 kB / 487 MB, free: 119.3 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002298/0.4874, allocations: 78.28 kB / 487.1 MB, free: 119.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.93e-05/0.4875, allocations: 43.66 kB / 487.2 MB, free: 119.3 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003154/0.4906, allocations: 2.035 MB / 489.2 MB, free: 118.6 MB / 430.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4906, allocations: 0 / 489.2 MB, free: 118.6 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003981/0.4946, allocations: 0.8895 MB / 490.1 MB, free: 118.5 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (96): * Single equations (assignments): 92 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004783/0.4951, allocations: 176.7 kB / 490.3 MB, free: 118.4 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004955/0.5001, allocations: 3.891 MB / 494.1 MB, free: 117.1 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.5001, allocations: 0 / 494.1 MB, free: 117.1 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001234/0.5013, allocations: 1.029 MB / 495.2 MB, free: 116.6 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002133/0.5034, allocations: 348.5 kB / 495.5 MB, free: 116.5 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0101/0.5135, allocations: 7.301 MB / 0.491 GB, free: 112 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002784/0.5163, allocations: 2.234 MB / 0.4932 GB, free: 109.8 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002926/0.5192, allocations: 1.611 MB / 0.4948 GB, free: 108.1 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005488/0.5198, allocations: 204.5 kB / 0.495 GB, free: 107.9 MB / 430.1 MB Notification: Performance of SimCode: time 7.31e-07/0.5198, allocations: 0 / 0.495 GB, free: 107.9 MB / 430.1 MB Notification: Performance of Templates: time 0.04409/0.5639, allocations: 25.75 MB / 0.5201 GB, free: 82.68 MB / 430.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.896352734416723]