Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation.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.001782/0.001782, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.00193/0.00193, allocations: 165.9 kB / 22.45 MB, free: 2.109 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 1.63/1.63, allocations: 177.1 MB / 202.8 MB, free: 5.762 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo): time 0.09378/0.09378, allocations: 12.74 MB / 271.9 MB, free: 0.5 MB / 250.7 MB " [Timeout remaining time 180] Using package Bodylight with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo) 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(Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation") translateModel(Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.322e-06/1.322e-06, allocations: 0 / 403.3 MB, free: 7.914 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.844e-05/2.977e-05, allocations: 5.234 kB / 403.3 MB, free: 7.91 MB / 330.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation): time 0.006473/0.006502, allocations: 4.19 MB / 407.5 MB, free: 3.699 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002334/0.008836, allocations: 0.9814 MB / 408.5 MB, free: 2.715 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002336/0.00907, allocations: 15.88 kB / 408.5 MB, free: 2.699 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003028/0.009373, allocations: 95 kB / 408.6 MB, free: 2.605 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005981/0.009971, allocations: 261.8 kB / 408.8 MB, free: 2.348 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003957/0.01037, allocations: 163.7 kB / 409 MB, free: 2.188 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009806/0.01135, allocations: 0.8084 MB / 409.8 MB, free: 1.375 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003281/0.01167, allocations: 132.9 kB / 409.9 MB, free: 1.234 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008042/0.01248, allocations: 427 kB / 410.3 MB, free: 0.8164 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004656/0.01294, allocations: 235.3 kB / 410.6 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.572e-05/0.01303, allocations: 44 kB / 410.6 MB, free: 0.543 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000117/0.01315, allocations: 48 kB / 410.7 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001318/0.01328, allocations: 103.6 kB / 410.8 MB, free: 404 kB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002938/0.01357, allocations: 223.5 kB / 411 MB, free: 180 kB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2385/0.2521, allocations: 0.6228 MB / 411.6 MB, free: 16.85 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2521, allocations: 0 / 411.6 MB, free: 16.85 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2521, allocations: 0 / 411.6 MB, free: 16.85 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.546e-06/0.2521, allocations: 3.594 kB / 411.6 MB, free: 16.85 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.00161/0.2537, allocations: 0.7517 MB / 412.4 MB, free: 16.41 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.2538, allocations: 13.11 kB / 412.4 MB, free: 16.41 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001376/0.2539, allocations: 66.09 kB / 412.4 MB, free: 16.38 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006129/0.2545, allocations: 307.3 kB / 412.7 MB, free: 16.2 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001135/0.2546, allocations: 141.7 kB / 412.9 MB, free: 16.07 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.763e-05/0.2547, allocations: 44.75 kB / 412.9 MB, free: 16.07 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001076/0.2558, allocations: 0.4988 MB / 413.4 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.436e-05/0.2558, allocations: 2.062 kB / 413.4 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.102e-05/0.2559, allocations: 19.06 kB / 413.4 MB, free: 15.9 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.2559, allocations: 10.66 kB / 413.4 MB, free: 15.9 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001134/0.257, allocations: 354.5 kB / 413.8 MB, free: 15.89 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002229/0.2593, allocations: 0.8912 MB / 414.7 MB, free: 15.62 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001077/0.2603, allocations: 368.2 kB / 415 MB, free: 15.6 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001017/0.2614, allocations: 303.1 kB / 415.3 MB, free: 15.58 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.107e-05/0.2614, allocations: 6.266 kB / 415.3 MB, free: 15.58 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006812/0.2621, allocations: 341.5 kB / 415.7 MB, free: 15.4 MB / 330.7 MB Notification: Performance of pre-optimization done (n=36): time 2.244e-06/0.2621, allocations: 0 / 415.7 MB, free: 15.4 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.001707/0.2638, allocations: 0.5317 MB / 416.2 MB, free: 15.34 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.068e-05/0.2638, allocations: 59.73 kB / 416.3 MB, free: 15.27 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003497/0.2642, allocations: 287.8 kB / 416.5 MB, free: 15.16 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.5e-05/0.2642, allocations: 37.34 kB / 416.6 MB, free: 15.12 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000155/0.2644, allocations: 237.1 kB / 416.8 MB, free: 14.98 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001072/0.2645, allocations: 113.8 kB / 416.9 MB, free: 14.91 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001573/0.2646, allocations: 73.39 kB / 417 MB, free: 14.89 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.209e-05/0.2647, allocations: 348 kB / 417.3 MB, free: 14.58 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005064/0.2652, allocations: 136.5 kB / 417.5 MB, free: 14.55 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005166/0.2657, allocations: 186.7 kB / 417.7 MB, free: 14.47 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001108/0.2668, allocations: 337.7 kB / 418 MB, free: 14.34 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-06/0.2668, allocations: 1.531 kB / 418 MB, free: 14.34 MB / 330.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001223/0.2681, allocations: 444.6 kB / 418.4 MB, free: 14.17 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.2681, allocations: 4.375 kB / 418.4 MB, free: 14.17 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.2681, allocations: 5.156 kB / 418.4 MB, free: 14.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.044e-05/0.2681, allocations: 3 kB / 418.4 MB, free: 14.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0011/0.2692, allocations: 124.2 kB / 418.6 MB, free: 14.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.258e-05/0.2692, allocations: 3.812 kB / 418.6 MB, free: 14.16 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005192/0.2697, allocations: 54.41 kB / 418.6 MB, free: 14.13 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.859e-05/0.2698, allocations: 13.39 kB / 418.6 MB, free: 14.13 MB / 330.7 MB Warning: Assuming fixed start value for the following 4 variables: rightHeart.pulses.HP:DISCRETE(unit = \"s\" fixed = true nominal = 60.0 ) \"duration of cardiac cycle\" type: Real rightHeart.pulses.T0:DISCRETE(unit = \"s\" fixed = true nominal = 60.0 ) \"beginning of cardiac cycle\" type: Real leftHeart.pulses.HP:DISCRETE(unit = \"s\" fixed = true nominal = 60.0 ) \"duration of cardiac cycle\" type: Real leftHeart.pulses.T0:DISCRETE(unit = \"s\" fixed = true nominal = 60.0 ) \"beginning of cardiac cycle\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.rightHeart.pulses.HP,$PRE.rightHeart.pulses.T0,rightHeart.pulses.b,$whenCondition1,$PRE.leftHeart.pulses.HP,$PRE.leftHeart.pulses.T0,leftHeart.pulses.b,$whenCondition2,leftHeart.pulses.TD2,leftHeart.pulses.HP,leftHeart.pulses.T0,rightHeart.pulses.TD2,rightHeart.pulses.HP,rightHeart.pulses.T0) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * Array equations: 0 * 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.0003208/0.2701, allocations: 184.1 kB / 418.8 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.316e-05/0.2702, allocations: 41.44 kB / 418.8 MB, free: 13.96 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001429/0.2716, allocations: 442.1 kB / 419.3 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.2716, allocations: 7.641 kB / 419.3 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.2716, allocations: 0 / 419.3 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.2716, allocations: 3.156 kB / 419.3 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001991/0.2736, allocations: 0.85 MB / 420.1 MB, free: 13.35 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.2736, allocations: 4.703 kB / 420.1 MB, free: 13.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000992/0.2746, allocations: 95.61 kB / 420.2 MB, free: 13.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.539e-05/0.2746, allocations: 2.219 kB / 420.2 MB, free: 13.34 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.709e-05/0.2747, allocations: 11.2 kB / 420.2 MB, free: 13.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.2747, allocations: 8.312 kB / 420.3 MB, free: 13.34 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.2747, allocations: 4.844 kB / 420.3 MB, free: 13.34 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002112/0.2768, allocations: 0.6918 MB / 421 MB, free: 13.01 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.8e-05/0.2769, allocations: 43.36 kB / 421 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.681e-05/0.277, allocations: 8.922 kB / 421 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005305/0.2775, allocations: 28.91 kB / 421 MB, free: 12.97 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/0.2777, allocations: 26.77 kB / 421.1 MB, free: 12.97 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.346e-05/0.2777, allocations: 17.25 kB / 421.1 MB, free: 12.96 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002287/0.2779, allocations: 197.7 kB / 421.3 MB, free: 12.85 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2779, allocations: 6.719 kB / 421.3 MB, free: 12.85 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006649/0.2786, allocations: 148.4 kB / 421.4 MB, free: 12.82 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (PulmonaryArteries.volume,PulmonaryVeins.volume,SystemicVeins.volume,SystemicArteries.volume) * Number of discrete variables: 10 (leftHeart.pulses.b,rightHeart.pulses.b,$whenCondition2,$whenCondition1,rightHeart.pulses.T0,rightHeart.pulses.HP,rightHeart.pulses.TD2,leftHeart.pulses.T0,leftHeart.pulses.HP,leftHeart.pulses.TD2) * Number of discrete states: 4 (rightHeart.pulses.T0,rightHeart.pulses.HP,leftHeart.pulses.T0,leftHeart.pulses.HP) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.000125/0.2787, allocations: 106.7 kB / 421.5 MB, free: 12.73 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001137/0.2799, allocations: 357.7 kB / 421.9 MB, free: 12.63 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2799, allocations: 0 / 421.9 MB, free: 12.63 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005431/0.2804, allocations: 171.8 kB / 422 MB, free: 12.59 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007837/0.2812, allocations: 96.09 kB / 422.1 MB, free: 12.57 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005046/0.2862, allocations: 0.8706 MB / 423 MB, free: 12.05 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002635/0.2865, allocations: 211.8 kB / 423.2 MB, free: 11.96 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003136/0.2868, allocations: 50.53 kB / 423.3 MB, free: 11.94 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001326/0.2869, allocations: 40.05 kB / 423.3 MB, free: 11.93 MB / 330.7 MB Notification: Performance of SimCode: time 6.11e-07/0.2869, allocations: 0 / 423.3 MB, free: 11.93 MB / 330.7 MB Notification: Performance of Templates: time 0.01599/0.3029, allocations: 5.277 MB / 428.6 MB, free: 10.63 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Bodylight_Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation.makefile [Timeout 660] (rm -f Bodylight_Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation.pipe ; mkfifo Bodylight_Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation.pipe ; head -c 1048576 < Bodylight_Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation.pipe >> ../files/Bodylight_Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation.sim & ./Bodylight_Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation -abortSlowSimulation -alarm=240 -lv LOG_STATS > Bodylight_Bodylight.Hydraulic.Examples.Kofranek2014.PulsatileCirculation.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.559302516747266]