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/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: "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_4element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_4element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.08978/0.08978, allocations: 15.28 MB / 30.92 MB, free: 4.156 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.00114/0.00114, allocations: 103.3 kB / 35.92 MB, free: 3.191 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.001314/0.001314, allocations: 194.1 kB / 41.02 MB, free: 7.137 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.633/1.633, allocations: 222.9 MB / 268.9 MB, free: 6.852 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1481/0.1481, allocations: 23.34 MB / 346.6 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003228/0.003228, allocations: 108.2 kB / 478.4 MB, free: 2.305 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3655/0.3688, allocations: 59.37 MB / 0.5251 GB, free: 7.789 MB / 382.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_4element): time 0.09867/0.4675, allocations: 81.02 MB / 0.6042 GB, free: 3.457 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02834/0.4959, allocations: 22.18 MB / 0.6259 GB, free: 13.2 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009314/0.4968, allocations: 15.94 kB / 0.6259 GB, free: 13.18 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009028/0.4977, allocations: 266.1 kB / 0.6262 GB, free: 12.92 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007511/0.5053, allocations: 2.453 MB / 0.6286 GB, free: 10.45 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005834/0.5111, allocations: 2.051 MB / 0.6306 GB, free: 8.387 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.00191/0.513, allocations: 1.372 MB / 0.6319 GB, free: 7.008 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007079/0.5138, allocations: 452.7 kB / 0.6323 GB, free: 6.562 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002571/0.5163, allocations: 1.139 MB / 0.6334 GB, free: 5.418 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008323/0.5172, allocations: 0.5293 MB / 0.634 GB, free: 4.887 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 9.784e-05/0.5173, allocations: 56 kB / 0.634 GB, free: 4.832 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005321/0.5226, allocations: 1.844 MB / 0.6358 GB, free: 2.984 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002131/0.5229, allocations: 163.5 kB / 0.636 GB, free: 2.824 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00044/0.5233, allocations: 334.6 kB / 0.6363 GB, free: 2.496 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004874/0.5282, allocations: 2.405 MB / 0.6386 GB, free: 84 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.5282, allocations: 0 / 0.6386 GB, free: 84 kB / 478.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.5282, allocations: 4 kB / 0.6386 GB, free: 80 kB / 478.1 MB Notification: Performance of Transformations before backend: time 8.957e-06/0.5282, allocations: 0 / 0.6386 GB, free: 80 kB / 478.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.002272/0.5305, allocations: 1.132 MB / 0.6398 GB, free: 14.89 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.5306, allocations: 12.03 kB / 0.6398 GB, free: 14.88 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001005/0.5307, allocations: 78.53 kB / 0.6398 GB, free: 14.79 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/0.5308, allocations: 63.61 kB / 0.6399 GB, free: 14.73 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006941/0.5315, allocations: 442.5 kB / 0.6403 GB, free: 14.26 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.078e-05/0.5315, allocations: 33 kB / 0.6404 GB, free: 14.23 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.058e-05/0.5316, allocations: 44 kB / 0.6404 GB, free: 14.19 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001012/0.5327, allocations: 0.5279 MB / 0.6409 GB, free: 13.64 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.34e-05/0.5327, allocations: 7.922 kB / 0.6409 GB, free: 13.63 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.591e-05/0.5327, allocations: 16 kB / 0.6409 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.994e-05/0.5328, allocations: 16 kB / 0.641 GB, free: 13.6 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001084/0.5339, allocations: 491.7 kB / 0.6414 GB, free: 13.12 MB / 494.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.003495/0.5374, allocations: 2.463 MB / 0.6438 GB, free: 10.41 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008578/0.5383, allocations: 431 kB / 0.6442 GB, free: 9.973 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005255/0.5388, allocations: 264.7 kB / 0.6445 GB, free: 9.711 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001603/0.5404, allocations: 1.11 MB / 0.6456 GB, free: 8.5 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005514/0.541, allocations: 249.1 kB / 0.6458 GB, free: 8.242 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001721/0.5412, allocations: 51.67 kB / 0.6459 GB, free: 8.191 MB / 494.1 MB Notification: Performance of pre-optimization done (n=41): time 3.997e-06/0.5412, allocations: 3.984 kB / 0.6459 GB, free: 8.188 MB / 494.1 MB Notification: Performance of matching and sorting (n=41): time 0.001901/0.5431, allocations: 0.8237 MB / 0.6467 GB, free: 7.316 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.812e-05/0.5431, allocations: 55.73 kB / 0.6467 GB, free: 7.25 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004971/0.5436, allocations: 401.5 kB / 0.6471 GB, free: 6.852 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 6.801e-05/0.5438, allocations: 37.7 kB / 0.6471 GB, free: 6.809 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002092/0.544, allocations: 248.5 kB / 0.6474 GB, free: 6.559 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001443/0.5441, allocations: 142.8 kB / 0.6475 GB, free: 6.418 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000181/0.5443, allocations: 98.19 kB / 0.6476 GB, free: 6.316 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001842/0.5445, allocations: 358.8 kB / 0.6479 GB, free: 5.957 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004425/0.545, allocations: 181 kB / 0.6481 GB, free: 5.781 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004687/0.5454, allocations: 267.4 kB / 0.6484 GB, free: 5.484 MB / 494.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.004419/0.5499, allocations: 1.321 MB / 0.6497 GB, free: 4.117 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.5499, allocations: 0 / 0.6497 GB, free: 4.117 MB / 494.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001346/0.5512, allocations: 0.6028 MB / 0.6503 GB, free: 3.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.5513, allocations: 7.938 kB / 0.6503 GB, free: 3.492 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.956e-06/0.5513, allocations: 4 kB / 0.6503 GB, free: 3.488 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002359/0.5515, allocations: 73.67 kB / 0.6503 GB, free: 3.41 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004607/0.552, allocations: 95.97 kB / 0.6504 GB, free: 3.316 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009595/0.553, allocations: 1.12 MB / 0.6515 GB, free: 2.145 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003284/0.5533, allocations: 23.98 kB / 0.6515 GB, free: 2.121 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.551e-05/0.5534, allocations: 16 kB / 0.6516 GB, free: 2.105 MB / 494.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 (55): * Single equations (assignments): 51 * 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.0003085/0.5537, allocations: 197.8 kB / 0.6517 GB, free: 1.902 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.742e-05/0.5538, allocations: 47.66 kB / 0.6518 GB, free: 1.855 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001303/0.5551, allocations: 0.5838 MB / 0.6524 GB, free: 1.254 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.185e-06/0.5551, allocations: 7.938 kB / 0.6524 GB, free: 1.246 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.5551, allocations: 0 / 0.6524 GB, free: 1.246 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.353e-06/0.5551, allocations: 7.984 kB / 0.6524 GB, free: 1.238 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001954/0.5571, allocations: 1.122 MB / 0.6535 GB, free: 52 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.5571, allocations: 0 / 0.6535 GB, free: 52 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003849/0.5575, allocations: 71.89 kB / 0.6535 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001918/0.5577, allocations: 69.7 kB / 0.6536 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.125e-05/0.5577, allocations: 19.98 kB / 0.6536 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000868/0.5586, allocations: 1.116 MB / 0.6547 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.5586, allocations: 0 / 0.6547 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001564/0.5602, allocations: 0.8073 MB / 0.6555 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000199/0.5604, allocations: 160.8 kB / 0.6557 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.419e-05/0.5605, allocations: 12 kB / 0.6557 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003366/0.5608, allocations: 23.92 kB / 0.6557 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.561, allocations: 31.95 kB / 0.6557 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.846e-05/0.561, allocations: 19.98 kB / 0.6557 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003374/0.5613, allocations: 283.1 kB / 0.656 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.054e-06/0.5614, allocations: 0 / 0.656 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001532/0.5629, allocations: 0.5839 MB / 0.6566 GB, free: 12.76 MB / 0.4981 GB 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 (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.003678/0.5666, allocations: 2.149 MB / 0.6587 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00112/0.5677, allocations: 463 kB / 0.6591 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.5677, allocations: 4.562 kB / 0.6591 GB, free: 10.12 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005761/0.5683, allocations: 239.5 kB / 0.6594 GB, free: 9.883 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001116/0.5694, allocations: 225 kB / 0.6596 GB, free: 9.668 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007547/0.577, allocations: 4.707 MB / 0.6642 GB, free: 4.785 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005665/0.5776, allocations: 0.8431 MB / 0.665 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003795/0.578, allocations: 112.2 kB / 0.6651 GB, free: 3.801 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003535/0.5783, allocations: 171.4 kB / 0.6653 GB, free: 3.633 MB / 0.4981 GB Notification: Performance of SimCode: time 4.4e-07/0.5783, allocations: 3.938 kB / 0.6653 GB, free: 3.629 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06082/0.6392, allocations: 24.92 MB / 0.6896 GB, free: 10.82 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.31/13.95, allocations: 6.672 kB / 0.6896 GB, free: 10.81 MB / 0.5294 GB (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 & python3 -m fmpy simulate --output-file Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe 2>&1)