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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo", uses=false) Using package Physiolibrary with version 3.0.0-beta1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.01025/0.01025, allocations: 172 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.501/1.501, allocations: 223.2 MB / 239 MB, free: 1.785 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009376/0.0009376, allocations: 102.3 kB / 290.2 MB, free: 13.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.2565/0.2565, allocations: 37.06 MB / 378.4 MB, free: 5.715 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003919/0.0003919, allocations: 12 kB / 449.1 MB, free: 61.58 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1193, allocations: 60.08 MB / 0.4972 GB, free: 1.445 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5732/0.6925, allocations: 174.5 MB / 0.6676 GB, free: 12.41 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002229/0.6928, allocations: 80.14 kB / 0.6677 GB, free: 12.37 MB / 474.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Fluid.mo:660:7-660:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System heart.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Physiolibrary.Fluid.Sources.MassInflowSource$heart. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Fluid.mo:660:7-660:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System arteries.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Physiolibrary.Fluid.Components.ElasticVessel$arteries. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Fluid.mo:546:7-546:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System resistance.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Physiolibrary.Fluid.Components.Conductor$resistance. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Fluid.mo:660:7-660:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System veins.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Physiolibrary.Fluid.Sources.PressureSource. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Fluid.mo:546:7-546:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System impedance.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Physiolibrary.Fluid.Components.Conductor$impedance. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Fluid.mo:915:7-915:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System pressureMeasure.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Physiolibrary.Fluid.Sensors.PressureMeasure. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Fluid.mo:546:7-546:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System flowMeasure.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Physiolibrary.Fluid.Sensors.FlowMeasure. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. Notification: Performance of FrontEnd - DAE generated: time 0.7137/1.406, allocations: 206.5 MB / 0.8694 GB, free: 67.08 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.664e-06/1.407, allocations: 0 / 0.8694 GB, free: 67.08 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 7.458e-05/1.407, allocations: 16 kB / 0.8694 GB, free: 67.06 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.005134/1.412, allocations: 1.846 MB / 0.8712 GB, free: 65.16 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/1.412, allocations: 12.02 kB / 0.8712 GB, free: 65.15 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000188/1.412, allocations: 82.48 kB / 0.8713 GB, free: 65.06 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002492/1.412, allocations: 79.06 kB / 0.8714 GB, free: 64.98 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001439/1.414, allocations: 0.6443 MB / 0.872 GB, free: 64.3 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.316e-05/1.414, allocations: 29 kB / 0.872 GB, free: 64.27 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.694e-05/1.414, allocations: 36 kB / 0.8721 GB, free: 64.23 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007269/1.415, allocations: 439.8 kB / 0.8725 GB, free: 63.79 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/1.415, allocations: 0 / 0.8725 GB, free: 63.79 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.574e-05/1.415, allocations: 12 kB / 0.8725 GB, free: 63.77 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.657e-05/1.415, allocations: 15.95 kB / 0.8725 GB, free: 63.76 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006699/1.415, allocations: 375.7 kB / 0.8729 GB, free: 63.39 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003049/1.418, allocations: 2.216 MB / 0.875 GB, free: 60.95 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006146/1.419, allocations: 376.1 kB / 0.8754 GB, free: 60.57 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001396/1.42, allocations: 1.001 MB / 0.8764 GB, free: 59.47 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003297/1.421, allocations: 212 kB / 0.8766 GB, free: 59.25 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=33): time 2.706e-06/1.421, allocations: 3.938 kB / 0.8766 GB, free: 59.25 MB / 0.5105 GB Notification: Performance of matching and sorting (n=33): time 0.001527/1.422, allocations: 0.8804 MB / 0.8774 GB, free: 58.29 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.074e-05/1.422, allocations: 59.41 kB / 0.8775 GB, free: 58.21 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006732/1.423, allocations: 0.5741 MB / 0.8781 GB, free: 57.63 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.068e-05/1.423, allocations: 37.7 kB / 0.8781 GB, free: 57.59 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002086/1.423, allocations: 343.8 kB / 0.8784 GB, free: 57.25 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 9.09e-05/1.423, allocations: 110.5 kB / 0.8785 GB, free: 57.14 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.896e-05/1.423, allocations: 8 kB / 0.8785 GB, free: 57.13 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.348e-05/1.424, allocations: 318 kB / 0.8788 GB, free: 56.82 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002634/1.424, allocations: 148.8 kB / 0.879 GB, free: 56.67 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003347/1.424, allocations: 248.2 kB / 0.8792 GB, free: 56.39 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003116/1.425, allocations: 169.2 kB / 0.8794 GB, free: 56.22 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/1.425, allocations: 0 / 0.8794 GB, free: 56.22 MB / 0.5105 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009258/1.425, allocations: 0.5356 MB / 0.8799 GB, free: 55.67 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/1.425, allocations: 8 kB / 0.8799 GB, free: 55.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/1.426, allocations: 384 / 0.8799 GB, free: 55.66 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002854/1.426, allocations: 81.67 kB / 0.88 GB, free: 55.58 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003114/1.426, allocations: 79.83 kB / 0.8801 GB, free: 55.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006027/1.427, allocations: 1.124 MB / 0.8812 GB, free: 54.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005217/1.427, allocations: 59.56 kB / 0.8812 GB, free: 54.27 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.075e-05/1.427, allocations: 24.09 kB / 0.8812 GB, free: 54.24 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulses.T0,pulses.T0,pulses.b,$PRE.pulses.HP,pulses.HP,$PRE.pulses.TD2,pulses.TD2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002473/1.428, allocations: 193.7 kB / 0.8814 GB, free: 54.04 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.167e-05/1.428, allocations: 71.11 kB / 0.8815 GB, free: 53.97 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008998/1.429, allocations: 499.8 kB / 0.882 GB, free: 53.46 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.612e-06/1.429, allocations: 0 / 0.882 GB, free: 53.46 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/1.429, allocations: 4 kB / 0.882 GB, free: 53.45 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/1.429, allocations: 0 / 0.882 GB, free: 53.45 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001463/1.43, allocations: 1.055 MB / 0.883 GB, free: 52.33 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/1.43, allocations: 4 kB / 0.883 GB, free: 52.33 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002126/1.43, allocations: 43.91 kB / 0.8831 GB, free: 52.29 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001627/1.431, allocations: 73.67 kB / 0.8831 GB, free: 52.21 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.027e-05/1.431, allocations: 11.98 kB / 0.8831 GB, free: 52.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004748/1.431, allocations: 1.109 MB / 0.8842 GB, free: 51.04 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/1.431, allocations: 0 / 0.8842 GB, free: 51.04 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001006/1.432, allocations: 0.7105 MB / 0.8849 GB, free: 50.29 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002416/1.432, allocations: 192 kB / 0.8851 GB, free: 50.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/1.432, allocations: 15.94 kB / 0.8851 GB, free: 50.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003616/1.433, allocations: 28.05 kB / 0.8851 GB, free: 50.04 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.008e-05/1.433, allocations: 31.89 kB / 0.8852 GB, free: 50.01 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.792e-05/1.433, allocations: 4 kB / 0.8852 GB, free: 50.01 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0006036/1.434, allocations: 467 kB / 0.8856 GB, free: 49.56 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.21e-07/1.434, allocations: 0 / 0.8856 GB, free: 49.56 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.003067/1.437, allocations: 0.8114 MB / 0.8864 GB, free: 48.75 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (arteries.enthalpy,arteries.mass) * 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 (27): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.004635/1.441, allocations: 2.605 MB / 0.889 GB, free: 46.11 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0007252/1.442, allocations: 365.2 kB / 0.8893 GB, free: 45.75 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/1.442, allocations: 3.938 kB / 0.8893 GB, free: 45.75 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.000325/1.442, allocations: 180.2 kB / 0.8895 GB, free: 45.57 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001525/1.444, allocations: 409.6 kB / 0.8899 GB, free: 45.18 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00638/1.45, allocations: 6.01 MB / 0.8957 GB, free: 39.05 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003164/1.451, allocations: 0.9142 MB / 0.8966 GB, free: 38.1 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0005076/1.451, allocations: 121.8 kB / 0.8967 GB, free: 37.98 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002785/1.451, allocations: 247.3 kB / 0.897 GB, free: 37.74 MB / 0.5105 GB Notification: Performance of SimCode: time 6.12e-07/1.451, allocations: 0 / 0.897 GB, free: 37.74 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06105/1.512, allocations: 36.97 MB / 0.9331 GB, free: 0.9883 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000163/1.513, allocations: 201.1 kB / 0.9333 GB, free: 0.75 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.09/4.603, allocations: 4 kB / 0.9333 GB, free: 0.7461 MB / 0.5105 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe 2>&1)