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.09004/0.09004, allocations: 15.28 MB / 30.78 MB, free: 4.211 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.001052/0.001051, allocations: 106.1 kB / 35.77 MB, free: 3.234 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.001267/0.001267, allocations: 193.1 kB / 40.88 MB, free: 7.223 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.363/1.363, allocations: 222.9 MB / 268.7 MB, free: 6.918 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1356/0.1356, allocations: 23.35 MB / 346.4 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002035/0.002035, allocations: 115.8 kB / 418.3 MB, free: 30.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09298/0.09504, allocations: 59.37 MB / 477.7 MB, free: 2.887 MB / 334.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.2874/0.3825, allocations: 74.26 MB / 0.539 GB, free: 8.613 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02794/0.4104, allocations: 18.84 MB / 0.5574 GB, free: 4.676 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007575/0.4112, allocations: 15.94 kB / 0.5574 GB, free: 4.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006546/0.4119, allocations: 236.2 kB / 0.5576 GB, free: 4.543 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005566/0.4175, allocations: 2.338 MB / 0.5599 GB, free: 3.152 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004582/0.4221, allocations: 1.58 MB / 0.5615 GB, free: 2.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001286/0.4234, allocations: 1.225 MB / 0.5627 GB, free: 1.465 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000573/0.424, allocations: 359 kB / 0.563 GB, free: 1.293 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002232/0.4263, allocations: 1.072 MB / 0.564 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007246/0.427, allocations: 455.9 kB / 0.5645 GB, free: 356 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001006/0.4271, allocations: 44 kB / 0.5645 GB, free: 312 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004753/0.4319, allocations: 1.714 MB / 0.5662 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001839/0.4321, allocations: 126.9 kB / 0.5663 GB, free: 15.19 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003826/0.4325, allocations: 290.6 kB / 0.5666 GB, free: 15 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004705/0.4372, allocations: 2.173 MB / 0.5687 GB, free: 13.72 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.4372, allocations: 3.938 kB / 0.5687 GB, free: 13.72 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.4372, allocations: 0 / 0.5687 GB, free: 13.72 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.674e-05/0.4372, allocations: 3.938 kB / 0.5687 GB, free: 13.71 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001997/0.4392, allocations: 1.035 MB / 0.5697 GB, free: 12.74 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.4393, allocations: 8.031 kB / 0.5697 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.949e-05/0.4394, allocations: 69.08 kB / 0.5698 GB, free: 12.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001274/0.4395, allocations: 57.95 kB / 0.5699 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006076/0.4401, allocations: 386.6 kB / 0.5702 GB, free: 12.24 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.482e-05/0.4402, allocations: 33 kB / 0.5703 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.097e-05/0.4403, allocations: 32 kB / 0.5703 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008393/0.4411, allocations: 451.4 kB / 0.5707 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.4411, allocations: 0 / 0.5707 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.062e-05/0.4412, allocations: 15.94 kB / 0.5707 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.4412, allocations: 17.02 kB / 0.5708 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008296/0.442, allocations: 379.5 kB / 0.5711 GB, free: 11.39 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.002858/0.4449, allocations: 2.2 MB / 0.5733 GB, free: 8.977 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006652/0.4456, allocations: 363.5 kB / 0.5736 GB, free: 8.613 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003203/0.4459, allocations: 184.5 kB / 0.5738 GB, free: 8.434 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001315/0.4473, allocations: 0.9964 MB / 0.5748 GB, free: 7.344 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004008/0.4477, allocations: 214.4 kB / 0.575 GB, free: 7.125 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 2.224e-06/0.4477, allocations: 0 / 0.575 GB, free: 7.125 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.001531/0.4492, allocations: 0.7127 MB / 0.5757 GB, free: 6.363 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.352e-05/0.4493, allocations: 59.39 kB / 0.5757 GB, free: 6.293 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004188/0.4497, allocations: 389.6 kB / 0.5761 GB, free: 5.906 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.461e-05/0.4497, allocations: 37.7 kB / 0.5761 GB, free: 5.863 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001809/0.4499, allocations: 234.9 kB / 0.5764 GB, free: 5.629 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001461/0.4501, allocations: 117.4 kB / 0.5765 GB, free: 5.516 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001313/0.4502, allocations: 90.02 kB / 0.5765 GB, free: 5.422 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002369/0.4505, allocations: 358.7 kB / 0.5769 GB, free: 5.062 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003213/0.4508, allocations: 148.7 kB / 0.577 GB, free: 4.918 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003966/0.4512, allocations: 237.7 kB / 0.5773 GB, free: 4.652 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) Notification: Performance of analyzeInitialSystem (initialization): time 0.002251/0.4535, allocations: 0.944 MB / 0.5782 GB, free: 3.656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.4535, allocations: 0 / 0.5782 GB, free: 3.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001067/0.4546, allocations: 0.5178 MB / 0.5787 GB, free: 3.125 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.4546, allocations: 4 kB / 0.5787 GB, free: 3.121 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.4546, allocations: 7.938 kB / 0.5787 GB, free: 3.113 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002551/0.4549, allocations: 85.86 kB / 0.5788 GB, free: 3.023 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003666/0.4552, allocations: 79.89 kB / 0.5789 GB, free: 2.945 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000768/0.456, allocations: 1.112 MB / 0.5799 GB, free: 1.781 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003577/0.4564, allocations: 55.67 kB / 0.58 GB, free: 1.727 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.506e-05/0.4564, allocations: 19.98 kB / 0.58 GB, free: 1.707 MB / 398.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.0002184/0.4567, allocations: 177.6 kB / 0.5802 GB, free: 1.523 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.009e-05/0.4568, allocations: 39.53 kB / 0.5802 GB, free: 1.484 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009892/0.4578, allocations: 488.9 kB / 0.5807 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.682e-06/0.4578, allocations: 0 / 0.5807 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.4578, allocations: 4 kB / 0.5807 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-06/0.4578, allocations: 3.984 kB / 0.5807 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001711/0.4595, allocations: 0.9699 MB / 0.5816 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.4595, allocations: 4 kB / 0.5816 GB, free: 15.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002419/0.4598, allocations: 43.97 kB / 0.5817 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001947/0.46, allocations: 73.64 kB / 0.5818 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.824e-05/0.46, allocations: 11.98 kB / 0.5818 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007345/0.4608, allocations: 1.109 MB / 0.5829 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.4608, allocations: 8 kB / 0.5829 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001278/0.4621, allocations: 0.6774 MB / 0.5835 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001825/0.4623, allocations: 156.5 kB / 0.5837 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.322e-05/0.4624, allocations: 8 kB / 0.5837 GB, free: 13.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002755/0.4626, allocations: 15.98 kB / 0.5837 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.333e-05/0.4627, allocations: 31.95 kB / 0.5837 GB, free: 13.72 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.75e-05/0.4628, allocations: 8 kB / 0.5837 GB, free: 13.71 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003144/0.4631, allocations: 283.1 kB / 0.584 GB, free: 13.43 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4631, allocations: 0 / 0.584 GB, free: 13.43 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001401/0.4645, allocations: 0.5266 MB / 0.5845 GB, free: 12.91 MB / 414.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.003393/0.4679, allocations: 1.959 MB / 0.5864 GB, free: 10.99 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009608/0.4689, allocations: 405 kB / 0.5868 GB, free: 10.6 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.4689, allocations: 0 / 0.5868 GB, free: 10.6 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004087/0.4693, allocations: 184.4 kB / 0.587 GB, free: 10.42 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001091/0.4704, allocations: 209.1 kB / 0.5872 GB, free: 10.21 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006121/0.4765, allocations: 4.334 MB / 0.5914 GB, free: 5.73 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003748/0.4769, allocations: 0.8235 MB / 0.5922 GB, free: 4.875 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003403/0.4773, allocations: 88.09 kB / 0.5923 GB, free: 4.785 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002236/0.4775, allocations: 147.4 kB / 0.5925 GB, free: 4.645 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4775, allocations: 0 / 0.5925 GB, free: 4.645 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04726/0.5248, allocations: 22.82 MB / 0.6147 GB, free: 13.91 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.79, allocations: 15.86 kB / 0.6148 GB, free: 13.9 MB / 446.1 MB (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)