Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.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_3element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element") translateModel(Physiolibrary.Fluid.Examples.Windkessel_3element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1089/0.1089, 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.001127/0.001128, allocations: 108.3 kB / 35.48 MB, free: 3.391 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.00132/0.001321, allocations: 200.5 kB / 40.58 MB, free: 7.457 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.464/1.464, allocations: 222.9 MB / 268.4 MB, free: 6.555 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1464/0.1464, allocations: 23.36 MB / 346.1 MB, free: 476 kB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001815/0.001815, allocations: 103.8 kB / 417.7 MB, free: 30.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1391, allocations: 59.37 MB / 477 MB, free: 3.309 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_3element): time 0.3794/0.5186, allocations: 73.47 MB / 0.5376 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01744/0.536, allocations: 18.76 MB / 0.5559 GB, free: 7.629 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001291/0.5374, allocations: 31.75 kB / 0.5559 GB, free: 7.598 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008053/0.5382, allocations: 200.2 kB / 0.5561 GB, free: 7.512 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006664/0.5449, allocations: 2.164 MB / 0.5583 GB, free: 6.273 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005338/0.5502, allocations: 1.449 MB / 0.5597 GB, free: 5.484 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001673/0.5519, allocations: 1.223 MB / 0.5609 GB, free: 4.699 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000492/0.5524, allocations: 351 kB / 0.5612 GB, free: 4.539 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002337/0.5548, allocations: 1.047 MB / 0.5622 GB, free: 3.902 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006523/0.5554, allocations: 472 kB / 0.5627 GB, free: 3.629 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.423e-05/0.5555, allocations: 48 kB / 0.5627 GB, free: 3.582 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004964/0.5605, allocations: 1.749 MB / 0.5644 GB, free: 2.426 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001739/0.5607, allocations: 132.1 kB / 0.5646 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000324/0.561, allocations: 289 kB / 0.5648 GB, free: 2.191 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005114/0.5661, allocations: 2.093 MB / 0.5669 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.5662, allocations: 1.922 kB / 0.5669 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.5662, allocations: 0 / 0.5669 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.5662, allocations: 0 / 0.5669 GB, free: 0.9141 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001916/0.5681, allocations: 1.043 MB / 0.5679 GB, free: 15.95 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.5682, allocations: 8.031 kB / 0.5679 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001354/0.5683, allocations: 59.28 kB / 0.568 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005139/0.5688, allocations: 390.9 kB / 0.5683 GB, free: 15.51 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.192e-05/0.5689, allocations: 33 kB / 0.5684 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.474e-05/0.5689, allocations: 39.23 kB / 0.5684 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007896/0.5697, allocations: 442.7 kB / 0.5688 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.5698, allocations: 0 / 0.5688 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.011e-05/0.5698, allocations: 16 kB / 0.5688 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.344e-05/0.5698, allocations: 8 kB / 0.5688 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007011/0.5705, allocations: 392.8 kB / 0.5692 GB, free: 14.71 MB / 398.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.00272/0.5733, allocations: 2.196 MB / 0.5714 GB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006131/0.5739, allocations: 355.6 kB / 0.5717 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002994/0.5742, allocations: 181.6 kB / 0.5719 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001269/0.5755, allocations: 0.9996 MB / 0.5728 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000392/0.5759, allocations: 214.3 kB / 0.5731 GB, free: 10.61 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 1.994e-06/0.5759, allocations: 0 / 0.5731 GB, free: 10.61 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.001488/0.5774, allocations: 0.7166 MB / 0.5738 GB, free: 9.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.922e-05/0.5775, allocations: 55.41 kB / 0.5738 GB, free: 9.773 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004201/0.5779, allocations: 397.5 kB / 0.5742 GB, free: 9.379 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.158e-05/0.5779, allocations: 29.7 kB / 0.5742 GB, free: 9.344 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000167/0.5781, allocations: 236 kB / 0.5744 GB, free: 9.105 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.207e-05/0.5782, allocations: 113 kB / 0.5745 GB, free: 8.996 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/0.5783, allocations: 86.11 kB / 0.5746 GB, free: 8.906 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.5785, allocations: 362.7 kB / 0.575 GB, free: 8.543 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002925/0.5788, allocations: 144.8 kB / 0.5751 GB, free: 8.402 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003414/0.5791, allocations: 241.7 kB / 0.5753 GB, free: 8.133 MB / 398.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.002112/0.5813, allocations: 0.9518 MB / 0.5763 GB, free: 7.129 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.5813, allocations: 0 / 0.5763 GB, free: 7.129 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0009873/0.5823, allocations: 0.5181 MB / 0.5768 GB, free: 6.598 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.5823, allocations: 7.938 kB / 0.5768 GB, free: 6.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.5823, allocations: 4 kB / 0.5768 GB, free: 6.586 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002326/0.5825, allocations: 77.59 kB / 0.5769 GB, free: 6.504 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003428/0.5829, allocations: 79.98 kB / 0.5769 GB, free: 6.426 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007387/0.5837, allocations: 1.116 MB / 0.578 GB, free: 5.258 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000411/0.5841, allocations: 67.59 kB / 0.5781 GB, free: 5.191 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.174e-05/0.5841, allocations: 19.98 kB / 0.5781 GB, free: 5.172 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 (48): * 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: 2 * 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): 2 systems {(1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002436/0.5844, allocations: 177.2 kB / 0.5783 GB, free: 4.992 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.057e-05/0.5845, allocations: 39.53 kB / 0.5783 GB, free: 4.953 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009629/0.5854, allocations: 484.9 kB / 0.5788 GB, free: 4.461 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.115e-05/0.5854, allocations: 4 kB / 0.5788 GB, free: 4.457 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.5855, allocations: 4 kB / 0.5788 GB, free: 4.453 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.5855, allocations: 3.984 kB / 0.5788 GB, free: 4.449 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0015/0.587, allocations: 0.9666 MB / 0.5797 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.587, allocations: 0 / 0.5797 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002322/0.5872, allocations: 48 kB / 0.5798 GB, free: 3.379 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001944/0.5874, allocations: 77.7 kB / 0.5799 GB, free: 3.297 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.852e-05/0.5875, allocations: 11.98 kB / 0.5799 GB, free: 3.285 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006914/0.5882, allocations: 1.116 MB / 0.581 GB, free: 2.117 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.5882, allocations: 3.984 kB / 0.581 GB, free: 2.113 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001128/0.5893, allocations: 0.6813 MB / 0.5816 GB, free: 1.406 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001807/0.5895, allocations: 160.5 kB / 0.5818 GB, free: 1.23 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.765e-05/0.5896, allocations: 11.94 kB / 0.5818 GB, free: 1.219 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003089/0.5899, allocations: 23.97 kB / 0.5818 GB, free: 1.195 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.914e-05/0.59, allocations: 28.03 kB / 0.5818 GB, free: 1.168 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.101e-05/0.59, allocations: 15.98 kB / 0.5819 GB, free: 1.152 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002946/0.5903, allocations: 279.1 kB / 0.5821 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5903, allocations: 0 / 0.5821 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001466/0.5918, allocations: 0.5189 MB / 0.5826 GB, free: 372 kB / 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 (29): * 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: 2 * 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): 2 systems {(1,3), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001433/0.5932, allocations: 0.8258 MB / 0.5834 GB, free: 15.61 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009715/0.5942, allocations: 412.7 kB / 0.5838 GB, free: 15.2 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.5942, allocations: 0 / 0.5838 GB, free: 15.2 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003875/0.5946, allocations: 175.8 kB / 0.584 GB, free: 15.03 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00105/0.5957, allocations: 213.7 kB / 0.5842 GB, free: 14.83 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001745/0.5975, allocations: 1.073 MB / 0.5853 GB, free: 13.74 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003861/0.5979, allocations: 0.8273 MB / 0.5861 GB, free: 12.88 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003384/0.5982, allocations: 84.16 kB / 0.5861 GB, free: 12.79 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.5983, allocations: 43.36 kB / 0.5862 GB, free: 12.75 MB / 414.1 MB Notification: Performance of SimCode: time 2.31e-07/0.5983, allocations: 0 / 0.5862 GB, free: 12.75 MB / 414.1 MB Notification: Performance of Templates: time 0.02524/0.6236, allocations: 17.99 MB / 0.6037 GB, free: 10.86 MB / 430.1 MB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.makefile (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe 2>&1)