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.1422/0.1422, allocations: 15.27 MB / 30.24 MB, free: 4.707 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.0009278/0.0009278, allocations: 101.4 kB / 35.24 MB, free: 3.332 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.00181/0.001809, allocations: 168.6 kB / 40.34 MB, free: 7.91 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.598/1.598, allocations: 223.3 MB / 268.6 MB, free: 8.809 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1601/0.1601, allocations: 23.39 MB / 347.3 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004665/0.0004665, allocations: 16 kB / 419.6 MB, free: 30.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1353, allocations: 60.48 MB / 480 MB, free: 2.414 MB / 334.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.04497/0.1803, allocations: 45.19 MB / 0.5129 GB, free: 5.102 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3316/0.5119, allocations: 14.38 MB / 0.527 GB, free: 14.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001062/0.513, allocations: 24.5 kB / 0.527 GB, free: 14.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000732/0.5138, allocations: 167.9 kB / 0.5271 GB, free: 14.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007692/0.5215, allocations: 1.942 MB / 0.529 GB, free: 14.82 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003758/0.5253, allocations: 0.8871 MB / 0.5299 GB, free: 14.8 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002687/0.528, allocations: 1.376 MB / 0.5312 GB, free: 14.8 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006196/0.5287, allocations: 271.2 kB / 0.5315 GB, free: 14.76 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002557/0.5312, allocations: 0.8878 MB / 0.5324 GB, free: 14.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009436/0.5322, allocations: 395.5 kB / 0.5328 GB, free: 14.74 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.586e-05/0.5323, allocations: 22.53 kB / 0.5328 GB, free: 14.74 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005521/0.5378, allocations: 1.179 MB / 0.5339 GB, free: 14.62 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002043/0.538, allocations: 107.1 kB / 0.534 GB, free: 14.61 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002824/0.5383, allocations: 111.8 kB / 0.5341 GB, free: 14.56 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002899/0.5412, allocations: 1.352 MB / 0.5355 GB, free: 14.31 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.5412, allocations: 0.5 kB / 0.5355 GB, free: 14.31 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.5412, allocations: 3.234 kB / 0.5355 GB, free: 14.31 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.845e-06/0.5412, allocations: 0 / 0.5355 GB, free: 14.31 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.001995/0.5433, allocations: 0.9099 MB / 0.5363 GB, free: 13.7 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.5433, allocations: 9.688 kB / 0.5364 GB, free: 13.7 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001092/0.5434, allocations: 51.3 kB / 0.5364 GB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004685/0.5439, allocations: 353.4 kB / 0.5367 GB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.235e-05/0.5439, allocations: 26.47 kB / 0.5368 GB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.366e-05/0.544, allocations: 35.66 kB / 0.5368 GB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000697/0.5447, allocations: 401 kB / 0.5372 GB, free: 13.35 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.911e-05/0.5448, allocations: 5.125 kB / 0.5372 GB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.569e-05/0.5448, allocations: 11.91 kB / 0.5372 GB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.089e-05/0.5448, allocations: 9.969 kB / 0.5372 GB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006392/0.5455, allocations: 351.5 kB / 0.5375 GB, free: 13.33 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.002214/0.5477, allocations: 2.039 MB / 0.5395 GB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005731/0.5483, allocations: 333.8 kB / 0.5399 GB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002897/0.5486, allocations: 167.6 kB / 0.54 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001074/0.5497, allocations: 0.9597 MB / 0.5409 GB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003574/0.55, allocations: 193.1 kB / 0.5411 GB, free: 11.13 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 2.194e-06/0.55, allocations: 0 / 0.5411 GB, free: 11.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.001111/0.5512, allocations: 0.5507 MB / 0.5417 GB, free: 10.97 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.152e-05/0.5512, allocations: 56.47 kB / 0.5417 GB, free: 10.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004479/0.5517, allocations: 384 kB / 0.5421 GB, free: 10.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.657e-05/0.5517, allocations: 34.7 kB / 0.5421 GB, free: 10.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.5518, allocations: 222.1 kB / 0.5423 GB, free: 10.62 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.145e-05/0.5519, allocations: 106.7 kB / 0.5424 GB, free: 10.56 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.914e-05/0.552, allocations: 11.84 kB / 0.5424 GB, free: 10.56 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.344e-05/0.5521, allocations: 346.7 kB / 0.5428 GB, free: 10.25 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002824/0.5523, allocations: 136.8 kB / 0.5429 GB, free: 10.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003265/0.5527, allocations: 232.5 kB / 0.5431 GB, free: 10.15 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.001413/0.5541, allocations: 0.5798 MB / 0.5437 GB, free: 10.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.5541, allocations: 4 kB / 0.5437 GB, free: 10.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008566/0.555, allocations: 478.7 kB / 0.5442 GB, free: 9.949 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.555, allocations: 5.062 kB / 0.5442 GB, free: 9.949 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.555, allocations: 3.75 kB / 0.5442 GB, free: 9.949 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001543/0.5552, allocations: 31.22 kB / 0.5442 GB, free: 9.941 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000348/0.5555, allocations: 85.98 kB / 0.5443 GB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002842/0.5558, allocations: 0.55 MB / 0.5448 GB, free: 9.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000414/0.5563, allocations: 59.38 kB / 0.5449 GB, free: 9.387 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.983e-05/0.5563, allocations: 18.62 kB / 0.5449 GB, free: 9.387 MB / 382.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 ($whenCondition1,$PRE.pulses.T0,pulses.T0,pulses.b,$PRE.pulses.HP,pulses.HP,$PRE.pulses.TD2,pulses.TD2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001899/0.5565, allocations: 168.8 kB / 0.5451 GB, free: 9.262 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.455e-05/0.5566, allocations: 41.36 kB / 0.5451 GB, free: 9.238 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008232/0.5574, allocations: 432.1 kB / 0.5455 GB, free: 9.152 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.407e-06/0.5574, allocations: 3.156 kB / 0.5455 GB, free: 9.152 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.5574, allocations: 1.125 kB / 0.5455 GB, free: 9.152 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.5574, allocations: 5.344 kB / 0.5455 GB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001305/0.5588, allocations: 0.8864 MB / 0.5464 GB, free: 8.809 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.5588, allocations: 0 / 0.5464 GB, free: 8.809 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000229/0.559, allocations: 55.33 kB / 0.5464 GB, free: 8.801 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.725e-05/0.5591, allocations: 30.73 kB / 0.5465 GB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.484e-05/0.5591, allocations: 8.578 kB / 0.5465 GB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002481/0.5594, allocations: 0.5399 MB / 0.547 GB, free: 8.273 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.5594, allocations: 7.438 kB / 0.547 GB, free: 8.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008636/0.5603, allocations: 0.6137 MB / 0.5476 GB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001696/0.5605, allocations: 156 kB / 0.5478 GB, free: 7.957 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.258e-05/0.5605, allocations: 7.031 kB / 0.5478 GB, free: 7.957 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000276/0.5608, allocations: 31.19 kB / 0.5478 GB, free: 7.953 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.563e-05/0.5609, allocations: 20.72 kB / 0.5478 GB, free: 7.953 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-05/0.5609, allocations: 15.25 kB / 0.5478 GB, free: 7.953 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002862/0.5612, allocations: 266.7 kB / 0.5481 GB, free: 7.867 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5612, allocations: 0 / 0.5481 GB, free: 7.867 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001787/0.563, allocations: 484.2 kB / 0.5485 GB, free: 7.77 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001552/0.5646, allocations: 0.7565 MB / 0.5493 GB, free: 7.547 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008787/0.5655, allocations: 348.2 kB / 0.5496 GB, free: 7.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.5655, allocations: 1.969 kB / 0.5496 GB, free: 7.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003071/0.5658, allocations: 155 kB / 0.5498 GB, free: 7.512 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009894/0.5668, allocations: 192.6 kB / 0.5499 GB, free: 7.492 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001817/0.5686, allocations: 1.024 MB / 0.5509 GB, free: 6.949 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003132/0.569, allocations: 0.813 MB / 0.5517 GB, free: 6.242 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003745/0.5694, allocations: 83.66 kB / 0.5518 GB, free: 6.219 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001226/0.5695, allocations: 43.05 kB / 0.5519 GB, free: 6.211 MB / 382.1 MB Notification: Performance of SimCode: time 2.835e-06/0.5695, allocations: 0 / 0.5519 GB, free: 6.211 MB / 382.1 MB Notification: Performance of Templates: time 0.02436/0.5939, allocations: 15.44 MB / 0.5669 GB, free: 11.82 MB / 398.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)