Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.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_2element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_2element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element",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.001855/0.001855, allocations: 174.5 kB / 7.647 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 221.5 MB / 229.6 MB, free: 7.602 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.0008378/0.000838, allocations: 93.98 kB / 280.5 MB, free: 5.344 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.2233/0.2233, allocations: 37.09 MB / 368.3 MB, free: 10 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.008e-05/2.009e-05, allocations: 0 / 434.7 MB, free: 23.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1252, allocations: 60.1 MB / 494.8 MB, free: 11 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5664/0.6916, allocations: 173.6 MB / 0.6528 GB, free: 10 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002192/0.6919, allocations: 72.34 kB / 0.6529 GB, free: 9.973 MB / 458.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 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 unlimitedPump.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$unlimitedPump. 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 unlimitedVolume.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: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.7655/1.457, allocations: 168.6 MB / 0.8175 GB, free: 92.07 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.415e-06/1.457, allocations: 3.938 kB / 0.8175 GB, free: 92.06 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 8.085e-05/1.458, allocations: 12 kB / 0.8175 GB, free: 92.05 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.003964/1.461, allocations: 1.489 MB / 0.8189 GB, free: 90.52 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/1.462, allocations: 12.03 kB / 0.819 GB, free: 90.5 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000305/1.462, allocations: 75.11 kB / 0.819 GB, free: 90.43 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001325/1.463, allocations: 0.585 MB / 0.8196 GB, free: 89.8 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.272e-05/1.463, allocations: 12 kB / 0.8196 GB, free: 89.79 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.748e-05/1.463, allocations: 20 kB / 0.8196 GB, free: 89.77 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005639/1.464, allocations: 265.5 kB / 0.8199 GB, free: 89.51 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005573/1.464, allocations: 327.1 kB / 0.8202 GB, free: 89.17 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/1.465, allocations: 0 / 0.8202 GB, free: 89.17 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.592e-05/1.465, allocations: 3.938 kB / 0.8202 GB, free: 89.17 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.722e-05/1.465, allocations: 11.95 kB / 0.8202 GB, free: 89.16 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003057/1.468, allocations: 1.957 MB / 0.8221 GB, free: 87 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004607/1.468, allocations: 283.1 kB / 0.8224 GB, free: 86.71 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001791/1.468, allocations: 117.3 kB / 0.8225 GB, free: 86.6 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001266/1.47, allocations: 0.9703 MB / 0.8234 GB, free: 85.53 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002009/1.47, allocations: 152.3 kB / 0.8236 GB, free: 85.37 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=29): time 1.863e-06/1.47, allocations: 3.938 kB / 0.8236 GB, free: 85.36 MB / 0.4948 GB Notification: Performance of matching and sorting (n=29): time 0.0008059/1.471, allocations: 307.1 kB / 0.8239 GB, free: 85.05 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.566e-05/1.471, allocations: 59.64 kB / 0.8239 GB, free: 84.98 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004635/1.471, allocations: 475.5 kB / 0.8244 GB, free: 84.52 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.517e-05/1.471, allocations: 25.7 kB / 0.8244 GB, free: 84.49 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001631/1.471, allocations: 324.1 kB / 0.8247 GB, free: 84.16 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 6.433e-05/1.471, allocations: 106.5 kB / 0.8248 GB, free: 84.06 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.603e-05/1.471, allocations: 0 / 0.8248 GB, free: 84.06 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 9.05e-05/1.472, allocations: 374.7 kB / 0.8252 GB, free: 83.68 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001374/1.472, allocations: 100.8 kB / 0.8253 GB, free: 83.58 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001693/1.472, allocations: 199.3 kB / 0.8255 GB, free: 83.34 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005667/1.472, allocations: 164.1 kB / 0.8256 GB, free: 83.18 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/1.472, allocations: 0 / 0.8256 GB, free: 83.18 MB / 0.4948 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008733/1.473, allocations: 438.7 kB / 0.8261 GB, free: 82.75 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/1.473, allocations: 4.375 kB / 0.8261 GB, free: 82.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.026e-06/1.473, allocations: 8 kB / 0.8261 GB, free: 82.73 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001547/1.474, allocations: 32.78 kB / 0.8261 GB, free: 82.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002965/1.474, allocations: 79.89 kB / 0.8262 GB, free: 82.62 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003225/1.474, allocations: 0.5523 MB / 0.8267 GB, free: 82.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000427/1.475, allocations: 55.69 kB / 0.8268 GB, free: 81.99 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.76e-05/1.475, allocations: 12 kB / 0.8268 GB, free: 81.98 MB / 0.4948 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: resistance.massFlowRate:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" nominal = 0.001 ) "Mass flow" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001432/1.475, allocations: 128.9 kB / 0.8269 GB, free: 81.85 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000529/1.475, allocations: 319.2 kB / 0.8272 GB, free: 81.53 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.775e-05/1.475, allocations: 59.25 kB / 0.8273 GB, free: 81.47 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006542/1.476, allocations: 378.9 kB / 0.8276 GB, free: 81.08 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.747e-06/1.476, allocations: 8 kB / 0.8276 GB, free: 81.07 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/1.476, allocations: 0 / 0.8276 GB, free: 81.07 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/1.476, allocations: 0 / 0.8276 GB, free: 81.07 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001077/1.477, allocations: 0.8362 MB / 0.8284 GB, free: 80.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/1.477, allocations: 4 kB / 0.8284 GB, free: 80.18 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002066/1.477, allocations: 51.94 kB / 0.8285 GB, free: 80.13 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.852e-05/1.478, allocations: 24.84 kB / 0.8285 GB, free: 80.1 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.251e-05/1.478, allocations: 7.984 kB / 0.8285 GB, free: 80.09 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002949/1.478, allocations: 0.5522 MB / 0.8291 GB, free: 79.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/1.478, allocations: 4.031 kB / 0.8291 GB, free: 79.51 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000729/1.479, allocations: 0.5372 MB / 0.8296 GB, free: 78.95 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001652/1.479, allocations: 164.3 kB / 0.8298 GB, free: 78.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.829e-05/1.479, allocations: 8 kB / 0.8298 GB, free: 78.76 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002979/1.479, allocations: 28.03 kB / 0.8298 GB, free: 78.73 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.278e-05/1.479, allocations: 15.97 kB / 0.8298 GB, free: 78.71 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.329e-05/1.479, allocations: 19.94 kB / 0.8298 GB, free: 78.7 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0003706/1.48, allocations: 371.2 kB / 0.8302 GB, free: 78.34 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.01e-07/1.48, allocations: 0 / 0.8302 GB, free: 78.34 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001924/1.482, allocations: 0.6357 MB / 0.8308 GB, free: 77.7 MB / 0.4948 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.002738/1.484, allocations: 2.203 MB / 0.833 GB, free: 75.46 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0004999/1.485, allocations: 256.1 kB / 0.8332 GB, free: 75.21 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/1.485, allocations: 4 kB / 0.8332 GB, free: 75.21 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.000184/1.485, allocations: 123.8 kB / 0.8333 GB, free: 75.09 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001436/1.487, allocations: 332.7 kB / 0.8336 GB, free: 74.77 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002044/1.489, allocations: 1.085 MB / 0.8347 GB, free: 73.64 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003267/1.489, allocations: 0.89 MB / 0.8356 GB, free: 72.72 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0003888/1.489, allocations: 108.9 kB / 0.8357 GB, free: 72.61 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002443/1.49, allocations: 219.3 kB / 0.8359 GB, free: 72.39 MB / 0.4948 GB Notification: Performance of SimCode: time 5.31e-07/1.49, allocations: 0 / 0.8359 GB, free: 72.39 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05322/1.543, allocations: 26.91 MB / 0.8622 GB, free: 45.54 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001584/1.543, allocations: 133.5 kB / 0.8623 GB, free: 45.35 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.784/4.327, allocations: 0 / 0.8623 GB, free: 45.35 MB / 0.4948 GB (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe 2>&1)