Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.0009897/0.0009897, allocations: 80.92 kB / 21.49 MB, free: 2.992 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.0009129/0.0009129, allocations: 167.9 kB / 24.91 MB, free: 9.184 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 0.9023/0.9023, allocations: 177.1 MB / 205.3 MB, free: 5.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.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.933e-06/1.933e-06, allocations: 0 / 273.5 MB, free: 1.238 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.198e-05/2.391e-05, allocations: 2.312 kB / 273.5 MB, free: 1.234 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.00801/0.008034, allocations: 10.12 MB / 283.6 MB, free: 7.066 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006961/0.01499, allocations: 3.935 MB / 287.6 MB, free: 3.121 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001056/0.01605, allocations: 75.62 kB / 287.6 MB, free: 3.047 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002389/0.01844, allocations: 2.347 MB / 290 MB, free: 0.6914 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.108/0.1265, allocations: 1.892 MB / 291.9 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001123/0.1276, allocations: 0.7938 MB / 292.7 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004252/0.1318, allocations: 5.002 MB / 297.7 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002686/0.1345, allocations: 2.9 MB / 300.6 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002326/0.1369, allocations: 2.291 MB / 302.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002207/0.1391, allocations: 2.239 MB / 305.1 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003826/0.1394, allocations: 292.7 kB / 305.4 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009862/0.1404, allocations: 0.8799 MB / 306.3 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007741/0.1412, allocations: 1.931 MB / 308.2 MB, free: 10.95 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007192/0.1419, allocations: 1.203 MB / 309.4 MB, free: 10.32 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002122/0.144, allocations: 4.207 MB / 313.6 MB, free: 6.918 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.144, allocations: 0 / 313.6 MB, free: 6.918 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.144, allocations: 4 kB / 313.6 MB, free: 6.914 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.838e-05/0.1441, allocations: 0 / 313.6 MB, free: 6.914 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: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.002819/0.1469, allocations: 4.234 MB / 317.8 MB, free: 3.008 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.732e-05/0.1469, allocations: 8.031 kB / 317.8 MB, free: 3 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002404/0.1493, allocations: 1.101 MB / 318.9 MB, free: 1.953 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001285/0.1506, allocations: 1.701 MB / 320.6 MB, free: 364 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.439e-05/0.1507, allocations: 228.1 kB / 320.9 MB, free: 172 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002827/0.151, allocations: 294 kB / 321.2 MB, free: 15.91 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004393/0.1554, allocations: 4.858 MB / 326 MB, free: 10.75 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.729e-05/0.1554, allocations: 48.19 kB / 326.1 MB, free: 10.72 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002136/0.1556, allocations: 151.9 kB / 326.2 MB, free: 10.61 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001346/0.157, allocations: 1.721 MB / 327.9 MB, free: 8.926 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003706/0.1607, allocations: 2.386 MB / 330.3 MB, free: 6.746 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0185/0.1792, allocations: 30.99 MB / 361.3 MB, free: 7.699 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003548/0.1827, allocations: 1.557 MB / 362.9 MB, free: 6.156 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003956/0.1831, allocations: 261.3 kB / 363.1 MB, free: 5.898 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00323/0.1864, allocations: 2.438 MB / 365.6 MB, free: 3.477 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.72e-05/0.1864, allocations: 43.22 kB / 365.6 MB, free: 3.426 MB / 314.7 MB Notification: Performance of pre-optimization done (n=133): time 3.687e-06/0.1864, allocations: 7.984 kB / 365.6 MB, free: 3.418 MB / 314.7 MB Notification: Performance of matching and sorting (n=151): time 0.01125/0.1977, allocations: 4.486 MB / 370.1 MB, free: 14.95 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.401e-05/0.1977, allocations: 141.5 kB / 370.2 MB, free: 14.79 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002613/0.2003, allocations: 3.066 MB / 373.3 MB, free: 11.93 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.981e-05/0.2004, allocations: 45.7 kB / 373.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001576/0.202, allocations: 3.04 MB / 376.4 MB, free: 8.801 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00037/0.2023, allocations: 0.6241 MB / 377 MB, free: 8.172 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001053/0.2034, allocations: 1.108 MB / 378.1 MB, free: 7.051 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.951e-05/0.2035, allocations: 305.1 kB / 378.4 MB, free: 6.75 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001212/0.2047, allocations: 0.6641 MB / 379.1 MB, free: 6.078 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00302/0.2077, allocations: 4.329 MB / 383.4 MB, free: 15.84 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004433/0.2121, allocations: 5.562 MB / 389 MB, free: 8.387 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.672e-05/0.2122, allocations: 40 kB / 389 MB, free: 8.348 MB / 346.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.004795/0.217, allocations: 3.947 MB / 393 MB, free: 4.391 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.542e-05/0.217, allocations: 67.94 kB / 393 MB, free: 4.324 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001119/0.2171, allocations: 132 kB / 393.1 MB, free: 4.195 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001363/0.2173, allocations: 176 kB / 393.3 MB, free: 4.023 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003125/0.2204, allocations: 1.436 MB / 394.8 MB, free: 2.586 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001752/0.2206, allocations: 266.9 kB / 395 MB, free: 2.324 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002505/0.2231, allocations: 263.7 kB / 395.3 MB, free: 2.066 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003456/0.2234, allocations: 320 kB / 395.6 MB, free: 1.754 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (747): * Single equations (assignments): 744 * 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.0009798/0.2244, allocations: 0.6146 MB / 396.2 MB, free: 1.125 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003093/0.2247, allocations: 203.7 kB / 396.4 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003562/0.2251, allocations: 305.8 kB / 396.7 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-05/0.2251, allocations: 16 kB / 396.7 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.2251, allocations: 4 kB / 396.7 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.2251, allocations: 3.984 kB / 396.7 MB, free: 0.5977 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00498/0.2301, allocations: 4.026 MB / 400.7 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.7e-05/0.2301, allocations: 20 kB / 400.8 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000749/0.2309, allocations: 290.5 kB / 401 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.229e-05/0.2309, allocations: 28 kB / 401.1 MB, free: 11.96 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.468e-05/0.2309, allocations: 44.5 kB / 401.1 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.507e-05/0.231, allocations: 35.86 kB / 401.2 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.751e-05/0.231, allocations: 35.81 kB / 401.2 MB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001542/0.2325, allocations: 1.908 MB / 403.1 MB, free: 9.672 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003347/0.2329, allocations: 321.7 kB / 403.4 MB, free: 9.355 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000245/0.2331, allocations: 47.98 kB / 403.5 MB, free: 9.309 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007921/0.2339, allocations: 40 kB / 403.5 MB, free: 9.27 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001499/0.234, allocations: 159.2 kB / 403.7 MB, free: 9.113 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.312e-05/0.2341, allocations: 63.94 kB / 403.7 MB, free: 9.051 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001314/0.2354, allocations: 1.27 MB / 405 MB, free: 7.785 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2354, allocations: 0 / 405 MB, free: 7.785 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002853/0.2383, allocations: 0.9413 MB / 405.9 MB, free: 6.844 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * 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 (141): * Single equations (assignments): 138 * 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 Backend phase and start with SimCode phase: time 0.0003171/0.2386, allocations: 199.8 kB / 406.1 MB, free: 6.641 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002772/0.2414, allocations: 2.24 MB / 408.4 MB, free: 4.414 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001818/0.2416, allocations: 100.2 kB / 408.5 MB, free: 4.309 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004231/0.242, allocations: 386.1 kB / 408.8 MB, free: 3.934 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001499/0.2435, allocations: 430.4 kB / 409.3 MB, free: 3.523 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007631/0.2511, allocations: 7.377 MB / 416.6 MB, free: 11.82 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009371/0.252, allocations: 1.156 MB / 417.8 MB, free: 10.64 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001002/0.2531, allocations: 498.7 kB / 418.3 MB, free: 10.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006215/0.2537, allocations: 0.5284 MB / 418.8 MB, free: 9.621 MB / 378.7 MB Notification: Performance of SimCode: time 1.232e-06/0.2537, allocations: 0 / 418.8 MB, free: 9.621 MB / 378.7 MB Notification: Performance of Templates: time 0.03562/0.2893, allocations: 23.38 MB / 442.2 MB, free: 2.52 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.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.3590125129558146]