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.001013/0.001013, allocations: 174.7 kB / 12.73 MB, free: 2.59 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.466/1.466, allocations: 221.4 MB / 234.6 MB, free: 14.44 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001052/0.001053, allocations: 94.92 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.5962/0.5962, allocations: 37.07 MB / 373.6 MB, free: 45.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 4.241e-05/4.273e-05, allocations: 11.92 kB / 441.6 MB, free: 15.38 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1517/0.1518, allocations: 60.08 MB / 0.4899 GB, free: 3.195 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6144/0.7662, allocations: 174.3 MB / 0.6602 GB, free: 14.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003372/0.7666, allocations: 75.97 kB / 0.6602 GB, free: 14.13 MB / 490.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.7013/1.468, allocations: 170.4 MB / 0.8266 GB, free: 27.33 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.794e-06/1.468, allocations: 3.938 kB / 0.8266 GB, free: 27.32 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.074e-05/1.468, allocations: 12 kB / 0.8266 GB, free: 27.31 MB / 490.7 MB 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.003434/1.471, allocations: 1.492 MB / 0.8281 GB, free: 25.77 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/1.471, allocations: 12.03 kB / 0.8281 GB, free: 25.76 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.476e-05/1.472, allocations: 66.53 kB / 0.8282 GB, free: 25.69 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001112/1.472, allocations: 75.11 kB / 0.8282 GB, free: 25.61 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009863/1.473, allocations: 0.5851 MB / 0.8288 GB, free: 24.98 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.449e-05/1.473, allocations: 28.78 kB / 0.8288 GB, free: 24.96 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.682e-05/1.473, allocations: 28 kB / 0.8289 GB, free: 24.93 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005277/1.473, allocations: 364.7 kB / 0.8292 GB, free: 24.55 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/1.473, allocations: 0 / 0.8292 GB, free: 24.55 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.244e-05/1.473, allocations: 19.98 kB / 0.8292 GB, free: 24.54 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/1.473, allocations: 15.95 kB / 0.8292 GB, free: 24.52 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004241/1.474, allocations: 283 kB / 0.8295 GB, free: 24.24 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002179/1.476, allocations: 2.037 MB / 0.8315 GB, free: 21.99 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004109/1.476, allocations: 291.2 kB / 0.8318 GB, free: 21.7 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001774/1.477, allocations: 129.1 kB / 0.8319 GB, free: 21.57 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001036/1.478, allocations: 0.9704 MB / 0.8328 GB, free: 20.5 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002226/1.478, allocations: 165.4 kB / 0.833 GB, free: 20.33 MB / 490.7 MB Notification: Performance of pre-optimization done (n=29): time 1.653e-06/1.478, allocations: 3.938 kB / 0.833 GB, free: 20.32 MB / 490.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006123/1.479, allocations: 328.5 kB / 0.8333 GB, free: 20 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.401e-05/1.479, allocations: 63.36 kB / 0.8334 GB, free: 19.92 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000519/1.479, allocations: 0.5231 MB / 0.8339 GB, free: 19.39 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.5e-05/1.479, allocations: 33.7 kB / 0.8339 GB, free: 19.35 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000172/1.479, allocations: 312 kB / 0.8342 GB, free: 19.04 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.43e-05/1.479, allocations: 102.6 kB / 0.8343 GB, free: 18.94 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.653e-05/1.479, allocations: 8 kB / 0.8343 GB, free: 18.93 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.9e-05/1.48, allocations: 374.8 kB / 0.8347 GB, free: 18.56 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001612/1.48, allocations: 112.8 kB / 0.8348 GB, free: 18.45 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001955/1.48, allocations: 207.4 kB / 0.835 GB, free: 18.2 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001957/1.48, allocations: 136 kB / 0.8351 GB, free: 18.07 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/1.48, allocations: 7.938 kB / 0.8351 GB, free: 18.06 MB / 490.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.000662/1.481, allocations: 432.4 kB / 0.8355 GB, free: 17.63 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/1.481, allocations: 9.875 kB / 0.8356 GB, free: 17.62 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/1.481, allocations: 4 kB / 0.8356 GB, free: 17.62 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001751/1.481, allocations: 45.11 kB / 0.8356 GB, free: 17.57 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002941/1.481, allocations: 71.91 kB / 0.8357 GB, free: 17.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002702/1.482, allocations: 0.5484 MB / 0.8362 GB, free: 16.93 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003933/1.482, allocations: 55.67 kB / 0.8363 GB, free: 16.88 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.204e-05/1.482, allocations: 23.98 kB / 0.8363 GB, free: 16.85 MB / 490.7 MB 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 9.173e-05/1.482, allocations: 128.9 kB / 0.8364 GB, free: 16.72 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.097e-05/1.482, allocations: 67.2 kB / 0.8365 GB, free: 16.65 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005909/1.483, allocations: 390.8 kB / 0.8368 GB, free: 16.25 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/1.483, allocations: 0 / 0.8368 GB, free: 16.25 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/1.483, allocations: 0 / 0.8368 GB, free: 16.25 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/1.483, allocations: 7.984 kB / 0.8368 GB, free: 16.24 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001019/1.484, allocations: 0.8862 MB / 0.8377 GB, free: 15.29 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/1.484, allocations: 4 kB / 0.8377 GB, free: 15.29 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002083/1.484, allocations: 51.91 kB / 0.8378 GB, free: 15.24 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.829e-05/1.484, allocations: 24.84 kB / 0.8378 GB, free: 15.21 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.081e-05/1.484, allocations: 8 kB / 0.8378 GB, free: 15.2 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002085/1.484, allocations: 0.5562 MB / 0.8383 GB, free: 14.62 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/1.484, allocations: 0 / 0.8383 GB, free: 14.62 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006256/1.485, allocations: 0.5567 MB / 0.8389 GB, free: 14.04 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001734/1.485, allocations: 172.2 kB / 0.839 GB, free: 13.85 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.336e-05/1.485, allocations: 4 kB / 0.839 GB, free: 13.84 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003102/1.486, allocations: 27.97 kB / 0.8391 GB, free: 13.82 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.798e-05/1.486, allocations: 27.91 kB / 0.8391 GB, free: 13.79 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-05/1.486, allocations: 8.047 kB / 0.8391 GB, free: 13.78 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003954/1.486, allocations: 427.2 kB / 0.8395 GB, free: 13.37 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.61e-07/1.486, allocations: 0 / 0.8395 GB, free: 13.37 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001703/1.488, allocations: 0.6671 MB / 0.8402 GB, free: 12.7 MB / 490.7 MB 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.002546/1.49, allocations: 2.191 MB / 0.8423 GB, free: 10.47 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0005344/1.491, allocations: 280.5 kB / 0.8426 GB, free: 10.2 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.624e-06/1.491, allocations: 0 / 0.8426 GB, free: 10.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002064/1.491, allocations: 132.7 kB / 0.8427 GB, free: 10.07 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001487/1.493, allocations: 358.2 kB / 0.843 GB, free: 9.719 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001863/1.495, allocations: 1.106 MB / 0.8441 GB, free: 8.578 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002752/1.495, allocations: 0.894 MB / 0.845 GB, free: 7.652 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0003984/1.495, allocations: 113.2 kB / 0.8451 GB, free: 7.539 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002539/1.496, allocations: 227.3 kB / 0.8453 GB, free: 7.32 MB / 490.7 MB Notification: Performance of SimCode: time 1.713e-06/1.496, allocations: 0 / 0.8453 GB, free: 7.32 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3802/1.876, allocations: 31.64 MB / 0.8762 GB, free: 75.42 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000157/1.876, allocations: 178.5 kB / 0.8764 GB, free: 75.2 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.909/4.785, allocations: 3.5 kB / 0.8764 GB, free: 75.2 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)