Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.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.MinimalCirculation,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.MinimalCirculation,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation",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.08764/0.08764, allocations: 15.27 MB / 30.91 MB, free: 4.266 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.00105/0.00105, allocations: 113.1 kB / 35.92 MB, free: 3.145 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.001306/0.001306, 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.387/1.387, allocations: 222.9 MB / 268.9 MB, free: 6.934 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1421/0.1421, allocations: 23.37 MB / 346.6 MB, free: 0.6523 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002134/0.002134, allocations: 112.2 kB / 478.3 MB, free: 2.309 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3145/0.3167, allocations: 59.36 MB / 0.5251 GB, free: 7.797 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Fluid.mo:596:7-596: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:596:7-596: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.MinimalCirculation): time 0.08683/0.4035, allocations: 75.58 MB / 0.5989 GB, free: 8.922 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01801/0.4216, allocations: 15.33 MB / 0.6139 GB, free: 9.531 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00146/0.4231, allocations: 19.88 kB / 0.6139 GB, free: 9.512 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009009/0.424, allocations: 246.2 kB / 0.6141 GB, free: 9.27 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0045/0.4285, allocations: 1.553 MB / 0.6157 GB, free: 7.707 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006157/0.4347, allocations: 2.144 MB / 0.6178 GB, free: 5.551 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001829/0.4365, allocations: 1.524 MB / 0.6192 GB, free: 4.02 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006351/0.4372, allocations: 427.5 kB / 0.6196 GB, free: 3.598 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002619/0.4398, allocations: 1.163 MB / 0.6208 GB, free: 2.43 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008073/0.4407, allocations: 0.5409 MB / 0.6213 GB, free: 1.887 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 8.069e-05/0.4407, allocations: 56 kB / 0.6214 GB, free: 1.832 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004123/0.4449, allocations: 1.482 MB / 0.6228 GB, free: 356 kB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001902/0.4451, allocations: 167.5 kB / 0.623 GB, free: 188 kB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003643/0.4455, allocations: 346.5 kB / 0.6233 GB, free: 15.84 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00375/0.4492, allocations: 2.075 MB / 0.6253 GB, free: 13.76 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.4492, allocations: 0 / 0.6253 GB, free: 13.76 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4493, allocations: 0 / 0.6253 GB, free: 13.76 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.267e-06/0.4493, allocations: 0 / 0.6253 GB, free: 13.76 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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.002068/0.4513, allocations: 1.14 MB / 0.6264 GB, free: 12.56 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.4514, allocations: 12.03 kB / 0.6265 GB, free: 12.55 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.89e-05/0.4515, allocations: 82.45 kB / 0.6265 GB, free: 12.46 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/0.4516, allocations: 63.25 kB / 0.6266 GB, free: 12.4 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006998/0.4523, allocations: 476.4 kB / 0.627 GB, free: 11.89 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.212e-05/0.4524, allocations: 37 kB / 0.6271 GB, free: 11.86 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.332e-05/0.4525, allocations: 44 kB / 0.6271 GB, free: 11.81 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009943/0.4535, allocations: 0.5499 MB / 0.6277 GB, free: 11.23 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.101e-05/0.4535, allocations: 11.88 kB / 0.6277 GB, free: 11.22 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.621e-05/0.4536, allocations: 20 kB / 0.6277 GB, free: 11.2 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.432e-05/0.4536, allocations: 8 kB / 0.6277 GB, free: 11.19 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001014/0.4546, allocations: 491.6 kB / 0.6282 GB, free: 10.71 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.002772/0.4574, allocations: 2.251 MB / 0.6304 GB, free: 8.305 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008931/0.4583, allocations: 0.5232 MB / 0.6309 GB, free: 7.754 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005188/0.4588, allocations: 263.9 kB / 0.6311 GB, free: 7.496 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001607/0.4604, allocations: 1.398 MB / 0.6325 GB, free: 5.941 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005297/0.461, allocations: 275.8 kB / 0.6328 GB, free: 5.66 MB / 478.1 MB Notification: Performance of pre-optimization done (n=38): time 2.034e-06/0.461, allocations: 0 / 0.6328 GB, free: 5.66 MB / 478.1 MB Notification: Performance of matching and sorting (n=38): time 0.001568/0.4626, allocations: 0.714 MB / 0.6335 GB, free: 4.918 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.642e-05/0.4626, allocations: 63.41 kB / 0.6335 GB, free: 4.844 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004741/0.4631, allocations: 469.8 kB / 0.634 GB, free: 4.379 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.29e-05/0.4631, allocations: 29.7 kB / 0.634 GB, free: 4.344 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001743/0.4633, allocations: 287.7 kB / 0.6343 GB, free: 4.055 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.4634, allocations: 134.1 kB / 0.6344 GB, free: 3.922 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001552/0.4636, allocations: 106.1 kB / 0.6345 GB, free: 3.812 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.4637, allocations: 362.8 kB / 0.6348 GB, free: 3.449 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004493/0.4642, allocations: 217 kB / 0.635 GB, free: 3.234 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005157/0.4647, allocations: 340.4 kB / 0.6354 GB, free: 2.852 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) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: veins.mass = veins.tm_start (veins.m_start[1] + veins.massOffset = veins.tm_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.003772/0.4685, allocations: 1.694 MB / 0.637 GB, free: 1.059 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.4685, allocations: 4 kB / 0.637 GB, free: 1.055 MB / 478.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001366/0.4699, allocations: 0.6982 MB / 0.6377 GB, free: 344 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.321e-05/0.4699, allocations: 33.7 kB / 0.6377 GB, free: 304 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.4699, allocations: 7.938 kB / 0.6378 GB, free: 296 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001414/0.4701, allocations: 44.83 kB / 0.6378 GB, free: 248 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004987/0.4706, allocations: 116.1 kB / 0.6379 GB, free: 132 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003708/0.471, allocations: 0.5679 MB / 0.6385 GB, free: 15.54 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004805/0.4715, allocations: 63.36 kB / 0.6385 GB, free: 15.47 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.337e-05/0.4715, allocations: 27.98 kB / 0.6385 GB, free: 15.45 MB / 494.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: arteries.mass = arteries.tm_start veins.mass = veins.tm_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.pulse.count,$PRE.pulse.T_start,pulse.count,pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * 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.0002327/0.4718, allocations: 185.8 kB / 0.6387 GB, free: 15.25 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.444e-05/0.4719, allocations: 51.34 kB / 0.6388 GB, free: 15.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001168/0.473, allocations: 0.5415 MB / 0.6393 GB, free: 14.65 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.246e-06/0.4731, allocations: 4 kB / 0.6393 GB, free: 14.65 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.4731, allocations: 0 / 0.6393 GB, free: 14.65 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.4731, allocations: 3.984 kB / 0.6393 GB, free: 14.64 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005474/0.4736, allocations: 0.5282 MB / 0.6398 GB, free: 14.07 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.4737, allocations: 3.984 kB / 0.6398 GB, free: 14.06 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003573/0.474, allocations: 63.89 kB / 0.6399 GB, free: 14 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.866e-05/0.4741, allocations: 48.7 kB / 0.6399 GB, free: 13.95 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.257e-05/0.4742, allocations: 16 kB / 0.64 GB, free: 13.93 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003437/0.4745, allocations: 0.5522 MB / 0.6405 GB, free: 13.36 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.4745, allocations: 0 / 0.6405 GB, free: 13.36 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00151/0.476, allocations: 0.7669 MB / 0.6412 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002197/0.4763, allocations: 176.5 kB / 0.6414 GB, free: 12.38 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.88e-05/0.4763, allocations: 4 kB / 0.6414 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003307/0.4767, allocations: 27.97 kB / 0.6414 GB, free: 12.34 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.891e-05/0.4768, allocations: 35.95 kB / 0.6415 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.18e-05/0.4768, allocations: 15.98 kB / 0.6415 GB, free: 12.29 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000353/0.4772, allocations: 331.1 kB / 0.6418 GB, free: 11.97 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4772, allocations: 0 / 0.6418 GB, free: 11.97 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001254/0.4785, allocations: 0.4993 MB / 0.6423 GB, free: 11.47 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (arteries.enthalpy,arteries.substanceMasses[1],veins.enthalpy,veins.substanceMasses[1]) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * 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.002865/0.4813, allocations: 1.923 MB / 0.6442 GB, free: 9.512 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001143/0.4825, allocations: 0.5585 MB / 0.6447 GB, free: 8.941 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.4825, allocations: 0 / 0.6447 GB, free: 8.941 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004865/0.483, allocations: 235.5 kB / 0.6449 GB, free: 8.711 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001021/0.484, allocations: 241.5 kB / 0.6452 GB, free: 8.477 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006994/0.491, allocations: 5.013 MB / 0.6501 GB, free: 3.266 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004046/0.4915, allocations: 0.8669 MB / 0.6509 GB, free: 2.367 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004341/0.4919, allocations: 136.3 kB / 0.651 GB, free: 2.23 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002802/0.4922, allocations: 195.4 kB / 0.6512 GB, free: 2.039 MB / 494.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4922, allocations: 0 / 0.6512 GB, free: 2.039 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05024/0.5424, allocations: 23 MB / 0.6737 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.75/13.3, allocations: 9.531 kB / 0.6737 GB, free: 11.15 MB / 0.5137 GB (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.sim & python3 -m fmpy simulate --output-file Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe 2>&1)