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.09264/0.09265, allocations: 15.28 MB / 30.91 MB, free: 4.273 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.00151/0.00151, allocations: 109.6 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.001987/0.001987, allocations: 193.1 kB / 41.02 MB, free: 7.176 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.416/1.416, allocations: 222.9 MB / 268.9 MB, free: 6.953 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1834/0.1834, allocations: 23.35 MB / 346.6 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003132/0.003132, allocations: 119.8 kB / 478.4 MB, free: 2.293 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3641/0.3673, allocations: 59.34 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_3element): time 0.08478/0.4521, allocations: 74.35 MB / 0.5977 GB, free: 10.16 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0211/0.4732, allocations: 18.84 MB / 0.6161 GB, free: 7.254 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009686/0.4743, allocations: 11.94 kB / 0.6161 GB, free: 7.242 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000829/0.4751, allocations: 234.3 kB / 0.6163 GB, free: 7.012 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006895/0.482, allocations: 2.364 MB / 0.6186 GB, free: 4.633 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004892/0.4869, allocations: 1.612 MB / 0.6202 GB, free: 3.012 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001514/0.4885, allocations: 1.216 MB / 0.6214 GB, free: 1.793 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005175/0.489, allocations: 359.6 kB / 0.6218 GB, free: 1.434 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002359/0.4914, allocations: 1.073 MB / 0.6228 GB, free: 364 kB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006086/0.492, allocations: 446.2 kB / 0.6232 GB, free: 15.92 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 6.523e-05/0.4921, allocations: 47.98 kB / 0.6233 GB, free: 15.87 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0045/0.4966, allocations: 1.712 MB / 0.6249 GB, free: 14.16 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001694/0.4968, allocations: 135.6 kB / 0.6251 GB, free: 14.02 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003202/0.4971, allocations: 286.7 kB / 0.6253 GB, free: 13.74 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004433/0.5015, allocations: 2.195 MB / 0.6275 GB, free: 11.54 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.5016, allocations: 0 / 0.6275 GB, free: 11.54 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.5016, allocations: 0 / 0.6275 GB, free: 11.54 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.747e-06/0.5016, allocations: 0 / 0.6275 GB, free: 11.54 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.001857/0.5034, allocations: 1.055 MB / 0.6285 GB, free: 10.43 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.5035, allocations: 12.03 kB / 0.6285 GB, free: 10.42 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.988e-05/0.5036, allocations: 78.47 kB / 0.6286 GB, free: 10.33 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.5037, allocations: 51.67 kB / 0.6287 GB, free: 10.28 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006014/0.5043, allocations: 418.5 kB / 0.6291 GB, free: 9.836 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.427e-05/0.5044, allocations: 29 kB / 0.6291 GB, free: 9.809 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.772e-05/0.5044, allocations: 36 kB / 0.6291 GB, free: 9.773 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007857/0.5052, allocations: 448.6 kB / 0.6295 GB, free: 9.312 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.5053, allocations: 0 / 0.6295 GB, free: 9.312 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.139e-05/0.5053, allocations: 16 kB / 0.6296 GB, free: 9.297 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.678e-05/0.5053, allocations: 15.98 kB / 0.6296 GB, free: 9.281 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007612/0.5061, allocations: 379.7 kB / 0.6299 GB, free: 8.91 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.002734/0.5088, allocations: 2.196 MB / 0.6321 GB, free: 6.484 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006677/0.5095, allocations: 363.6 kB / 0.6324 GB, free: 6.121 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003238/0.5099, allocations: 181.6 kB / 0.6326 GB, free: 5.941 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001254/0.5111, allocations: 1.006 MB / 0.6336 GB, free: 4.836 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003939/0.5115, allocations: 209.4 kB / 0.6338 GB, free: 4.621 MB / 478.1 MB Notification: Performance of pre-optimization done (n=35): time 2.033e-06/0.5115, allocations: 4 kB / 0.6338 GB, free: 4.617 MB / 478.1 MB Notification: Performance of matching and sorting (n=35): time 0.001468/0.513, allocations: 0.713 MB / 0.6345 GB, free: 3.855 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.578e-05/0.5131, allocations: 55.41 kB / 0.6345 GB, free: 3.789 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004013/0.5135, allocations: 397.5 kB / 0.6349 GB, free: 3.395 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.043e-05/0.5135, allocations: 33.7 kB / 0.6349 GB, free: 3.355 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001653/0.5137, allocations: 240.4 kB / 0.6352 GB, free: 3.117 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.416e-05/0.5138, allocations: 123 kB / 0.6353 GB, free: 2.996 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001337/0.5139, allocations: 82.08 kB / 0.6354 GB, free: 2.91 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.5141, allocations: 354.8 kB / 0.6357 GB, free: 2.555 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003309/0.5144, allocations: 148.8 kB / 0.6359 GB, free: 2.406 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003584/0.5148, allocations: 237.7 kB / 0.6361 GB, free: 2.145 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.002212/0.517, allocations: 0.9613 MB / 0.637 GB, free: 1.133 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.517, allocations: 0 / 0.637 GB, free: 1.133 MB / 478.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001012/0.518, allocations: 0.5219 MB / 0.6375 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.5181, allocations: 8 kB / 0.6375 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.034e-06/0.5181, allocations: 0 / 0.6375 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002356/0.5183, allocations: 77.67 kB / 0.6376 GB, free: 0.5078 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003596/0.5187, allocations: 79.83 kB / 0.6377 GB, free: 440 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007585/0.5195, allocations: 1.124 MB / 0.6388 GB, free: 15.25 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003365/0.5198, allocations: 51.59 kB / 0.6388 GB, free: 15.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.724e-05/0.5199, allocations: 16 kB / 0.6388 GB, free: 15.19 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.0001968/0.5201, allocations: 181.8 kB / 0.639 GB, free: 15 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.623e-05/0.5202, allocations: 47.7 kB / 0.6391 GB, free: 14.95 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009782/0.5212, allocations: 481 kB / 0.6395 GB, free: 14.46 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.5212, allocations: 4 kB / 0.6395 GB, free: 14.46 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.5212, allocations: 0 / 0.6395 GB, free: 14.46 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.5212, allocations: 0 / 0.6395 GB, free: 14.46 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001526/0.5227, allocations: 0.9772 MB / 0.6405 GB, free: 13.42 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.5227, allocations: 0 / 0.6405 GB, free: 13.42 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000237/0.523, allocations: 47.91 kB / 0.6405 GB, free: 13.37 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001778/0.5232, allocations: 69.67 kB / 0.6406 GB, free: 13.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.997e-05/0.5232, allocations: 11.98 kB / 0.6406 GB, free: 13.29 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006716/0.5239, allocations: 1.112 MB / 0.6417 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.5239, allocations: 0 / 0.6417 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001152/0.5251, allocations: 0.6828 MB / 0.6424 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001847/0.5253, allocations: 160.7 kB / 0.6425 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.062e-05/0.5253, allocations: 12 kB / 0.6425 GB, free: 11.23 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002716/0.5256, allocations: 11.98 kB / 0.6425 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.869e-05/0.5257, allocations: 31.89 kB / 0.6426 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.851e-05/0.5257, allocations: 16.06 kB / 0.6426 GB, free: 11.17 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003028/0.526, allocations: 283.1 kB / 0.6429 GB, free: 10.89 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5261, allocations: 0 / 0.6429 GB, free: 10.89 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001333/0.5274, allocations: 0.5255 MB / 0.6434 GB, free: 10.36 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.002965/0.5304, allocations: 1.966 MB / 0.6453 GB, free: 8.359 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0008682/0.5312, allocations: 380.7 kB / 0.6456 GB, free: 7.988 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.5313, allocations: 4 kB / 0.6457 GB, free: 7.984 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003857/0.5317, allocations: 183.8 kB / 0.6458 GB, free: 7.805 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001002/0.5327, allocations: 205.1 kB / 0.646 GB, free: 7.602 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005901/0.5386, allocations: 4.296 MB / 0.6502 GB, free: 3.137 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003913/0.539, allocations: 0.8311 MB / 0.651 GB, free: 2.277 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0003004/0.5393, allocations: 92.09 kB / 0.6511 GB, free: 2.184 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002093/0.5395, allocations: 155.4 kB / 0.6513 GB, free: 2.031 MB / 494.1 MB Notification: Performance of SimCode: time 5.91e-07/0.5395, allocations: 4 kB / 0.6513 GB, free: 2.027 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04604/0.5856, allocations: 22.98 MB / 0.6737 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.38/12.97, allocations: 6.828 kB / 0.6737 GB, free: 11.16 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)