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: "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_3element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_3element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element",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.1067/0.1067, allocations: 15.27 MB / 30.91 MB, free: 4.246 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.001618/0.001619, allocations: 112.4 kB / 35.92 MB, free: 3.156 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.001905/0.001905, allocations: 193.1 kB / 41.02 MB, free: 7.16 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.42/1.42, allocations: 222.9 MB / 268.9 MB, free: 6.848 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1393/0.1393, allocations: 23.35 MB / 346.6 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003628/0.003628, allocations: 111.8 kB / 478.4 MB, free: 2.297 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4075/0.4112, 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_3element): time 0.08288/0.4941, allocations: 74.34 MB / 0.5977 GB, free: 10.17 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02093/0.5151, allocations: 18.84 MB / 0.6161 GB, free: 7.258 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009463/0.516, allocations: 11.94 kB / 0.6161 GB, free: 7.246 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009442/0.517, allocations: 246.2 kB / 0.6163 GB, free: 7.004 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007167/0.5242, allocations: 2.325 MB / 0.6186 GB, free: 4.664 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004965/0.5292, allocations: 1.596 MB / 0.6202 GB, free: 3.059 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001833/0.531, allocations: 1.216 MB / 0.6214 GB, free: 1.84 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006501/0.5317, allocations: 359.5 kB / 0.6217 GB, free: 1.48 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00279/0.5345, allocations: 1.069 MB / 0.6227 GB, free: 416 kB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000882/0.5354, allocations: 454.2 kB / 0.6232 GB, free: 15.96 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001114/0.5355, allocations: 44 kB / 0.6232 GB, free: 15.92 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004684/0.5402, allocations: 1.704 MB / 0.6249 GB, free: 14.21 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002142/0.5405, allocations: 131.6 kB / 0.625 GB, free: 14.08 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004617/0.541, allocations: 290.7 kB / 0.6253 GB, free: 13.8 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004949/0.5459, allocations: 2.184 MB / 0.6274 GB, free: 11.61 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.5459, allocations: 0 / 0.6274 GB, free: 11.61 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.5459, allocations: 0 / 0.6274 GB, free: 11.61 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.85e-05/0.546, allocations: 0 / 0.6274 GB, free: 11.61 MB / 478.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.00208/0.5481, allocations: 1.033 MB / 0.6284 GB, free: 10.52 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.5481, allocations: 12.03 kB / 0.6284 GB, free: 10.51 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.691e-05/0.5482, allocations: 70.53 kB / 0.6285 GB, free: 10.43 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001481/0.5484, allocations: 51.42 kB / 0.6286 GB, free: 10.38 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000693/0.5491, allocations: 410.3 kB / 0.629 GB, free: 9.941 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.817e-05/0.5491, allocations: 33 kB / 0.629 GB, free: 9.91 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.562e-05/0.5492, allocations: 36 kB / 0.629 GB, free: 9.875 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008276/0.55, allocations: 448.6 kB / 0.6294 GB, free: 9.414 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.999e-05/0.5501, allocations: 0 / 0.6294 GB, free: 9.414 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.181e-05/0.5501, allocations: 16 kB / 0.6295 GB, free: 9.398 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.65e-05/0.5501, allocations: 12 kB / 0.6295 GB, free: 9.387 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007803/0.5509, allocations: 383.7 kB / 0.6298 GB, free: 9.012 MB / 478.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.002907/0.5538, allocations: 2.192 MB / 0.632 GB, free: 6.59 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006852/0.5545, allocations: 371.4 kB / 0.6323 GB, free: 6.219 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00034/0.5549, allocations: 189.6 kB / 0.6325 GB, free: 6.031 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001407/0.5563, allocations: 1.002 MB / 0.6335 GB, free: 4.93 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004267/0.5567, allocations: 209.5 kB / 0.6337 GB, free: 4.715 MB / 478.1 MB Notification: Performance of pre-optimization done (n=35): time 2.274e-06/0.5568, allocations: 0 / 0.6337 GB, free: 4.715 MB / 478.1 MB Notification: Performance of matching and sorting (n=35): time 0.001598/0.5584, allocations: 0.7204 MB / 0.6344 GB, free: 3.945 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.937e-05/0.5584, allocations: 55.41 kB / 0.6344 GB, free: 3.879 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000485/0.5589, allocations: 385.7 kB / 0.6348 GB, free: 3.496 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.414e-05/0.559, allocations: 33.7 kB / 0.6348 GB, free: 3.457 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001594/0.5591, allocations: 243.9 kB / 0.6351 GB, free: 3.215 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.5592, allocations: 114.4 kB / 0.6352 GB, free: 3.102 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001272/0.5594, allocations: 86.02 kB / 0.6353 GB, free: 3.012 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.5595, allocations: 354.8 kB / 0.6356 GB, free: 2.656 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003018/0.5598, allocations: 144.8 kB / 0.6357 GB, free: 2.512 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003613/0.5602, allocations: 241.7 kB / 0.636 GB, free: 2.246 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.002236/0.5624, allocations: 0.9497 MB / 0.6369 GB, free: 1.246 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.5624, allocations: 0 / 0.6369 GB, free: 1.246 MB / 478.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001014/0.5635, allocations: 0.5216 MB / 0.6374 GB, free: 0.7109 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.848e-05/0.5635, allocations: 8 kB / 0.6374 GB, free: 0.7031 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.5635, allocations: 4 kB / 0.6374 GB, free: 0.6992 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002271/0.5637, allocations: 81.59 kB / 0.6375 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003492/0.5641, allocations: 75.89 kB / 0.6376 GB, free: 0.5391 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008616/0.565, allocations: 1.116 MB / 0.6387 GB, free: 15.37 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003803/0.5654, allocations: 51.52 kB / 0.6387 GB, free: 15.32 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.883e-05/0.5654, allocations: 23.92 kB / 0.6387 GB, free: 15.3 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 (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.0002574/0.5657, allocations: 173.9 kB / 0.6389 GB, free: 15.12 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.692e-05/0.5658, allocations: 47.38 kB / 0.6389 GB, free: 15.07 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001028/0.5668, allocations: 477.1 kB / 0.6394 GB, free: 14.59 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.659e-06/0.5669, allocations: 4 kB / 0.6394 GB, free: 14.58 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.5669, allocations: 0 / 0.6394 GB, free: 14.58 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.5669, allocations: 3.984 kB / 0.6394 GB, free: 14.58 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001703/0.5686, allocations: 0.9771 MB / 0.6404 GB, free: 13.54 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.5686, allocations: 0 / 0.6404 GB, free: 13.54 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002485/0.5689, allocations: 47.91 kB / 0.6404 GB, free: 13.49 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002196/0.5691, allocations: 69.67 kB / 0.6405 GB, free: 13.41 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.44e-05/0.5691, allocations: 11.98 kB / 0.6405 GB, free: 13.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007827/0.5699, allocations: 1.116 MB / 0.6416 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.5699, allocations: 0 / 0.6416 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/0.5711, allocations: 0.6787 MB / 0.6422 GB, free: 11.53 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002041/0.5714, allocations: 152.5 kB / 0.6424 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.516e-05/0.5714, allocations: 11.98 kB / 0.6424 GB, free: 11.35 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002749/0.5717, allocations: 15.98 kB / 0.6424 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.277e-05/0.5718, allocations: 31.84 kB / 0.6424 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.09e-05/0.5719, allocations: 16.05 kB / 0.6425 GB, free: 11.29 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000319/0.5722, allocations: 283.2 kB / 0.6427 GB, free: 11.01 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5722, allocations: 0 / 0.6427 GB, free: 11.01 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00127/0.5735, allocations: 0.5228 MB / 0.6432 GB, free: 10.49 MB / 494.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.00315/0.5766, allocations: 1.955 MB / 0.6452 GB, free: 8.496 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0009089/0.5776, allocations: 376.6 kB / 0.6455 GB, free: 8.129 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.5776, allocations: 4.188 kB / 0.6455 GB, free: 8.125 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000416/0.578, allocations: 183.8 kB / 0.6457 GB, free: 7.945 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001028/0.579, allocations: 213.1 kB / 0.6459 GB, free: 7.734 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006218/0.5853, allocations: 4.275 MB / 0.6501 GB, free: 3.293 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003899/0.5857, allocations: 0.8194 MB / 0.6509 GB, free: 2.445 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002994/0.586, allocations: 92.09 kB / 0.651 GB, free: 2.352 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002198/0.5862, allocations: 159.4 kB / 0.6511 GB, free: 2.195 MB / 494.1 MB Notification: Performance of SimCode: time 1.052e-06/0.5862, allocations: 0 / 0.6511 GB, free: 2.195 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0497/0.6359, allocations: 22.98 MB / 0.6736 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.2/12.83, allocations: 15.73 kB / 0.6736 GB, free: 11.31 MB / 0.5137 GB (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 & python3 -m fmpy simulate --output-file Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element_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_3element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe 2>&1)