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.001431/0.001431, allocations: 88.31 kB / 20.96 MB, free: 3.48 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.001558/0.001558, allocations: 161.7 kB / 24.26 MB, free: 180 kB / 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 1.498/1.498, allocations: 177.1 MB / 204.6 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] 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.703e-06/1.703e-06, allocations: 0 / 272.3 MB, free: 1.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.457e-05/3.627e-05, allocations: 2.312 kB / 272.3 MB, free: 1.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.02055/0.02059, allocations: 9.357 MB / 281.7 MB, free: 8.402 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01278/0.03337, allocations: 3.705 MB / 285.4 MB, free: 4.688 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002182/0.03555, allocations: 79.56 kB / 285.5 MB, free: 4.609 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007805/0.04335, allocations: 2.316 MB / 287.8 MB, free: 2.285 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008574/0.05193, allocations: 1.913 MB / 289.7 MB, free: 372 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1279/0.1798, allocations: 0.7871 MB / 290.5 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007114/0.1869, allocations: 5.003 MB / 295.5 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005686/0.1926, allocations: 3.03 MB / 298.5 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005679/0.1983, allocations: 2.278 MB / 300.8 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00348/0.2018, allocations: 2.381 MB / 303.2 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006277/0.2024, allocations: 305.1 kB / 303.5 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001683/0.2041, allocations: 0.8766 MB / 304.4 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001317/0.2054, allocations: 1.935 MB / 306.3 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001321/0.2067, allocations: 1.201 MB / 307.5 MB, free: 11.39 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005044/0.2118, allocations: 6.406 MB / 313.9 MB, free: 6.297 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.2118, allocations: 0 / 313.9 MB, free: 6.297 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2118, allocations: 0 / 313.9 MB, free: 6.297 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001573/0.2119, allocations: 3.531 kB / 313.9 MB, free: 6.297 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.007571/0.2195, allocations: 4.679 MB / 318.6 MB, free: 1.668 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.2196, allocations: 8.031 kB / 318.6 MB, free: 1.66 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007924/0.2275, allocations: 2.549 MB / 321.1 MB, free: 15.14 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004929/0.2324, allocations: 2.186 MB / 323.3 MB, free: 13.08 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002366/0.2326, allocations: 217.7 kB / 323.5 MB, free: 12.9 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007285/0.2334, allocations: 307.8 kB / 323.8 MB, free: 12.64 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0191/0.2525, allocations: 9.697 MB / 333.5 MB, free: 2.375 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001178/0.2526, allocations: 48.33 kB / 333.6 MB, free: 2.352 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004203/0.253, allocations: 153.2 kB / 333.7 MB, free: 2.238 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003359/0.2564, allocations: 1.914 MB / 335.6 MB, free: 356 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01756/0.2739, allocations: 7.659 MB / 343.3 MB, free: 8.879 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05134/0.3253, allocations: 35.51 MB / 378.8 MB, free: 4.719 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007399/0.3327, allocations: 2.434 MB / 381.2 MB, free: 2.266 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001432/0.3341, allocations: 0.7995 MB / 382 MB, free: 1.453 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006337/0.3404, allocations: 2.962 MB / 385 MB, free: 14.48 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.998e-05/0.3405, allocations: 50.48 kB / 385.1 MB, free: 14.43 MB / 346.7 MB Notification: Performance of pre-optimization done (n=134): time 3.507e-06/0.3405, allocations: 0 / 385.1 MB, free: 14.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=152): time 0.02463/0.3651, allocations: 9.577 MB / 394.6 MB, free: 4.824 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001157/0.3652, allocations: 148.9 kB / 394.8 MB, free: 4.648 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005908/0.3711, allocations: 3.838 MB / 398.6 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001974/0.3713, allocations: 45.7 kB / 398.7 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002919/0.3743, allocations: 3.202 MB / 401.9 MB, free: 13.57 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000809/0.3751, allocations: 0.6295 MB / 402.5 MB, free: 12.95 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001705/0.3768, allocations: 1.157 MB / 403.6 MB, free: 11.78 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.3769, allocations: 301.1 kB / 403.9 MB, free: 11.48 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00307/0.38, allocations: 1.608 MB / 405.5 MB, free: 9.871 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007106/0.3871, allocations: 5.37 MB / 410.9 MB, free: 2.672 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01117/0.3983, allocations: 7.573 MB / 418.5 MB, free: 9.242 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001178/0.3984, allocations: 40 kB / 418.5 MB, free: 9.203 MB / 378.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01442/0.4128, allocations: 7.017 MB / 425.5 MB, free: 2.188 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.946e-05/0.4129, allocations: 60 kB / 425.6 MB, free: 2.129 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001743/0.4131, allocations: 136 kB / 425.7 MB, free: 1.996 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002103/0.4133, allocations: 180 kB / 425.9 MB, free: 1.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00469/0.418, allocations: 1.407 MB / 427.3 MB, free: 424 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002658/0.4182, allocations: 263.9 kB / 427.6 MB, free: 160 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004366/0.4226, allocations: 391.5 kB / 428 MB, free: 15.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005458/0.4232, allocations: 364 kB / 428.3 MB, free: 15.42 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * 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 (746): * Single equations (assignments): 743 * 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.003468/0.4266, allocations: 1.981 MB / 430.3 MB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007135/0.4273, allocations: 357.8 kB / 430.6 MB, free: 13.08 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006782/0.428, allocations: 365.8 kB / 431 MB, free: 12.71 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-05/0.4281, allocations: 20 kB / 431 MB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.187e-05/0.4281, allocations: 0 / 431 MB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.232e-05/0.4281, allocations: 3.984 kB / 431 MB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00861/0.4367, allocations: 4.671 MB / 435.7 MB, free: 7.773 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-05/0.4367, allocations: 16 kB / 435.7 MB, free: 7.758 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001015/0.4377, allocations: 279.5 kB / 436 MB, free: 7.484 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.85e-05/0.4378, allocations: 28 kB / 436 MB, free: 7.457 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.798e-05/0.4378, allocations: 45.41 kB / 436.1 MB, free: 7.414 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.33e-05/0.4379, allocations: 35.86 kB / 436.1 MB, free: 7.379 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.691e-05/0.4379, allocations: 36.22 kB / 436.1 MB, free: 7.344 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004441/0.4423, allocations: 3.221 MB / 439.3 MB, free: 3.867 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006446/0.443, allocations: 333.7 kB / 439.7 MB, free: 3.539 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003019/0.4433, allocations: 51.98 kB / 439.7 MB, free: 3.488 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001661/0.4449, allocations: 111.9 kB / 439.8 MB, free: 3.379 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002095/0.4452, allocations: 155.3 kB / 440 MB, free: 3.227 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001057/0.4453, allocations: 67.44 kB / 440.1 MB, free: 3.164 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003634/0.4489, allocations: 2.235 MB / 442.3 MB, free: 0.9375 MB / 394.7 MB Notification: Performance of sort global known variables: time 1e-07/0.4489, allocations: 0 / 442.3 MB, free: 0.9375 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004342/0.4532, allocations: 0.9374 MB / 443.2 MB, free: 0 / 394.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 (142): * Single equations (assignments): 139 * 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.1131/0.5663, allocations: 209.2 kB / 443.4 MB, free: 130.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006165/0.5725, allocations: 3.575 MB / 447 MB, free: 130.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.915e-05/0.5725, allocations: 3.812 kB / 447 MB, free: 130.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009786/0.5735, allocations: 0.6937 MB / 447.7 MB, free: 129.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00263/0.5761, allocations: 417.4 kB / 448.1 MB, free: 129.8 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01241/0.5885, allocations: 8.598 MB / 456.7 MB, free: 125.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002715/0.5912, allocations: 2.559 MB / 459.3 MB, free: 124.8 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003451/0.5947, allocations: 1.734 MB / 461 MB, free: 124.6 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004489/0.5951, allocations: 229.7 kB / 461.2 MB, free: 124.6 MB / 394.7 MB Notification: Performance of SimCode: time 1.644e-06/0.5952, allocations: 0 / 461.2 MB, free: 124.6 MB / 394.7 MB Notification: Performance of Templates: time 0.04222/0.6374, allocations: 20.67 MB / 481.9 MB, free: 111.1 MB / 394.7 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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.141875441069715]