Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.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_4element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element") translateModel(Physiolibrary.Fluid.Examples.Windkessel_4element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1474/0.1474, allocations: 15.26 MB / 30.24 MB, free: 5.832 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.0007213/0.0007215, allocations: 99.2 kB / 35.25 MB, free: 1.242 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.001466/0.001466, allocations: 180.5 kB / 40.35 MB, free: 4.867 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.495/1.495, allocations: 223.3 MB / 268.6 MB, free: 2.148 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1582/0.1582, allocations: 23.41 MB / 347.3 MB, free: 10.55 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005016/0.000502, allocations: 16 kB / 419.6 MB, free: 2.227 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3547/0.3553, allocations: 60.48 MB / 480 MB, free: 36.9 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_4element): time 0.04916/0.4045, allocations: 56.83 MB / 0.5243 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02157/0.4261, allocations: 20.58 MB / 0.5444 GB, free: 7.281 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001191/0.4273, allocations: 35.69 kB / 0.5444 GB, free: 7.246 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007541/0.4281, allocations: 210.5 kB / 0.5446 GB, free: 7.039 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006019/0.4341, allocations: 2.155 MB / 0.5467 GB, free: 4.871 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004804/0.4389, allocations: 1.612 MB / 0.5483 GB, free: 3.25 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00211/0.4411, allocations: 1.742 MB / 0.55 GB, free: 1.5 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000621/0.4417, allocations: 374.7 kB / 0.5504 GB, free: 1.133 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002138/0.4439, allocations: 0.9877 MB / 0.5513 GB, free: 144 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008276/0.4447, allocations: 0.5215 MB / 0.5518 GB, free: 15.62 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.676e-05/0.4448, allocations: 36 kB / 0.5519 GB, free: 15.58 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005105/0.4499, allocations: 1.295 MB / 0.5531 GB, free: 14.29 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002702/0.4502, allocations: 139.5 kB / 0.5533 GB, free: 14.15 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003906/0.4506, allocations: 137.5 kB / 0.5534 GB, free: 14.01 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003784/0.4544, allocations: 1.561 MB / 0.5549 GB, free: 12.44 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.493e-06/0.4544, allocations: 0 / 0.5549 GB, free: 12.44 MB / 414.1 MB Notification: Performance of FrontEnd: time 5.07e-06/0.4544, allocations: 0 / 0.5549 GB, free: 12.44 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.358e-06/0.4545, allocations: 3.938 kB / 0.5549 GB, free: 12.44 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.00226/0.4567, allocations: 1.022 MB / 0.5559 GB, free: 11.36 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.4568, allocations: 12.03 kB / 0.5559 GB, free: 11.35 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001232/0.4569, allocations: 59.25 kB / 0.556 GB, free: 11.29 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000659/0.4576, allocations: 398.5 kB / 0.5564 GB, free: 10.86 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.05e-05/0.4576, allocations: 40.98 kB / 0.5564 GB, free: 10.82 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.981e-05/0.4577, allocations: 40 kB / 0.5564 GB, free: 10.79 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009736/0.4587, allocations: 0.5318 MB / 0.557 GB, free: 10.23 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.808e-05/0.4587, allocations: 0 / 0.557 GB, free: 10.23 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.114e-05/0.4588, allocations: 23.95 kB / 0.557 GB, free: 10.21 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.561e-05/0.4588, allocations: 12 kB / 0.557 GB, free: 10.2 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009259/0.4597, allocations: 0.4958 MB / 0.5575 GB, free: 9.699 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.003222/0.463, allocations: 2.459 MB / 0.5599 GB, free: 6.996 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007749/0.4638, allocations: 434.6 kB / 0.5603 GB, free: 6.559 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005099/0.4643, allocations: 272.1 kB / 0.5606 GB, free: 6.293 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001555/0.4659, allocations: 1.118 MB / 0.5617 GB, free: 5.074 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004973/0.4664, allocations: 268.7 kB / 0.5619 GB, free: 4.797 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001835/0.4666, allocations: 39.59 kB / 0.5619 GB, free: 4.758 MB / 414.1 MB Notification: Performance of pre-optimization done (n=41): time 2.535e-06/0.4666, allocations: 0 / 0.5619 GB, free: 4.758 MB / 414.1 MB Notification: Performance of matching and sorting (n=41): time 0.001723/0.4683, allocations: 0.8344 MB / 0.5628 GB, free: 3.875 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.683e-05/0.4683, allocations: 55.73 kB / 0.5628 GB, free: 3.809 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004606/0.4688, allocations: 401.5 kB / 0.5632 GB, free: 3.406 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.11e-05/0.4689, allocations: 29.7 kB / 0.5632 GB, free: 3.371 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001522/0.469, allocations: 244.2 kB / 0.5635 GB, free: 3.125 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/0.4691, allocations: 142 kB / 0.5636 GB, free: 2.984 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.599e-05/0.4692, allocations: 8 kB / 0.5636 GB, free: 2.977 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.4693, allocations: 354.7 kB / 0.5639 GB, free: 2.621 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000335/0.4696, allocations: 189 kB / 0.5641 GB, free: 2.438 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003783/0.47, allocations: 279.4 kB / 0.5644 GB, free: 2.133 MB / 414.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.003053/0.4731, allocations: 0.9245 MB / 0.5653 GB, free: 1.188 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.4731, allocations: 4 kB / 0.5653 GB, free: 1.184 MB / 414.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.00108/0.4742, allocations: 0.6024 MB / 0.5659 GB, free: 0.5703 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.4742, allocations: 6.344 kB / 0.5659 GB, free: 0.5664 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.4742, allocations: 4 kB / 0.5659 GB, free: 0.5625 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002346/0.4745, allocations: 81.97 kB / 0.566 GB, free: 488 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004149/0.4749, allocations: 99.88 kB / 0.5661 GB, free: 388 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007739/0.4757, allocations: 1.117 MB / 0.5672 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004183/0.4761, allocations: 47.81 kB / 0.5672 GB, free: 15.16 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.681e-05/0.4762, allocations: 24.08 kB / 0.5672 GB, free: 15.14 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 ($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 (55): * Single equations (assignments): 51 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002382/0.4764, allocations: 181.3 kB / 0.5674 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.773e-05/0.4765, allocations: 43.44 kB / 0.5674 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001117/0.4776, allocations: 0.6084 MB / 0.568 GB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.4776, allocations: 7.984 kB / 0.568 GB, free: 14.28 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.4776, allocations: 0 / 0.568 GB, free: 14.28 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.4777, allocations: 0 / 0.568 GB, free: 14.28 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001666/0.4793, allocations: 1.137 MB / 0.5691 GB, free: 13.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.4793, allocations: 4 kB / 0.5692 GB, free: 13.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003422/0.4797, allocations: 75.89 kB / 0.5692 GB, free: 13 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001707/0.4799, allocations: 73.7 kB / 0.5693 GB, free: 12.92 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.4e-05/0.4799, allocations: 11.98 kB / 0.5693 GB, free: 12.91 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007355/0.4807, allocations: 1.12 MB / 0.5704 GB, free: 11.73 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.4807, allocations: 0 / 0.5704 GB, free: 11.73 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00135/0.482, allocations: 0.8135 MB / 0.5712 GB, free: 10.89 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002259/0.4823, allocations: 168.5 kB / 0.5714 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.245e-05/0.4823, allocations: 12 kB / 0.5714 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003398/0.4827, allocations: 35.97 kB / 0.5714 GB, free: 10.66 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.837e-05/0.4828, allocations: 31.89 kB / 0.5714 GB, free: 10.63 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.525e-05/0.4828, allocations: 19.98 kB / 0.5715 GB, free: 10.61 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003178/0.4832, allocations: 283.1 kB / 0.5717 GB, free: 10.34 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4832, allocations: 0 / 0.5717 GB, free: 10.34 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001758/0.4849, allocations: 0.5579 MB / 0.5723 GB, free: 9.785 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (arteries.enthalpy,arteries.substanceMasses[1],inertia.q_in.m_flow) * 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 (38): * Single equations (assignments): 32 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001563/0.4865, allocations: 0.8652 MB / 0.5731 GB, free: 8.91 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001057/0.4876, allocations: 470 kB / 0.5736 GB, free: 8.449 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.4876, allocations: 0 / 0.5736 GB, free: 8.449 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004578/0.4881, allocations: 240.9 kB / 0.5738 GB, free: 8.215 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00105/0.4891, allocations: 215.2 kB / 0.574 GB, free: 8 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001955/0.4911, allocations: 1.315 MB / 0.5753 GB, free: 6.656 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004397/0.4916, allocations: 0.8395 MB / 0.5761 GB, free: 5.789 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003775/0.4919, allocations: 108.2 kB / 0.5762 GB, free: 5.68 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001519/0.4921, allocations: 59.34 kB / 0.5763 GB, free: 5.621 MB / 430.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4921, allocations: 0 / 0.5763 GB, free: 5.621 MB / 430.1 MB Notification: Performance of Templates: time 0.02805/0.5202, allocations: 18.29 MB / 0.5941 GB, free: 3.434 MB / 446.1 MB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.makefile (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe 2>&1)