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.006613/0.006613, allocations: 168.5 kB / 15.11 MB, free: 5.969 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.459/1.459, allocations: 223.2 MB / 239 MB, free: 1.812 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.0009362/0.0009362, allocations: 95.89 kB / 290.2 MB, free: 13.96 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.2613/0.2613, allocations: 37.07 MB / 378.4 MB, free: 5.734 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000383/0.000383, allocations: 20 kB / 449.1 MB, free: 61.62 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1321, allocations: 60.08 MB / 0.4972 GB, free: 1.488 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5113/0.6434, allocations: 174.4 MB / 0.6675 GB, free: 12.52 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002305/0.6437, allocations: 82.83 kB / 0.6676 GB, free: 12.48 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 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.7208/1.365, allocations: 170.8 MB / 0.8344 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.703e-06/1.365, allocations: 0 / 0.8344 GB, free: 103.2 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 6.308e-05/1.365, allocations: 16 kB / 0.8344 GB, free: 103.2 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.003927/1.369, allocations: 1.616 MB / 0.836 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/1.369, allocations: 12.02 kB / 0.836 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001457/1.369, allocations: 74.53 kB / 0.8361 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000183/1.369, allocations: 75.11 kB / 0.8362 GB, free: 101.4 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001113/1.37, allocations: 0.5849 MB / 0.8368 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.477e-05/1.37, allocations: 28.66 kB / 0.8368 GB, free: 100.7 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.181e-05/1.37, allocations: 28 kB / 0.8368 GB, free: 100.7 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005947/1.371, allocations: 394.6 kB / 0.8372 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/1.371, allocations: 0 / 0.8372 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.387e-05/1.371, allocations: 19.98 kB / 0.8372 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.173e-05/1.371, allocations: 8 kB / 0.8372 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005913/1.372, allocations: 334.3 kB / 0.8375 GB, free: 99.94 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002237/1.374, allocations: 2.019 MB / 0.8395 GB, free: 97.71 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000524/1.374, allocations: 352 kB / 0.8398 GB, free: 97.36 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001047/1.375, allocations: 0.9548 MB / 0.8408 GB, free: 96.3 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002932/1.376, allocations: 177.5 kB / 0.8409 GB, free: 96.12 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=29): time 1.914e-06/1.376, allocations: 0 / 0.8409 GB, free: 96.12 MB / 0.5105 GB Notification: Performance of matching and sorting (n=29): time 0.001041/1.377, allocations: 0.7177 MB / 0.8416 GB, free: 95.34 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.172e-05/1.377, allocations: 55.41 kB / 0.8417 GB, free: 95.27 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005406/1.377, allocations: 0.5268 MB / 0.8422 GB, free: 94.73 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.836e-05/1.377, allocations: 37.7 kB / 0.8422 GB, free: 94.69 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001673/1.378, allocations: 316 kB / 0.8425 GB, free: 94.38 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 6.69e-05/1.378, allocations: 98.64 kB / 0.8426 GB, free: 94.28 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.627e-05/1.378, allocations: 4 kB / 0.8426 GB, free: 94.28 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.935e-05/1.378, allocations: 374.8 kB / 0.843 GB, free: 93.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002327/1.378, allocations: 132.7 kB / 0.8431 GB, free: 93.77 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002537/1.378, allocations: 231.3 kB / 0.8433 GB, free: 93.5 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002588/1.379, allocations: 148.3 kB / 0.8435 GB, free: 93.36 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/1.379, allocations: 0 / 0.8435 GB, free: 93.36 MB / 0.5105 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007407/1.379, allocations: 490.7 kB / 0.844 GB, free: 92.87 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/1.379, allocations: 14.84 kB / 0.844 GB, free: 92.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/1.379, allocations: 0 / 0.844 GB, free: 92.86 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000166/1.38, allocations: 36.84 kB / 0.844 GB, free: 92.82 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002996/1.38, allocations: 75.89 kB / 0.8441 GB, free: 92.74 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002669/1.38, allocations: 0.5484 MB / 0.8446 GB, free: 92.17 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000436/1.381, allocations: 63.55 kB / 0.8447 GB, free: 92.11 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.985e-05/1.381, allocations: 19.92 kB / 0.8447 GB, free: 92.09 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 (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.0002034/1.381, allocations: 189.8 kB / 0.8449 GB, free: 91.89 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.079e-05/1.381, allocations: 67.14 kB / 0.8449 GB, free: 91.82 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000737/1.382, allocations: 440.6 kB / 0.8454 GB, free: 91.38 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.271e-06/1.382, allocations: 0 / 0.8454 GB, free: 91.38 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/1.382, allocations: 4 kB / 0.8454 GB, free: 91.38 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/1.382, allocations: 3.984 kB / 0.8454 GB, free: 91.37 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00121/1.383, allocations: 0.9291 MB / 0.8463 GB, free: 90.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/1.383, allocations: 0 / 0.8463 GB, free: 90.38 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002132/1.383, allocations: 47.91 kB / 0.8463 GB, free: 90.33 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.758e-05/1.383, allocations: 32.88 kB / 0.8463 GB, free: 90.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.416e-05/1.383, allocations: 11.98 kB / 0.8464 GB, free: 90.29 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002595/1.383, allocations: 0.5405 MB / 0.8469 GB, free: 89.72 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/1.384, allocations: 0 / 0.8469 GB, free: 89.72 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008196/1.384, allocations: 0.6235 MB / 0.8475 GB, free: 89.07 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002085/1.385, allocations: 172.1 kB / 0.8477 GB, free: 88.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.551e-05/1.385, allocations: 8 kB / 0.8477 GB, free: 88.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003314/1.385, allocations: 36.03 kB / 0.8477 GB, free: 88.84 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.81e-05/1.385, allocations: 15.97 kB / 0.8477 GB, free: 88.82 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.315e-05/1.385, allocations: 12 kB / 0.8477 GB, free: 88.81 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0004169/1.386, allocations: 427 kB / 0.8481 GB, free: 88.39 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.2e-07/1.386, allocations: 0 / 0.8481 GB, free: 88.39 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001947/1.387, allocations: 0.6592 MB / 0.8488 GB, free: 87.73 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 (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.003488/1.391, allocations: 2.268 MB / 0.851 GB, free: 85.44 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0006824/1.392, allocations: 317.1 kB / 0.8513 GB, free: 85.13 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/1.392, allocations: 4.125 kB / 0.8513 GB, free: 85.13 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.000279/1.392, allocations: 143.8 kB / 0.8514 GB, free: 84.99 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001428/1.393, allocations: 356.1 kB / 0.8518 GB, free: 84.65 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005788/1.399, allocations: 5.558 MB / 0.8572 GB, free: 78.98 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003207/1.4, allocations: 0.8902 MB / 0.8581 GB, free: 78.05 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0004768/1.4, allocations: 121.2 kB / 0.8582 GB, free: 77.93 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002635/1.4, allocations: 219.4 kB / 0.8584 GB, free: 77.72 MB / 0.5105 GB Notification: Performance of SimCode: time 5.851e-06/1.4, allocations: 4 kB / 0.8584 GB, free: 77.71 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05441/1.455, allocations: 31.14 MB / 0.8888 GB, free: 46.77 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001681/1.455, allocations: 205 kB / 0.889 GB, free: 46.53 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.053/4.508, allocations: 3.938 kB / 0.889 GB, free: 46.53 MB / 0.5105 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)