Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.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_2element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_2element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element",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.0925/0.0925, allocations: 15.28 MB / 30.91 MB, free: 4.141 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.001097/0.001097, allocations: 109.4 kB / 35.92 MB, free: 3.188 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.001308/0.001308, allocations: 189.1 kB / 41.02 MB, free: 7.129 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.387/1.387, allocations: 222.9 MB / 268.9 MB, free: 6.883 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1427/0.1427, allocations: 23.36 MB / 346.6 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004195/0.004195, allocations: 112 kB / 478.4 MB, free: 2.297 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3649/0.3691, allocations: 59.35 MB / 0.5251 GB, free: 7.777 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_2element): time 0.07852/0.4476, allocations: 68.11 MB / 0.5916 GB, free: 432 kB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01986/0.4675, allocations: 15.49 MB / 0.6067 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000709/0.4683, allocations: 15.94 kB / 0.6068 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007311/0.469, allocations: 198.5 kB / 0.6069 GB, free: 0.6602 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006301/0.4753, allocations: 2.216 MB / 0.6091 GB, free: 14.43 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003151/0.4785, allocations: 1.134 MB / 0.6102 GB, free: 13.28 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001522/0.48, allocations: 1.102 MB / 0.6113 GB, free: 12.18 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006964/0.4808, allocations: 326.4 kB / 0.6116 GB, free: 11.85 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002445/0.4832, allocations: 1.03 MB / 0.6126 GB, free: 10.82 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007272/0.484, allocations: 402.4 kB / 0.613 GB, free: 10.42 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 9.26e-05/0.4841, allocations: 40 kB / 0.613 GB, free: 10.38 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004759/0.4888, allocations: 1.571 MB / 0.6146 GB, free: 8.809 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002046/0.4891, allocations: 115.6 kB / 0.6147 GB, free: 8.695 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004358/0.4895, allocations: 258.8 kB / 0.6149 GB, free: 8.441 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004789/0.4943, allocations: 2.021 MB / 0.6169 GB, free: 6.414 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.137e-05/0.4943, allocations: 4 kB / 0.6169 GB, free: 6.41 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.4943, allocations: 4 kB / 0.6169 GB, free: 6.406 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.739e-05/0.4944, allocations: 0 / 0.6169 GB, free: 6.406 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001914/0.4963, allocations: 0.9592 MB / 0.6178 GB, free: 5.398 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.4963, allocations: 12.03 kB / 0.6179 GB, free: 5.387 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.902e-05/0.4964, allocations: 78.41 kB / 0.6179 GB, free: 5.301 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001176/0.4966, allocations: 51.38 kB / 0.618 GB, free: 5.25 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005374/0.4971, allocations: 393.8 kB / 0.6184 GB, free: 4.824 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.732e-05/0.4971, allocations: 24.66 kB / 0.6184 GB, free: 4.801 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.567e-05/0.4972, allocations: 32 kB / 0.6184 GB, free: 4.77 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000665/0.4979, allocations: 399.6 kB / 0.6188 GB, free: 4.359 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.864e-05/0.4979, allocations: 7.938 kB / 0.6188 GB, free: 4.352 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.335e-05/0.4979, allocations: 12 kB / 0.6188 GB, free: 4.34 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.972e-05/0.498, allocations: 11.94 kB / 0.6188 GB, free: 4.328 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006625/0.4986, allocations: 334.4 kB / 0.6191 GB, free: 4 MB / 462.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.002451/0.5011, allocations: 2.046 MB / 0.6211 GB, free: 1.738 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005874/0.5017, allocations: 310.5 kB / 0.6214 GB, free: 1.426 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002921/0.502, allocations: 160.7 kB / 0.6216 GB, free: 1.266 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001173/0.5032, allocations: 0.958 MB / 0.6225 GB, free: 212 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003492/0.5035, allocations: 187.3 kB / 0.6227 GB, free: 12 kB / 462.1 MB Notification: Performance of pre-optimization done (n=31): time 1.784e-06/0.5036, allocations: 0 / 0.6227 GB, free: 12 kB / 462.1 MB Notification: Performance of matching and sorting (n=31): time 0.00117/0.5047, allocations: 0.5426 MB / 0.6232 GB, free: 15.44 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.032e-05/0.5048, allocations: 59.41 kB / 0.6233 GB, free: 15.37 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004006/0.5052, allocations: 377.6 kB / 0.6236 GB, free: 14.99 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.954e-05/0.5052, allocations: 33.7 kB / 0.6237 GB, free: 14.95 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001457/0.5054, allocations: 231.9 kB / 0.6239 GB, free: 14.72 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.36e-05/0.5055, allocations: 102.5 kB / 0.624 GB, free: 14.62 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.5056, allocations: 82.11 kB / 0.6241 GB, free: 14.54 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.5057, allocations: 346.8 kB / 0.6244 GB, free: 14.19 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002857/0.506, allocations: 136.8 kB / 0.6245 GB, free: 14.05 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003363/0.5064, allocations: 221.7 kB / 0.6247 GB, free: 13.8 MB / 478.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.002025/0.5084, allocations: 0.8746 MB / 0.6256 GB, free: 12.88 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.5084, allocations: 0 / 0.6256 GB, free: 12.88 MB / 478.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0009035/0.5093, allocations: 473.8 kB / 0.6261 GB, free: 12.41 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/0.5094, allocations: 8 kB / 0.6261 GB, free: 12.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.5094, allocations: 0 / 0.6261 GB, free: 12.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001272/0.5095, allocations: 37.16 kB / 0.6261 GB, free: 12.36 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003386/0.5099, allocations: 75.89 kB / 0.6262 GB, free: 12.29 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003958/0.5103, allocations: 0.5406 MB / 0.6267 GB, free: 11.72 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003168/0.5106, allocations: 55.48 kB / 0.6267 GB, free: 11.66 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.774e-05/0.5107, allocations: 19.98 kB / 0.6268 GB, free: 11.64 MB / 478.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 (47): * 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: 1 * 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): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002073/0.5109, allocations: 166.8 kB / 0.6269 GB, free: 11.47 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.875e-05/0.5109, allocations: 39.47 kB / 0.627 GB, free: 11.43 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009048/0.5119, allocations: 424.7 kB / 0.6274 GB, free: 11 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.267e-06/0.5119, allocations: 7.922 kB / 0.6274 GB, free: 10.99 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.5119, allocations: 4 kB / 0.6274 GB, free: 10.98 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.5119, allocations: 0 / 0.6274 GB, free: 10.98 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001354/0.5133, allocations: 0.8631 MB / 0.6282 GB, free: 10.06 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.5133, allocations: 4.031 kB / 0.6282 GB, free: 10.05 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002235/0.5135, allocations: 43.97 kB / 0.6283 GB, free: 10.01 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.516e-05/0.5136, allocations: 36.77 kB / 0.6283 GB, free: 9.973 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.458e-05/0.5136, allocations: 8 kB / 0.6283 GB, free: 9.965 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003565/0.514, allocations: 0.5368 MB / 0.6288 GB, free: 9.402 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.514, allocations: 12.06 kB / 0.6288 GB, free: 9.391 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000986/0.515, allocations: 0.5836 MB / 0.6294 GB, free: 8.785 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001616/0.5152, allocations: 144.6 kB / 0.6296 GB, free: 8.625 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.992e-05/0.5152, allocations: 11.94 kB / 0.6296 GB, free: 8.613 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002401/0.5155, allocations: 16.05 kB / 0.6296 GB, free: 8.598 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.051e-05/0.5156, allocations: 23.97 kB / 0.6296 GB, free: 8.574 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.922e-05/0.5156, allocations: 15.98 kB / 0.6296 GB, free: 8.559 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0002829/0.5159, allocations: 271.2 kB / 0.6299 GB, free: 8.301 MB / 478.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5159, allocations: 0 / 0.6299 GB, free: 8.301 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001168/0.5171, allocations: 491.4 kB / 0.6303 GB, free: 7.82 MB / 478.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 (28): * 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: 1 * 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): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002763/0.5198, allocations: 1.83 MB / 0.6321 GB, free: 5.957 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.000793/0.5207, allocations: 331.4 kB / 0.6325 GB, free: 5.633 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.5207, allocations: 0 / 0.6325 GB, free: 5.633 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003434/0.521, allocations: 156.5 kB / 0.6326 GB, free: 5.48 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009709/0.522, allocations: 200.2 kB / 0.6328 GB, free: 5.285 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006098/0.5281, allocations: 3.982 MB / 0.6367 GB, free: 1.137 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004892/0.5286, allocations: 0.8113 MB / 0.6375 GB, free: 304 kB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0003206/0.5289, allocations: 87.28 kB / 0.6376 GB, free: 216 kB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002228/0.5292, allocations: 143.4 kB / 0.6377 GB, free: 72 kB / 478.1 MB Notification: Performance of SimCode: time 6.42e-07/0.5292, allocations: 3.938 kB / 0.6377 GB, free: 68 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04463/0.5738, allocations: 21.12 MB / 0.6583 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.22/12.79, allocations: 3.859 kB / 0.6583 GB, free: 11.05 MB / 0.4981 GB (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.sim & python3 -m fmpy simulate --output-file Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element_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_2element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe 2>&1)