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.08624/0.08624, allocations: 15.28 MB / 30.92 MB, free: 4.156 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.001089/0.001089, allocations: 106.3 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.001193/0.001193, allocations: 198 kB / 41.02 MB, free: 7.117 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.413/1.413, allocations: 222.9 MB / 268.9 MB, free: 6.863 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1329/0.1329, allocations: 23.36 MB / 346.6 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002082/0.002082, allocations: 115.8 kB / 478.3 MB, free: 2.312 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3215/0.3236, allocations: 59.35 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.08189/0.4056, allocations: 75.58 MB / 0.5989 GB, free: 8.938 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01737/0.423, allocations: 15.33 MB / 0.6139 GB, free: 9.547 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009423/0.4239, allocations: 19.94 kB / 0.6139 GB, free: 9.527 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007739/0.4247, allocations: 258.1 kB / 0.6142 GB, free: 9.273 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004066/0.4288, allocations: 1.581 MB / 0.6157 GB, free: 7.684 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005784/0.4346, allocations: 2.159 MB / 0.6178 GB, free: 5.5 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001707/0.4363, allocations: 1.516 MB / 0.6193 GB, free: 3.977 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000574/0.4369, allocations: 439.5 kB / 0.6197 GB, free: 3.543 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002214/0.4391, allocations: 1.17 MB / 0.6208 GB, free: 2.367 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007533/0.4399, allocations: 0.541 MB / 0.6214 GB, free: 1.824 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 8.525e-05/0.44, allocations: 52 kB / 0.6214 GB, free: 1.773 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00373/0.4437, allocations: 1.486 MB / 0.6229 GB, free: 292 kB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002363/0.444, allocations: 171.5 kB / 0.623 GB, free: 120 kB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003644/0.4444, allocations: 338.6 kB / 0.6234 GB, free: 15.78 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003749/0.4481, allocations: 2.082 MB / 0.6254 GB, free: 13.7 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.4481, allocations: 0 / 0.6254 GB, free: 13.7 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.4482, allocations: 0 / 0.6254 GB, free: 13.7 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.159e-05/0.4482, allocations: 0 / 0.6254 GB, free: 13.7 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.002104/0.4503, allocations: 1.169 MB / 0.6265 GB, free: 12.46 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.4503, allocations: 8.031 kB / 0.6265 GB, free: 12.46 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.892e-05/0.4504, allocations: 86.52 kB / 0.6266 GB, free: 12.36 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001337/0.4506, allocations: 67.58 kB / 0.6267 GB, free: 12.3 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007094/0.4513, allocations: 484.7 kB / 0.6272 GB, free: 11.78 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.153e-05/0.4513, allocations: 33 kB / 0.6272 GB, free: 11.75 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.381e-05/0.4514, allocations: 44 kB / 0.6272 GB, free: 11.71 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001033/0.4524, allocations: 0.5538 MB / 0.6278 GB, free: 11.12 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.955e-05/0.4525, allocations: 3.938 kB / 0.6278 GB, free: 11.12 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.874e-05/0.4525, allocations: 24 kB / 0.6278 GB, free: 11.09 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.353e-05/0.4526, allocations: 12 kB / 0.6278 GB, free: 11.08 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001099/0.4537, allocations: 495.6 kB / 0.6283 GB, free: 10.6 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.00295/0.4566, allocations: 2.251 MB / 0.6305 GB, free: 8.191 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009523/0.4576, allocations: 0.531 MB / 0.631 GB, free: 7.633 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005518/0.4582, allocations: 260 kB / 0.6312 GB, free: 7.379 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001752/0.4599, allocations: 1.395 MB / 0.6326 GB, free: 5.828 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005467/0.4605, allocations: 271.9 kB / 0.6329 GB, free: 5.551 MB / 478.1 MB Notification: Performance of pre-optimization done (n=38): time 7.274e-06/0.4605, allocations: 0 / 0.6329 GB, free: 5.551 MB / 478.1 MB Notification: Performance of matching and sorting (n=38): time 0.001691/0.4622, allocations: 0.7181 MB / 0.6336 GB, free: 4.805 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.43e-05/0.4623, allocations: 55.41 kB / 0.6336 GB, free: 4.738 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005042/0.4628, allocations: 473.8 kB / 0.6341 GB, free: 4.27 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.099e-05/0.4629, allocations: 37.7 kB / 0.6341 GB, free: 4.227 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000185/0.4631, allocations: 288.3 kB / 0.6344 GB, free: 3.938 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001531/0.4632, allocations: 146.8 kB / 0.6345 GB, free: 3.793 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001705/0.4634, allocations: 102.2 kB / 0.6346 GB, free: 3.688 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.4635, allocations: 362.8 kB / 0.635 GB, free: 3.324 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000505/0.4641, allocations: 209 kB / 0.6352 GB, free: 3.117 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005508/0.4646, allocations: 348.4 kB / 0.6355 GB, free: 2.727 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.004131/0.4688, allocations: 1.698 MB / 0.6372 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.409e-06/0.4688, allocations: 0 / 0.6372 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001469/0.4703, allocations: 0.7022 MB / 0.6378 GB, free: 212 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.453e-05/0.4703, allocations: 33.7 kB / 0.6379 GB, free: 172 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.4703, allocations: 4 kB / 0.6379 GB, free: 168 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001395/0.4705, allocations: 49.33 kB / 0.6379 GB, free: 116 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000549/0.471, allocations: 115.8 kB / 0.638 GB, free: 0 / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003852/0.4715, allocations: 0.5562 MB / 0.6386 GB, free: 15.42 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005808/0.472, allocations: 71.48 kB / 0.6386 GB, free: 15.35 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.469e-05/0.4721, allocations: 23.98 kB / 0.6387 GB, free: 15.32 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.000234/0.4724, allocations: 185.8 kB / 0.6388 GB, free: 15.13 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.746e-05/0.4725, allocations: 51.67 kB / 0.6389 GB, free: 15.08 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001244/0.4737, allocations: 0.5569 MB / 0.6394 GB, free: 14.52 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.676e-05/0.4737, allocations: 4 kB / 0.6394 GB, free: 14.51 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.282e-05/0.4738, allocations: 0 / 0.6394 GB, free: 14.51 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.316e-05/0.4738, allocations: 7.984 kB / 0.6395 GB, free: 14.5 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005504/0.4744, allocations: 0.5205 MB / 0.64 GB, free: 13.93 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.4744, allocations: 0 / 0.64 GB, free: 13.93 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003969/0.4748, allocations: 75.88 kB / 0.64 GB, free: 13.86 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.351e-05/0.4749, allocations: 40.78 kB / 0.6401 GB, free: 13.82 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.21e-05/0.4749, allocations: 11.98 kB / 0.6401 GB, free: 13.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003332/0.4753, allocations: 0.5524 MB / 0.6406 GB, free: 13.23 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.4753, allocations: 0 / 0.6406 GB, free: 13.23 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001571/0.4768, allocations: 0.7711 MB / 0.6414 GB, free: 12.43 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002256/0.4771, allocations: 176.7 kB / 0.6415 GB, free: 12.24 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.433e-05/0.4772, allocations: 8 kB / 0.6416 GB, free: 12.23 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003904/0.4776, allocations: 15.98 kB / 0.6416 GB, free: 12.22 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.4e-05/0.4777, allocations: 39.94 kB / 0.6416 GB, free: 12.18 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.192e-05/0.4777, allocations: 16 kB / 0.6416 GB, free: 12.16 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003535/0.4781, allocations: 331 kB / 0.6419 GB, free: 11.84 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4781, allocations: 0 / 0.6419 GB, free: 11.84 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001219/0.4793, allocations: 0.5061 MB / 0.6424 GB, free: 11.33 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.003072/0.4824, allocations: 1.954 MB / 0.6443 GB, free: 9.344 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00128/0.4837, allocations: 0.5424 MB / 0.6449 GB, free: 8.789 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.4837, allocations: 7.938 kB / 0.6449 GB, free: 8.781 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005105/0.4842, allocations: 235.5 kB / 0.6451 GB, free: 8.551 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001215/0.4855, allocations: 238.2 kB / 0.6453 GB, free: 8.32 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007549/0.493, allocations: 5.042 MB / 0.6502 GB, free: 3.078 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003764/0.4934, allocations: 0.863 MB / 0.6511 GB, free: 2.184 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004191/0.4939, allocations: 124.4 kB / 0.6512 GB, free: 2.059 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003113/0.4942, allocations: 207.3 kB / 0.6514 GB, free: 1.855 MB / 494.1 MB Notification: Performance of SimCode: time 6.82e-07/0.4942, allocations: 0 / 0.6514 GB, free: 1.855 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04584/0.54, allocations: 22.99 MB / 0.6739 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.98/13.52, allocations: 9.547 kB / 0.6739 GB, free: 10.97 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)