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.0822/0.0822, allocations: 15.28 MB / 30.79 MB, free: 4.215 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.001032/0.001032, allocations: 102.7 kB / 35.78 MB, free: 3.23 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.001179/0.001179, allocations: 189.1 kB / 40.88 MB, free: 7.23 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.381/1.381, allocations: 222.9 MB / 268.7 MB, free: 6.945 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1278/0.1278, allocations: 23.36 MB / 346.4 MB, free: 0.7148 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002111/0.002112, allocations: 119.8 kB / 418.3 MB, free: 30.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09397/0.0961, allocations: 59.36 MB / 477.7 MB, free: 2.898 MB / 334.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.2632/0.3594, allocations: 75.5 MB / 0.5402 GB, free: 8.477 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01468/0.3741, allocations: 15.34 MB / 0.5552 GB, free: 5.305 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008239/0.3749, allocations: 15.94 kB / 0.5552 GB, free: 5.289 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006318/0.3756, allocations: 252 kB / 0.5555 GB, free: 5.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003483/0.3791, allocations: 1.552 MB / 0.557 GB, free: 4.289 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005098/0.3842, allocations: 2.142 MB / 0.5591 GB, free: 3.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001285/0.3855, allocations: 1.512 MB / 0.5605 GB, free: 2.117 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000426/0.3859, allocations: 434 kB / 0.5609 GB, free: 1.914 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001883/0.3878, allocations: 1.15 MB / 0.5621 GB, free: 1.191 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005697/0.3884, allocations: 0.5491 MB / 0.5626 GB, free: 0.8633 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.551e-05/0.3885, allocations: 56 kB / 0.5627 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003608/0.3921, allocations: 1.499 MB / 0.5641 GB, free: 15.89 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001733/0.3923, allocations: 173.1 kB / 0.5643 GB, free: 15.83 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003304/0.3926, allocations: 342.2 kB / 0.5646 GB, free: 15.61 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002973/0.3956, allocations: 2.046 MB / 0.5666 GB, free: 14.43 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.3956, allocations: 4 kB / 0.5666 GB, free: 14.42 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3956, allocations: 0 / 0.5666 GB, free: 14.42 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.3957, allocations: 0 / 0.5666 GB, free: 14.42 MB / 398.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.001947/0.3976, allocations: 1.143 MB / 0.5677 GB, free: 13.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.3977, allocations: 8.031 kB / 0.5677 GB, free: 13.41 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.221e-05/0.3978, allocations: 82.92 kB / 0.5678 GB, free: 13.35 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001294/0.3979, allocations: 63.25 kB / 0.5679 GB, free: 13.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000573/0.3985, allocations: 450.8 kB / 0.5683 GB, free: 12.88 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.61e-05/0.3985, allocations: 36.94 kB / 0.5683 GB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.901e-05/0.3986, allocations: 46.48 kB / 0.5684 GB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009972/0.3996, allocations: 0.5547 MB / 0.5689 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.015e-05/0.3996, allocations: 4 kB / 0.5689 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.001e-05/0.3997, allocations: 16 kB / 0.569 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/0.3997, allocations: 15.94 kB / 0.569 GB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001024/0.4007, allocations: 493.1 kB / 0.5694 GB, free: 11.88 MB / 398.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.002822/0.4036, allocations: 2.261 MB / 0.5716 GB, free: 9.496 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009203/0.4045, allocations: 0.5155 MB / 0.5722 GB, free: 8.953 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005234/0.405, allocations: 256.7 kB / 0.5724 GB, free: 8.699 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001666/0.4067, allocations: 1.413 MB / 0.5738 GB, free: 7.145 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005436/0.4073, allocations: 264.9 kB / 0.574 GB, free: 6.875 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 4.739e-06/0.4073, allocations: 4 kB / 0.574 GB, free: 6.871 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.001637/0.4089, allocations: 0.7102 MB / 0.5747 GB, free: 6.133 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.873e-05/0.409, allocations: 55.41 kB / 0.5748 GB, free: 6.066 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005205/0.4095, allocations: 465.8 kB / 0.5752 GB, free: 5.602 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.043e-05/0.4096, allocations: 41.7 kB / 0.5753 GB, free: 5.555 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001981/0.4098, allocations: 286.3 kB / 0.5755 GB, free: 5.273 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001112/0.4099, allocations: 141 kB / 0.5757 GB, free: 5.137 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001753/0.4101, allocations: 102.1 kB / 0.5758 GB, free: 5.031 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.4102, allocations: 362.7 kB / 0.5761 GB, free: 4.668 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004785/0.4107, allocations: 213 kB / 0.5763 GB, free: 4.461 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000568/0.4113, allocations: 340.5 kB / 0.5766 GB, free: 4.074 MB / 398.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.004079/0.4154, allocations: 1.7 MB / 0.5783 GB, free: 2.266 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.4154, allocations: 0 / 0.5783 GB, free: 2.266 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001473/0.4169, allocations: 0.696 MB / 0.579 GB, free: 1.555 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.796e-05/0.4169, allocations: 33.7 kB / 0.579 GB, free: 1.516 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.4169, allocations: 4.5 kB / 0.579 GB, free: 1.512 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001398/0.4171, allocations: 44.83 kB / 0.5791 GB, free: 1.465 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005292/0.4176, allocations: 115.8 kB / 0.5792 GB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003854/0.418, allocations: 0.564 MB / 0.5797 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005268/0.4186, allocations: 63.42 kB / 0.5798 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.434e-05/0.4186, allocations: 32.08 kB / 0.5798 GB, free: 0.668 MB / 398.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.0002595/0.4189, allocations: 193.6 kB / 0.58 GB, free: 480 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/0.419, allocations: 55.31 kB / 0.58 GB, free: 424 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001237/0.4202, allocations: 0.5402 MB / 0.5806 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.4203, allocations: 8 kB / 0.5806 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.4203, allocations: 0 / 0.5806 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.4203, allocations: 3.984 kB / 0.5806 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005945/0.4209, allocations: 0.5219 MB / 0.5811 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/0.4209, allocations: 3.984 kB / 0.5811 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003768/0.4213, allocations: 75.89 kB / 0.5812 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.016e-05/0.4214, allocations: 32.83 kB / 0.5812 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.534e-05/0.4214, allocations: 12 kB / 0.5812 GB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003446/0.4218, allocations: 0.5522 MB / 0.5818 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.4218, allocations: 3.938 kB / 0.5818 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001531/0.4233, allocations: 0.7635 MB / 0.5825 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000233/0.4236, allocations: 172.5 kB / 0.5827 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.062e-05/0.4237, allocations: 11.94 kB / 0.5827 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003542/0.424, allocations: 35.89 kB / 0.5827 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.755e-05/0.4242, allocations: 35.95 kB / 0.5828 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.293e-05/0.4242, allocations: 11.98 kB / 0.5828 GB, free: 13.52 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003601/0.4246, allocations: 323.1 kB / 0.5831 GB, free: 13.21 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4246, allocations: 0 / 0.5831 GB, free: 13.21 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00121/0.4258, allocations: 0.4993 MB / 0.5836 GB, free: 12.71 MB / 414.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.003403/0.4292, allocations: 1.935 MB / 0.5854 GB, free: 10.8 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001384/0.4306, allocations: 0.5979 MB / 0.586 GB, free: 10.19 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4306, allocations: 0 / 0.586 GB, free: 10.19 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005248/0.4311, allocations: 236.7 kB / 0.5863 GB, free: 9.961 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/0.4323, allocations: 248.4 kB / 0.5865 GB, free: 9.723 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00787/0.4402, allocations: 5.098 MB / 0.5915 GB, free: 4.434 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000408/0.4406, allocations: 0.863 MB / 0.5923 GB, free: 3.543 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004947/0.4411, allocations: 120.5 kB / 0.5924 GB, free: 3.426 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000313/0.4414, allocations: 207.3 kB / 0.5926 GB, free: 3.223 MB / 414.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4414, allocations: 0 / 0.5926 GB, free: 3.223 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04914/0.4906, allocations: 22.82 MB / 0.6149 GB, free: 12.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.2/11.69, allocations: 7.312 kB / 0.6149 GB, free: 12.49 MB / 446.1 MB (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)