Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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.001913/0.001913, allocations: 99.53 kB / 21.73 MB, free: 2.691 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.001906/0.001906, allocations: 164.6 kB / 25.03 MB, free: 8.41 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.315/1.315, allocations: 158.6 MB / 186.8 MB, free: 2.922 MB / 170.7 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 0 / 250.4 MB, free: 7.832 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.669e-05/3.846e-05, allocations: 6.25 kB / 250.4 MB, free: 7.824 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01446/0.0145, allocations: 9.938 MB / 260.3 MB, free: 13.84 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01016/0.02466, allocations: 3.694 MB / 264 MB, free: 10.13 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002018/0.02667, allocations: 71.62 kB / 264.1 MB, free: 10.06 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004635/0.03131, allocations: 2.087 MB / 266.2 MB, free: 7.969 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00527/0.03658, allocations: 1.769 MB / 267.9 MB, free: 6.191 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001774/0.03835, allocations: 0.6586 MB / 268.6 MB, free: 5.531 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.006007/0.04436, allocations: 3.707 MB / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004077/0.04844, allocations: 2.485 MB / 274.8 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004284/0.05272, allocations: 1.918 MB / 276.7 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003899/0.05662, allocations: 1.859 MB / 278.6 MB, free: 11.49 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006955/0.05732, allocations: 260 kB / 278.8 MB, free: 11.24 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002237/0.05955, allocations: 0.9867 MB / 279.8 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002372/0.06193, allocations: 1.699 MB / 281.5 MB, free: 8.547 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002662/0.06459, allocations: 1.051 MB / 282.6 MB, free: 7.492 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009959/0.07455, allocations: 5.883 MB / 288.4 MB, free: 1.59 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.496e-06/0.07456, allocations: 0 / 288.4 MB, free: 1.59 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.714e-06/0.07456, allocations: 3.938 kB / 288.4 MB, free: 1.586 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000225/0.07478, allocations: 0 / 288.4 MB, free: 1.586 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.01144/0.08622, allocations: 4.761 MB / 293.2 MB, free: 12.76 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.526e-05/0.08627, allocations: 11.98 kB / 293.2 MB, free: 12.75 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008061/0.09433, allocations: 2.194 MB / 295.4 MB, free: 10.55 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005232/0.09956, allocations: 1.753 MB / 297.2 MB, free: 8.746 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002341/0.09979, allocations: 197 kB / 297.4 MB, free: 8.551 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009358/0.1007, allocations: 247.8 kB / 297.6 MB, free: 8.309 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01385/0.1146, allocations: 5.624 MB / 303.2 MB, free: 1.785 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000141/0.1147, allocations: 47.62 kB / 303.3 MB, free: 1.738 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003924/0.1151, allocations: 119.9 kB / 303.4 MB, free: 1.621 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003335/0.1184, allocations: 1.707 MB / 305.1 MB, free: 15.91 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01065/0.1291, allocations: 3.034 MB / 308.1 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05785/0.187, allocations: 41.71 MB / 349.8 MB, free: 1.848 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007186/0.1941, allocations: 1.671 MB / 351.5 MB, free: 116 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1161/0.3102, allocations: 0.5035 MB / 352 MB, free: 99.37 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006031/0.3163, allocations: 3.217 MB / 355.2 MB, free: 98.28 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.907e-05/0.3163, allocations: 49.39 kB / 355.3 MB, free: 98.24 MB / 330.7 MB Notification: Performance of pre-optimization done (n=121): time 3.717e-06/0.3163, allocations: 3.828 kB / 355.3 MB, free: 98.24 MB / 330.7 MB Notification: Performance of matching and sorting (n=129): time 0.02312/0.3394, allocations: 8.657 MB / 363.9 MB, free: 95.95 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.253e-05/0.3395, allocations: 144.9 kB / 364.1 MB, free: 95.8 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004062/0.3435, allocations: 3.982 MB / 368.1 MB, free: 93.72 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.988e-05/0.3436, allocations: 45.64 kB / 368.1 MB, free: 93.67 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001328/0.345, allocations: 3.192 MB / 371.3 MB, free: 90.55 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004485/0.3454, allocations: 0.5917 MB / 371.9 MB, free: 89.97 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00129/0.3467, allocations: 1.362 MB / 373.3 MB, free: 88.6 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.712e-05/0.3468, allocations: 480.7 kB / 373.7 MB, free: 88.13 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00107/0.3478, allocations: 0.6038 MB / 374.3 MB, free: 87.52 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002539/0.3504, allocations: 5.851 MB / 380.2 MB, free: 79.32 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004304/0.3547, allocations: 7.096 MB / 387.3 MB, free: 69.91 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.364e-05/0.3547, allocations: 36 kB / 387.3 MB, free: 69.87 MB / 330.7 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.006393/0.3611, allocations: 4.763 MB / 392.1 MB, free: 65.1 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.263e-05/0.3612, allocations: 64.03 kB / 392.1 MB, free: 65.04 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.074e-05/0.3613, allocations: 120 kB / 392.3 MB, free: 64.92 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006749/0.3619, allocations: 340.3 kB / 392.6 MB, free: 64.58 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003056/0.365, allocations: 1.244 MB / 393.8 MB, free: 63.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001725/0.3667, allocations: 2.481 MB / 396.3 MB, free: 60.74 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003197/0.3699, allocations: 323.6 kB / 396.6 MB, free: 60.42 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003567/0.3703, allocations: 334.2 kB / 397 MB, free: 60.1 MB / 330.7 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.001176/0.3715, allocations: 0.6888 MB / 397.6 MB, free: 59.4 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004454/0.3719, allocations: 322 kB / 398 MB, free: 59.08 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003204/0.3751, allocations: 1.358 MB / 399.3 MB, free: 57.7 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.107e-05/0.3751, allocations: 17.95 kB / 399.3 MB, free: 57.68 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.293e-06/0.3751, allocations: 4 kB / 399.3 MB, free: 57.68 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.3751, allocations: 7.969 kB / 399.3 MB, free: 57.67 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009251/0.3844, allocations: 4.996 MB / 404.3 MB, free: 52.64 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.3844, allocations: 0 / 404.3 MB, free: 52.64 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000744/0.3851, allocations: 171.8 kB / 404.5 MB, free: 52.47 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002053/0.3872, allocations: 460.9 kB / 405 MB, free: 52.02 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001203/0.3873, allocations: 20 kB / 405 MB, free: 52 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003369/0.3907, allocations: 3.019 MB / 408 MB, free: 48.87 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.3907, allocations: 4 kB / 408 MB, free: 48.87 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004144/0.3948, allocations: 2.398 MB / 410.4 MB, free: 46.43 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001156/0.396, allocations: 433.8 kB / 410.8 MB, free: 46.01 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003009/0.3963, allocations: 23.98 kB / 410.8 MB, free: 45.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00113/0.3974, allocations: 103.8 kB / 410.9 MB, free: 45.88 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001795/0.3976, allocations: 68.53 kB / 411 MB, free: 45.81 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.558e-05/0.3977, allocations: 39.42 kB / 411 MB, free: 45.78 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00205/0.3997, allocations: 1.628 MB / 412.7 MB, free: 44.15 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.3997, allocations: 7.969 kB / 412.7 MB, free: 44.14 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003751/0.4035, allocations: 0.8944 MB / 413.6 MB, free: 43.25 MB / 330.7 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.0003705/0.4039, allocations: 174.6 kB / 413.7 MB, free: 43.07 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004026/0.4079, allocations: 2.815 MB / 416.6 MB, free: 40.25 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.656e-06/0.4079, allocations: 4 kB / 416.6 MB, free: 40.25 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008601/0.4087, allocations: 0.6709 MB / 417.2 MB, free: 39.56 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001813/0.4106, allocations: 351.1 kB / 417.6 MB, free: 39.23 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007963/0.4185, allocations: 6.045 MB / 423.6 MB, free: 33.11 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001773/0.4203, allocations: 2.035 MB / 425.7 MB, free: 31.06 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.00279/0.4231, allocations: 1.392 MB / 427.1 MB, free: 29.66 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005601/0.4236, allocations: 200.5 kB / 427.3 MB, free: 29.46 MB / 330.7 MB Notification: Performance of SimCode: time 1.413e-06/0.4236, allocations: 0 / 427.3 MB, free: 29.46 MB / 330.7 MB Notification: Performance of Templates: time 0.04426/0.4679, allocations: 26.09 MB / 453.3 MB, free: 3.426 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 6.002204103977419]