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.1108/0.1108, allocations: 15.27 MB / 30.51 MB, free: 4.344 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.001106/0.001106, allocations: 107.1 kB / 35.48 MB, free: 3.395 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.001274/0.001274, allocations: 200.5 kB / 40.58 MB, free: 7.453 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.452/1.452, allocations: 222.9 MB / 268.4 MB, free: 7.609 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1433/0.1433, allocations: 23.36 MB / 346.1 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001785/0.001785, allocations: 111.8 kB / 417.7 MB, free: 30.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1415, allocations: 59.37 MB / 477 MB, free: 3.328 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Fluid.mo:707:7-707: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:707:7-707: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.5722/0.7137, allocations: 67.2 MB / 0.5315 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01542/0.7292, allocations: 15.42 MB / 0.5465 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001074/0.7303, allocations: 29.94 kB / 0.5466 GB, free: 11.24 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006811/0.731, allocations: 173.7 kB / 0.5467 GB, free: 11.19 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006399/0.7374, allocations: 2.058 MB / 0.5487 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00356/0.741, allocations: 1.024 MB / 0.5497 GB, free: 10.28 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001514/0.7425, allocations: 1.11 MB / 0.5508 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000479/0.743, allocations: 331.9 kB / 0.5511 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002219/0.7452, allocations: 0.9895 MB / 0.5521 GB, free: 9.832 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006115/0.7459, allocations: 432.4 kB / 0.5525 GB, free: 9.738 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.519e-05/0.7459, allocations: 36 kB / 0.5525 GB, free: 9.703 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004167/0.7501, allocations: 1.616 MB / 0.5541 GB, free: 8.621 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001528/0.7503, allocations: 124 kB / 0.5542 GB, free: 8.574 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002825/0.7506, allocations: 263.7 kB / 0.5545 GB, free: 8.398 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004067/0.7546, allocations: 1.93 MB / 0.5564 GB, free: 7.211 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/0.7547, allocations: 7.125 kB / 0.5564 GB, free: 7.207 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.7547, allocations: 0 / 0.5564 GB, free: 7.207 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.775e-06/0.7547, allocations: 0 / 0.5564 GB, free: 7.207 MB / 382.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.001531/0.7562, allocations: 0.9657 MB / 0.5573 GB, free: 6.34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.7563, allocations: 8.031 kB / 0.5573 GB, free: 6.332 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001089/0.7564, allocations: 48.75 kB / 0.5574 GB, free: 6.285 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000406/0.7568, allocations: 373.7 kB / 0.5577 GB, free: 5.965 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.406e-05/0.7568, allocations: 23.34 kB / 0.5578 GB, free: 5.953 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.602e-05/0.7569, allocations: 34.06 kB / 0.5578 GB, free: 5.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006009/0.7575, allocations: 404.5 kB / 0.5582 GB, free: 5.688 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.7575, allocations: 4 kB / 0.5582 GB, free: 5.684 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.3e-05/0.7576, allocations: 10.56 kB / 0.5582 GB, free: 5.684 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.7576, allocations: 8 kB / 0.5582 GB, free: 5.676 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005521/0.7581, allocations: 340.4 kB / 0.5585 GB, free: 5.496 MB / 382.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.001975/0.7601, allocations: 2.024 MB / 0.5605 GB, free: 3.742 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004883/0.7606, allocations: 322.8 kB / 0.5608 GB, free: 3.566 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002414/0.7609, allocations: 160.4 kB / 0.561 GB, free: 3.477 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009313/0.7618, allocations: 0.963 MB / 0.5619 GB, free: 2.648 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003213/0.7622, allocations: 200.2 kB / 0.5621 GB, free: 2.512 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 2.074e-06/0.7622, allocations: 0 / 0.5621 GB, free: 2.512 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.001001/0.7632, allocations: 0.5307 MB / 0.5626 GB, free: 2.012 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.903e-05/0.7632, allocations: 55.41 kB / 0.5627 GB, free: 1.945 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003046/0.7635, allocations: 373.1 kB / 0.563 GB, free: 1.617 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.549e-05/0.7636, allocations: 37.7 kB / 0.5631 GB, free: 1.574 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.725e-05/0.7637, allocations: 221.9 kB / 0.5633 GB, free: 1.367 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.153e-05/0.7637, allocations: 104 kB / 0.5634 GB, free: 1.273 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.7638, allocations: 80.05 kB / 0.5634 GB, free: 1.199 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.502e-05/0.7639, allocations: 364.1 kB / 0.5638 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002348/0.7641, allocations: 128.7 kB / 0.5639 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002558/0.7644, allocations: 228.5 kB / 0.5641 GB, free: 0.5117 MB / 382.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.001847/0.7663, allocations: 0.8812 MB / 0.565 GB, free: 15.7 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.7663, allocations: 0 / 0.565 GB, free: 15.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008781/0.7672, allocations: 473 kB / 0.5654 GB, free: 15.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.108e-05/0.7672, allocations: 4 kB / 0.5654 GB, free: 15.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.7672, allocations: 4 kB / 0.5654 GB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001332/0.7674, allocations: 33.25 kB / 0.5655 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003425/0.7677, allocations: 79.23 kB / 0.5656 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003769/0.7681, allocations: 0.5605 MB / 0.5661 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003739/0.7685, allocations: 53.48 kB / 0.5662 GB, free: 14.54 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.897e-05/0.7685, allocations: 16 kB / 0.5662 GB, free: 14.53 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: 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.0002291/0.7688, allocations: 168.2 kB / 0.5663 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.81e-05/0.7688, allocations: 43.47 kB / 0.5664 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008213/0.7697, allocations: 423.6 kB / 0.5668 GB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.7697, allocations: 8 kB / 0.5668 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.7697, allocations: 0 / 0.5668 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.7697, allocations: 3.984 kB / 0.5668 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001308/0.771, allocations: 0.8574 MB / 0.5676 GB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.771, allocations: 0 / 0.5676 GB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002349/0.7713, allocations: 51.94 kB / 0.5677 GB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.651e-05/0.7714, allocations: 32.83 kB / 0.5677 GB, free: 12.89 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.669e-05/0.7714, allocations: 11.98 kB / 0.5677 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003322/0.7718, allocations: 0.5445 MB / 0.5682 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.7718, allocations: 0 / 0.5682 GB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009653/0.7727, allocations: 0.6031 MB / 0.5688 GB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001707/0.7729, allocations: 136.7 kB / 0.569 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.002e-05/0.773, allocations: 15.89 kB / 0.569 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002877/0.7733, allocations: 24.05 kB / 0.569 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.194e-05/0.7734, allocations: 31.83 kB / 0.569 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.128e-05/0.7734, allocations: 15.98 kB / 0.569 GB, free: 11.44 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002941/0.7737, allocations: 271.2 kB / 0.5693 GB, free: 11.18 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.493e-06/0.7737, allocations: 0 / 0.5693 GB, free: 11.18 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001336/0.7751, allocations: 487.3 kB / 0.5698 GB, free: 10.7 MB / 398.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.001392/0.7765, allocations: 0.7775 MB / 0.5705 GB, free: 9.996 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008641/0.7773, allocations: 348.1 kB / 0.5709 GB, free: 9.656 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.7774, allocations: 4.062 kB / 0.5709 GB, free: 9.652 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003223/0.7777, allocations: 155.8 kB / 0.571 GB, free: 9.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.7787, allocations: 188.4 kB / 0.5712 GB, free: 9.32 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001579/0.7803, allocations: 0.9768 MB / 0.5721 GB, free: 8.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003657/0.7807, allocations: 0.808 MB / 0.5729 GB, free: 7.484 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003391/0.781, allocations: 87.28 kB / 0.573 GB, free: 7.398 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.7811, allocations: 47.36 kB / 0.5731 GB, free: 7.352 MB / 398.1 MB Notification: Performance of SimCode: time 1.653e-06/0.7811, allocations: 0 / 0.5731 GB, free: 7.352 MB / 398.1 MB Notification: Performance of Templates: time 0.02442/0.8056, allocations: 16.44 MB / 0.5891 GB, free: 7 MB / 414.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)