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/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/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/package.mo): time 0.1103/0.1103, allocations: 15.29 MB / 30.79 MB, free: 4.07 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.001047/0.001047, allocations: 99.61 kB / 35.77 MB, free: 3.27 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.001218/0.001218, allocations: 193.1 kB / 40.88 MB, free: 7.199 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.43/1.43, allocations: 222.9 MB / 268.7 MB, free: 6.836 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.144/0.144, allocations: 23.36 MB / 346.4 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002145/0.002145, allocations: 107.8 kB / 418.2 MB, free: 30.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1217, allocations: 59.36 MB / 477.6 MB, free: 3.031 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.3501/0.4718, allocations: 74.25 MB / 0.5389 GB, free: 9.164 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01808/0.4899, allocations: 18.84 MB / 0.5573 GB, free: 5.191 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008873/0.4908, allocations: 15.88 kB / 0.5573 GB, free: 5.176 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008525/0.4917, allocations: 241.1 kB / 0.5575 GB, free: 5.055 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007488/0.4992, allocations: 2.333 MB / 0.5598 GB, free: 3.664 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005221/0.5044, allocations: 1.586 MB / 0.5614 GB, free: 2.777 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00141/0.5059, allocations: 1.225 MB / 0.5626 GB, free: 1.973 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004648/0.5063, allocations: 353.4 kB / 0.5629 GB, free: 1.805 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002419/0.5088, allocations: 1.07 MB / 0.5639 GB, free: 1.133 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000616/0.5094, allocations: 448.4 kB / 0.5644 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.064e-05/0.5095, allocations: 44 kB / 0.5644 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005459/0.5149, allocations: 1.73 MB / 0.5661 GB, free: 15.74 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001867/0.5151, allocations: 126.9 kB / 0.5662 GB, free: 15.7 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003518/0.5155, allocations: 289.3 kB / 0.5665 GB, free: 15.51 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004713/0.5202, allocations: 2.165 MB / 0.5686 GB, free: 13.96 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.5202, allocations: 0 / 0.5686 GB, free: 13.96 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.5203, allocations: 0 / 0.5686 GB, free: 13.96 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.097e-06/0.5203, allocations: 0 / 0.5686 GB, free: 13.96 MB / 398.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.001727/0.522, allocations: 1.038 MB / 0.5696 GB, free: 12.96 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.5221, allocations: 12.03 kB / 0.5696 GB, free: 12.95 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001261/0.5222, allocations: 51.38 kB / 0.5697 GB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004952/0.5227, allocations: 385.5 kB / 0.57 GB, free: 12.54 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.13e-05/0.5227, allocations: 29 kB / 0.5701 GB, free: 12.51 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.776e-05/0.5228, allocations: 46.95 kB / 0.5701 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007569/0.5236, allocations: 442.1 kB / 0.5705 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.911e-05/0.5236, allocations: 0 / 0.5705 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.196e-05/0.5236, allocations: 19.94 kB / 0.5706 GB, free: 12.06 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.424e-05/0.5237, allocations: 10.67 kB / 0.5706 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007305/0.5244, allocations: 387.9 kB / 0.5709 GB, free: 11.69 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.002556/0.527, allocations: 2.198 MB / 0.5731 GB, free: 9.273 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006431/0.5276, allocations: 355.6 kB / 0.5734 GB, free: 8.918 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003124/0.5279, allocations: 181.6 kB / 0.5736 GB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001261/0.5292, allocations: 1.011 MB / 0.5746 GB, free: 7.637 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003935/0.5296, allocations: 206.4 kB / 0.5748 GB, free: 7.426 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 2.505e-06/0.5296, allocations: 0 / 0.5748 GB, free: 7.426 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.001498/0.5311, allocations: 0.7127 MB / 0.5755 GB, free: 6.664 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.849e-05/0.5312, allocations: 63.28 kB / 0.5755 GB, free: 6.59 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004579/0.5317, allocations: 397.6 kB / 0.5759 GB, free: 6.195 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.36e-05/0.5317, allocations: 33.7 kB / 0.5759 GB, free: 6.156 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001705/0.5319, allocations: 235 kB / 0.5762 GB, free: 5.922 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001031/0.532, allocations: 121.7 kB / 0.5763 GB, free: 5.805 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001485/0.5322, allocations: 90.03 kB / 0.5764 GB, free: 5.711 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.5323, allocations: 354.7 kB / 0.5767 GB, free: 5.355 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003135/0.5326, allocations: 144.8 kB / 0.5769 GB, free: 5.215 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000371/0.533, allocations: 237.7 kB / 0.5771 GB, free: 4.949 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.002219/0.5352, allocations: 0.9557 MB / 0.578 GB, free: 3.941 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.5353, allocations: 4 kB / 0.578 GB, free: 3.938 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001073/0.5363, allocations: 0.51 MB / 0.5785 GB, free: 3.414 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.5364, allocations: 8 kB / 0.5785 GB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.5364, allocations: 0 / 0.5785 GB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002462/0.5366, allocations: 81.86 kB / 0.5786 GB, free: 3.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003531/0.537, allocations: 79.89 kB / 0.5787 GB, free: 3.242 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008456/0.5379, allocations: 1.12 MB / 0.5798 GB, free: 2.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003956/0.5383, allocations: 51.58 kB / 0.5798 GB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.302e-05/0.5383, allocations: 16 kB / 0.5798 GB, free: 2.004 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.0002438/0.5386, allocations: 173.7 kB / 0.58 GB, free: 1.824 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.069e-05/0.5387, allocations: 47.45 kB / 0.58 GB, free: 1.777 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001033/0.5397, allocations: 481 kB / 0.5805 GB, free: 1.289 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/0.5398, allocations: 4 kB / 0.5805 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.5398, allocations: 0 / 0.5805 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.5398, allocations: 0 / 0.5805 GB, free: 1.285 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001649/0.5414, allocations: 0.9768 MB / 0.5815 GB, free: 256 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/0.5415, allocations: 3.984 kB / 0.5815 GB, free: 252 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002306/0.5417, allocations: 47.84 kB / 0.5815 GB, free: 204 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001955/0.5419, allocations: 81.73 kB / 0.5816 GB, free: 116 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.789e-05/0.5419, allocations: 8 kB / 0.5816 GB, free: 108 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007554/0.5427, allocations: 1.117 MB / 0.5827 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.5427, allocations: 0 / 0.5827 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001193/0.5439, allocations: 0.6813 MB / 0.5834 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002021/0.5441, allocations: 152.5 kB / 0.5835 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.221e-05/0.5442, allocations: 12 kB / 0.5835 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000281/0.5445, allocations: 15.98 kB / 0.5835 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.777e-05/0.5446, allocations: 27.91 kB / 0.5836 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.165e-05/0.5446, allocations: 15.98 kB / 0.5836 GB, free: 13.99 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003211/0.545, allocations: 287.1 kB / 0.5838 GB, free: 13.71 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.545, allocations: 0 / 0.5838 GB, free: 13.71 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001572/0.5465, allocations: 0.519 MB / 0.5843 GB, free: 13.19 MB / 414.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.00206/0.5486, allocations: 0.8279 MB / 0.5852 GB, free: 12.43 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.5496, allocations: 404.5 kB / 0.5855 GB, free: 12.04 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.5497, allocations: 0 / 0.5855 GB, free: 12.04 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004165/0.5501, allocations: 182.6 kB / 0.5857 GB, free: 11.86 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/0.5512, allocations: 199.1 kB / 0.5859 GB, free: 11.67 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001867/0.553, allocations: 0.9237 MB / 0.5868 GB, free: 10.72 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004594/0.5535, allocations: 0.8313 MB / 0.5876 GB, free: 9.859 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003467/0.5539, allocations: 84.14 kB / 0.5877 GB, free: 9.773 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001174/0.554, allocations: 51.42 kB / 0.5877 GB, free: 9.727 MB / 414.1 MB Notification: Performance of SimCode: time 5.61e-07/0.554, allocations: 3.938 kB / 0.5878 GB, free: 9.723 MB / 414.1 MB Notification: Performance of Templates: time 0.02774/0.5817, allocations: 18.11 MB / 0.6054 GB, free: 7.691 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)