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.1011/0.1011, allocations: 15.27 MB / 30.91 MB, free: 4.133 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.001115/0.001115, allocations: 104.9 kB / 35.91 MB, free: 3.195 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.00128/0.00128, allocations: 197.1 kB / 41.02 MB, free: 7.125 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.532/1.532, allocations: 222.9 MB / 268.9 MB, free: 6.816 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1334/0.1334, allocations: 23.35 MB / 346.6 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002007, allocations: 115.8 kB / 478.4 MB, free: 2.297 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.3467, allocations: 59.35 MB / 0.5251 GB, free: 7.785 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.09077/0.4375, allocations: 80.56 MB / 0.6038 GB, free: 3.918 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02434/0.4619, allocations: 22.18 MB / 0.6254 GB, free: 13.65 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008374/0.4628, allocations: 11.94 kB / 0.6255 GB, free: 13.64 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007935/0.4636, allocations: 262.1 kB / 0.6257 GB, free: 13.38 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007798/0.4714, allocations: 2.488 MB / 0.6281 GB, free: 10.88 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005398/0.4768, allocations: 2.066 MB / 0.6302 GB, free: 8.801 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.001765/0.4786, allocations: 1.375 MB / 0.6315 GB, free: 7.418 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005737/0.4792, allocations: 456.6 kB / 0.6319 GB, free: 6.969 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00239/0.4816, allocations: 1.147 MB / 0.6331 GB, free: 5.816 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007727/0.4824, allocations: 0.5254 MB / 0.6336 GB, free: 5.289 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 8.166e-05/0.4825, allocations: 60 kB / 0.6336 GB, free: 5.23 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005145/0.4876, allocations: 1.848 MB / 0.6354 GB, free: 3.379 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002337/0.4879, allocations: 163.5 kB / 0.6356 GB, free: 3.219 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004358/0.4883, allocations: 322.6 kB / 0.6359 GB, free: 2.902 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005276/0.4936, allocations: 2.413 MB / 0.6382 GB, free: 492 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.4936, allocations: 0 / 0.6382 GB, free: 492 kB / 478.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.4936, allocations: 0 / 0.6382 GB, free: 492 kB / 478.1 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.4936, allocations: 0 / 0.6382 GB, free: 492 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.002012/0.4957, allocations: 1.14 MB / 0.6394 GB, free: 15.29 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.4957, allocations: 12.03 kB / 0.6394 GB, free: 15.27 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.448e-05/0.4958, allocations: 78.53 kB / 0.6394 GB, free: 15.19 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001307/0.4959, allocations: 55.67 kB / 0.6395 GB, free: 15.13 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006011/0.4966, allocations: 454.4 kB / 0.6399 GB, free: 14.65 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.324e-05/0.4966, allocations: 29 kB / 0.64 GB, free: 14.62 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.46e-05/0.4967, allocations: 40 kB / 0.64 GB, free: 14.59 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009145/0.4976, allocations: 0.5318 MB / 0.6405 GB, free: 14.03 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.079e-05/0.4976, allocations: 7.938 kB / 0.6405 GB, free: 14.02 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.551e-05/0.4977, allocations: 16 kB / 0.6405 GB, free: 14.01 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/0.4977, allocations: 12 kB / 0.6406 GB, free: 14 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009143/0.4986, allocations: 499.7 kB / 0.641 GB, free: 13.51 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.002948/0.5016, allocations: 2.467 MB / 0.6434 GB, free: 10.79 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007397/0.5023, allocations: 431 kB / 0.6438 GB, free: 10.36 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004886/0.5028, allocations: 260.7 kB / 0.6441 GB, free: 10.1 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001374/0.5042, allocations: 1.111 MB / 0.6452 GB, free: 8.891 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004538/0.5047, allocations: 245.1 kB / 0.6454 GB, free: 8.637 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001748/0.5049, allocations: 47.7 kB / 0.6455 GB, free: 8.59 MB / 494.1 MB Notification: Performance of pre-optimization done (n=41): time 1.964e-06/0.5049, allocations: 3.938 kB / 0.6455 GB, free: 8.586 MB / 494.1 MB Notification: Performance of matching and sorting (n=41): time 0.001683/0.5066, allocations: 0.8159 MB / 0.6463 GB, free: 7.723 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.101e-05/0.5066, allocations: 55.73 kB / 0.6463 GB, free: 7.656 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004139/0.507, allocations: 405.5 kB / 0.6467 GB, free: 7.254 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.734e-05/0.5071, allocations: 33.7 kB / 0.6467 GB, free: 7.215 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000162/0.5073, allocations: 252.6 kB / 0.647 GB, free: 6.961 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.5074, allocations: 146.7 kB / 0.6471 GB, free: 6.816 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001533/0.5075, allocations: 102.2 kB / 0.6472 GB, free: 6.711 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.5077, allocations: 350.8 kB / 0.6475 GB, free: 6.359 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000361/0.508, allocations: 181 kB / 0.6477 GB, free: 6.184 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004105/0.5084, allocations: 271.4 kB / 0.648 GB, free: 5.883 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.004052/0.5125, allocations: 1.326 MB / 0.6493 GB, free: 4.512 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.125e-06/0.5125, allocations: 3.938 kB / 0.6493 GB, free: 4.508 MB / 494.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001178/0.5137, allocations: 0.5911 MB / 0.6499 GB, free: 3.902 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.5137, allocations: 12.06 kB / 0.6499 GB, free: 3.891 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.5138, allocations: 7.938 kB / 0.6499 GB, free: 3.883 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002319/0.514, allocations: 77.67 kB / 0.6499 GB, free: 3.801 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004261/0.5144, allocations: 95.88 kB / 0.65 GB, free: 3.707 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000723/0.5152, allocations: 1.124 MB / 0.6511 GB, free: 2.531 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003434/0.5155, allocations: 19.98 kB / 0.6512 GB, free: 2.512 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.58e-05/0.5156, allocations: 20 kB / 0.6512 GB, free: 2.492 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.0002179/0.5158, allocations: 181.9 kB / 0.6513 GB, free: 2.305 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.437e-05/0.5159, allocations: 51.64 kB / 0.6514 GB, free: 2.254 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001191/0.5171, allocations: 0.5838 MB / 0.652 GB, free: 1.652 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.894e-06/0.5171, allocations: 4 kB / 0.652 GB, free: 1.648 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.5171, allocations: 0 / 0.652 GB, free: 1.648 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.5171, allocations: 3.984 kB / 0.652 GB, free: 1.645 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001713/0.5188, allocations: 1.126 MB / 0.6531 GB, free: 464 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.5189, allocations: 0 / 0.6531 GB, free: 464 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003375/0.5192, allocations: 63.89 kB / 0.6531 GB, free: 400 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001778/0.5194, allocations: 73.67 kB / 0.6532 GB, free: 320 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.164e-05/0.5194, allocations: 11.98 kB / 0.6532 GB, free: 308 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006784/0.5201, allocations: 1.124 MB / 0.6543 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.5201, allocations: 0 / 0.6543 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001361/0.5215, allocations: 0.815 MB / 0.6551 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001875/0.5217, allocations: 164.7 kB / 0.6553 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.467e-05/0.5218, allocations: 4 kB / 0.6553 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003089/0.5221, allocations: 23.92 kB / 0.6553 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.007e-05/0.5222, allocations: 31.95 kB / 0.6553 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.448e-05/0.5222, allocations: 19.98 kB / 0.6553 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000303/0.5225, allocations: 287.1 kB / 0.6556 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5225, allocations: 0 / 0.6556 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001331/0.5239, allocations: 0.5762 MB / 0.6562 GB, free: 13.16 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.003091/0.527, allocations: 2.157 MB / 0.6583 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001001/0.528, allocations: 467 kB / 0.6587 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.528, allocations: 0 / 0.6587 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004785/0.5285, allocations: 240.2 kB / 0.659 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.5296, allocations: 220.5 kB / 0.6592 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00632/0.5359, allocations: 4.707 MB / 0.6638 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00037/0.5363, allocations: 0.8431 MB / 0.6646 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003504/0.5367, allocations: 108.2 kB / 0.6647 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002541/0.5369, allocations: 175.4 kB / 0.6649 GB, free: 4.035 MB / 0.4981 GB Notification: Performance of SimCode: time 4.01e-07/0.5369, allocations: 0 / 0.6649 GB, free: 4.035 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05309/0.59, allocations: 24.91 MB / 0.6892 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.53/13.12, allocations: 15.52 kB / 0.6892 GB, free: 11.22 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)