Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo", uses=false) Using package Physiolibrary with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo) Running command: translateModel(Physiolibrary.Fluid.Examples.Windkessel_2element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element") translateModel(Physiolibrary.Fluid.Examples.Windkessel_2element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.113/0.113, allocations: 15.27 MB / 30.54 MB, free: 5.711 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007659/0.0007659, allocations: 110.8 kB / 35.57 MB, free: 1.133 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009899/0.00099, allocations: 192.5 kB / 40.69 MB, free: 4.738 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 223.3 MB / 268.9 MB, free: 2.016 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1295/0.1295, allocations: 23.38 MB / 347.7 MB, free: 10.43 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004576/0.0004577, allocations: 19.98 kB / 420.2 MB, free: 1.785 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2327/0.2332, allocations: 60.47 MB / 480.7 MB, free: 36.86 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Fluid.mo:596:7-596:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Fluid.mo:596:7-596:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.Windkessel_2element): time 0.05799/0.2912, allocations: 66.69 MB / 0.5346 GB, free: 2.137 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01596/0.3072, allocations: 15.41 MB / 0.5496 GB, free: 2.676 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007832/0.308, allocations: 23.81 kB / 0.5496 GB, free: 2.652 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005618/0.3086, allocations: 162.9 kB / 0.5498 GB, free: 2.492 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005285/0.3139, allocations: 2.023 MB / 0.5518 GB, free: 468 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002784/0.3167, allocations: 1.015 MB / 0.5528 GB, free: 15.44 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001603/0.3183, allocations: 1.66 MB / 0.5544 GB, free: 13.77 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004132/0.3188, allocations: 274.2 kB / 0.5546 GB, free: 13.5 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002048/0.3208, allocations: 0.9293 MB / 0.5556 GB, free: 12.57 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006052/0.3214, allocations: 414.3 kB / 0.5559 GB, free: 12.16 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.253e-05/0.3215, allocations: 24 kB / 0.556 GB, free: 12.14 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003904/0.3254, allocations: 1.575 MB / 0.5575 GB, free: 10.56 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001529/0.3256, allocations: 107.6 kB / 0.5576 GB, free: 10.45 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002957/0.3259, allocations: 264.5 kB / 0.5579 GB, free: 10.19 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003668/0.3296, allocations: 1.911 MB / 0.5597 GB, free: 8.27 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3296, allocations: 0 / 0.5597 GB, free: 8.27 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.3296, allocations: 0 / 0.5597 GB, free: 8.27 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.253e-05/0.3296, allocations: 0 / 0.5597 GB, free: 8.27 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001539/0.3312, allocations: 0.8931 MB / 0.5606 GB, free: 7.324 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.3312, allocations: 12.03 kB / 0.5606 GB, free: 7.312 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.826e-05/0.3313, allocations: 59.38 kB / 0.5607 GB, free: 7.254 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004524/0.3318, allocations: 369.7 kB / 0.561 GB, free: 6.848 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.01e-05/0.3318, allocations: 24.66 kB / 0.561 GB, free: 6.824 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.195e-05/0.3319, allocations: 36 kB / 0.5611 GB, free: 6.789 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006661/0.3326, allocations: 403.5 kB / 0.5615 GB, free: 6.371 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.3326, allocations: 4 kB / 0.5615 GB, free: 6.367 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.787e-05/0.3326, allocations: 12 kB / 0.5615 GB, free: 6.355 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.3326, allocations: 8 kB / 0.5615 GB, free: 6.348 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006593/0.3333, allocations: 354.3 kB / 0.5618 GB, free: 6.004 MB / 414.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002348/0.3357, allocations: 2.035 MB / 0.5638 GB, free: 3.754 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005777/0.3363, allocations: 341.3 kB / 0.5641 GB, free: 3.414 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002921/0.3366, allocations: 165 kB / 0.5643 GB, free: 3.25 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001114/0.3377, allocations: 0.9619 MB / 0.5652 GB, free: 2.188 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003576/0.3381, allocations: 199.7 kB / 0.5654 GB, free: 1.98 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.914e-06/0.3381, allocations: 4 kB / 0.5654 GB, free: 1.977 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.001163/0.3392, allocations: 0.5541 MB / 0.566 GB, free: 1.395 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.635e-05/0.3393, allocations: 55.41 kB / 0.566 GB, free: 1.328 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003943/0.3397, allocations: 385.5 kB / 0.5664 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.108e-05/0.3397, allocations: 37.7 kB / 0.5664 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.3399, allocations: 220 kB / 0.5666 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.923e-05/0.34, allocations: 106.5 kB / 0.5667 GB, free: 0.5742 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.491e-05/0.34, allocations: 37.7 kB / 0.5668 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.3401, allocations: 354.8 kB / 0.5671 GB, free: 180 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002804/0.3404, allocations: 140.8 kB / 0.5672 GB, free: 40 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00034/0.3408, allocations: 229.5 kB / 0.5675 GB, free: 15.78 MB / 430.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: arteries.mass = arteries.tm_start (arteries.m_start[1] + arteries.massOffset = arteries.tm_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.002033/0.3428, allocations: 0.9115 MB / 0.5684 GB, free: 14.82 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.3428, allocations: 0 / 0.5684 GB, free: 14.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000899/0.3437, allocations: 494.4 kB / 0.5688 GB, free: 14.33 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.3438, allocations: 4 kB / 0.5688 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.3438, allocations: 4 kB / 0.5688 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001243/0.3439, allocations: 32.84 kB / 0.5689 GB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003451/0.3443, allocations: 79.89 kB / 0.5689 GB, free: 14.21 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003417/0.3446, allocations: 0.5524 MB / 0.5695 GB, free: 13.63 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003756/0.345, allocations: 59.52 kB / 0.5695 GB, free: 13.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.721e-05/0.3451, allocations: 15.98 kB / 0.5696 GB, free: 13.55 MB / 430.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: arteries.mass = arteries.tm_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.pulses.TD2,$PRE.pulses.HP,$PRE.pulses.T0,pulses.TD2,pulses.HP,pulses.b,pulses.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000193/0.3453, allocations: 167.7 kB / 0.5697 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.263e-05/0.3453, allocations: 39.47 kB / 0.5698 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000837/0.3462, allocations: 432.7 kB / 0.5702 GB, free: 12.9 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/0.3462, allocations: 11.88 kB / 0.5702 GB, free: 12.89 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3462, allocations: 0 / 0.5702 GB, free: 12.89 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.3462, allocations: 0 / 0.5702 GB, free: 12.89 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00132/0.3475, allocations: 0.8861 MB / 0.571 GB, free: 11.94 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.3475, allocations: 3.938 kB / 0.571 GB, free: 11.94 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002348/0.3478, allocations: 48 kB / 0.5711 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.506e-05/0.3479, allocations: 32.83 kB / 0.5711 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.709e-05/0.3479, allocations: 8 kB / 0.5711 GB, free: 11.85 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003028/0.3482, allocations: 0.5445 MB / 0.5717 GB, free: 11.28 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.3483, allocations: 3.938 kB / 0.5717 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009872/0.3492, allocations: 0.611 MB / 0.5723 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000169/0.3494, allocations: 148.5 kB / 0.5724 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.499e-05/0.3495, allocations: 11.94 kB / 0.5724 GB, free: 10.46 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002976/0.3498, allocations: 31.95 kB / 0.5724 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.029e-05/0.3499, allocations: 23.95 kB / 0.5725 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.681e-05/0.3499, allocations: 8 kB / 0.5725 GB, free: 10.4 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002808/0.3502, allocations: 271.2 kB / 0.5727 GB, free: 10.14 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3502, allocations: 4 kB / 0.5727 GB, free: 10.13 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001143/0.3514, allocations: 479.4 kB / 0.5732 GB, free: 9.664 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (arteries.enthalpy,arteries.substanceMasses[1]) * Number of discrete variables: 5 (pulses.b,$whenCondition1,pulses.T0,pulses.HP,pulses.TD2) * Number of discrete states: 2 (pulses.T0,pulses.HP) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001512/0.3529, allocations: 0.7871 MB / 0.574 GB, free: 8.867 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0008081/0.3537, allocations: 343.8 kB / 0.5743 GB, free: 8.531 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.3537, allocations: 0 / 0.5743 GB, free: 8.531 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003381/0.3541, allocations: 155.8 kB / 0.5744 GB, free: 8.379 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001129/0.3552, allocations: 188.3 kB / 0.5746 GB, free: 8.199 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001532/0.3568, allocations: 1.047 MB / 0.5756 GB, free: 7.129 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003405/0.3571, allocations: 0.8116 MB / 0.5764 GB, free: 6.289 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000338/0.3575, allocations: 91.17 kB / 0.5765 GB, free: 6.195 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.3576, allocations: 43.42 kB / 0.5766 GB, free: 6.152 MB / 430.1 MB Notification: Performance of SimCode: time 4.3e-07/0.3576, allocations: 0 / 0.5766 GB, free: 6.152 MB / 430.1 MB Notification: Performance of Templates: time 0.02417/0.3818, allocations: 16.03 MB / 0.5922 GB, free: 6.184 MB / 446.1 MB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.makefile (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe 2>&1)