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.001429/0.001429, allocations: 80.8 kB / 21.5 MB, free: 2.988 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.001583/0.001583, allocations: 169.6 kB / 24.91 MB, free: 8.77 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.9213/0.9213, allocations: 177.1 MB / 205.3 MB, free: 5.496 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.523e-06/1.523e-06, allocations: 0 / 273.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.962e-05/2.114e-05, allocations: 2.312 kB / 273.4 MB, free: 1.309 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01081/0.01083, allocations: 10.08 MB / 283.5 MB, free: 7.184 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006694/0.01752, allocations: 3.926 MB / 287.5 MB, free: 3.246 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008621/0.01839, allocations: 75.62 kB / 287.5 MB, free: 3.172 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002394/0.02078, allocations: 2.39 MB / 289.9 MB, free: 0.7734 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1135/0.1343, allocations: 1.922 MB / 291.8 MB, free: 15 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001274/0.1356, allocations: 0.7934 MB / 292.6 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005058/0.1406, allocations: 4.998 MB / 297.6 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00358/0.1442, allocations: 3.115 MB / 300.7 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003071/0.1473, allocations: 2.343 MB / 303.1 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001979/0.1493, allocations: 2.228 MB / 305.3 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000357/0.1496, allocations: 291.9 kB / 305.6 MB, free: 12.42 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009825/0.1506, allocations: 0.8672 MB / 306.5 MB, free: 12.17 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008611/0.1515, allocations: 1.936 MB / 308.4 MB, free: 11.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009079/0.1524, allocations: 1.197 MB / 309.6 MB, free: 10.47 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002453/0.1548, allocations: 4.204 MB / 313.8 MB, free: 6.953 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1548, allocations: 8 kB / 313.8 MB, free: 6.945 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1548, allocations: 0 / 313.8 MB, free: 6.945 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.43e-05/0.1549, allocations: 0 / 313.8 MB, free: 6.945 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.003177/0.158, allocations: 4.241 MB / 318.1 MB, free: 3.035 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.29e-05/0.1581, allocations: 12.03 kB / 318.1 MB, free: 3.023 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002506/0.1606, allocations: 1.092 MB / 319.2 MB, free: 1.984 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00148/0.1621, allocations: 1.699 MB / 320.9 MB, free: 396 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.001e-05/0.1621, allocations: 220.5 kB / 321.1 MB, free: 212 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002994/0.1624, allocations: 300.7 kB / 321.4 MB, free: 15.95 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00453/0.167, allocations: 4.862 MB / 326.2 MB, free: 10.78 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.481e-05/0.167, allocations: 50.67 kB / 326.3 MB, free: 10.75 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002277/0.1673, allocations: 149.6 kB / 326.4 MB, free: 10.65 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00145/0.1687, allocations: 1.716 MB / 328.1 MB, free: 8.961 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003815/0.1725, allocations: 2.393 MB / 330.5 MB, free: 6.773 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01966/0.1922, allocations: 30.99 MB / 361.5 MB, free: 7.738 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002767/0.195, allocations: 1.557 MB / 363.1 MB, free: 6.195 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003128/0.1953, allocations: 271.7 kB / 363.3 MB, free: 5.934 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002731/0.198, allocations: 2.436 MB / 365.8 MB, free: 3.516 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.129e-05/0.198, allocations: 47.16 kB / 365.8 MB, free: 3.461 MB / 314.7 MB Notification: Performance of pre-optimization done (n=133): time 3.136e-06/0.198, allocations: 0 / 365.8 MB, free: 3.461 MB / 314.7 MB Notification: Performance of matching and sorting (n=151): time 0.008589/0.2066, allocations: 4.48 MB / 370.3 MB, free: 15 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001256/0.2067, allocations: 141.5 kB / 370.4 MB, free: 14.83 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002186/0.2089, allocations: 3.062 MB / 373.5 MB, free: 11.96 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.517e-05/0.209, allocations: 57.64 kB / 373.6 MB, free: 11.9 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001236/0.2102, allocations: 3.032 MB / 376.6 MB, free: 8.832 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003149/0.2105, allocations: 0.6241 MB / 377.2 MB, free: 8.203 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008753/0.2114, allocations: 1.109 MB / 378.3 MB, free: 7.082 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.249e-05/0.2115, allocations: 305.1 kB / 378.6 MB, free: 6.781 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009712/0.2124, allocations: 0.6641 MB / 379.3 MB, free: 6.109 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002469/0.2149, allocations: 4.325 MB / 383.6 MB, free: 15.88 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003895/0.2188, allocations: 5.577 MB / 389.2 MB, free: 8.41 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.837e-05/0.2189, allocations: 40 kB / 389.2 MB, free: 8.371 MB / 346.7 MB Notification: Performance of matching and sorting (n=771) (initialization): time 0.00418/0.223, allocations: 3.942 MB / 393.2 MB, free: 4.414 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.744e-05/0.2231, allocations: 64 kB / 393.2 MB, free: 4.352 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-05/0.2232, allocations: 132 kB / 393.4 MB, free: 4.223 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001099/0.2233, allocations: 180 kB / 393.5 MB, free: 4.047 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002181/0.2255, allocations: 1.365 MB / 394.9 MB, free: 2.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001299/0.2256, allocations: 267 kB / 395.2 MB, free: 2.418 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001963/0.2276, allocations: 259.9 kB / 395.4 MB, free: 2.164 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002576/0.2278, allocations: 320 kB / 395.7 MB, free: 1.852 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.0009458/0.2288, allocations: 0.6106 MB / 396.3 MB, free: 1.227 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002475/0.229, allocations: 207.7 kB / 396.5 MB, free: 1.023 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002759/0.2293, allocations: 313.8 kB / 396.8 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.81e-05/0.2293, allocations: 16 kB / 396.9 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.2293, allocations: 0 / 396.9 MB, free: 0.6953 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.2293, allocations: 11.97 kB / 396.9 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003932/0.2333, allocations: 4.022 MB / 400.9 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/0.2333, allocations: 16.22 kB / 400.9 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005111/0.2338, allocations: 267.6 kB / 401.2 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.642e-05/0.2338, allocations: 28 kB / 401.2 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.781e-05/0.2339, allocations: 44 kB / 401.2 MB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.777e-05/0.2339, allocations: 35.86 kB / 401.3 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.365e-05/0.2339, allocations: 31.81 kB / 401.3 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00132/0.2352, allocations: 1.918 MB / 403.2 MB, free: 9.781 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002913/0.2355, allocations: 321.7 kB / 403.5 MB, free: 9.465 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001907/0.2357, allocations: 47.98 kB / 403.6 MB, free: 9.418 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005625/0.2363, allocations: 47.98 kB / 403.6 MB, free: 9.371 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.2364, allocations: 151.3 kB / 403.8 MB, free: 9.223 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.627e-05/0.2364, allocations: 60 kB / 403.8 MB, free: 9.164 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001014/0.2374, allocations: 1.274 MB / 405.1 MB, free: 7.895 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2374, allocations: 0 / 405.1 MB, free: 7.895 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002687/0.2401, allocations: 0.9374 MB / 406.1 MB, free: 6.957 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.0002935/0.2404, allocations: 199.8 kB / 406.3 MB, free: 6.754 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002095/0.2425, allocations: 2.242 MB / 408.5 MB, free: 4.527 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001454/0.2427, allocations: 104.3 kB / 408.6 MB, free: 4.418 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003178/0.243, allocations: 383.9 kB / 409 MB, free: 4.043 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/0.2443, allocations: 419.7 kB / 409.4 MB, free: 3.637 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007308/0.2516, allocations: 7.389 MB / 416.8 MB, free: 11.92 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009314/0.2525, allocations: 1.148 MB / 417.9 MB, free: 10.75 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001096/0.2536, allocations: 494.7 kB / 418.4 MB, free: 10.26 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006121/0.2542, allocations: 0.5285 MB / 418.9 MB, free: 9.734 MB / 378.7 MB Notification: Performance of SimCode: time 1.904e-06/0.2542, allocations: 3.938 kB / 418.9 MB, free: 9.73 MB / 378.7 MB Notification: Performance of Templates: time 0.1358/0.39, allocations: 23.29 MB / 442.2 MB, free: 111.4 MB / 378.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 -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.6178021510131657]