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.001993/0.001993, allocations: 174.3 kB / 7.648 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.628/1.628, allocations: 221.5 MB / 229.6 MB, free: 7.598 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.0008592/0.0008592, allocations: 89.77 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.2278/0.2278, allocations: 37.09 MB / 368.3 MB, free: 9.992 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.094e-05/2.096e-05, allocations: 4 kB / 434.7 MB, free: 23.03 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1432, allocations: 60.08 MB / 494.8 MB, free: 11 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5948/0.7381, allocations: 173.7 MB / 0.6529 GB, free: 9.93 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002812/0.7385, allocations: 79.27 kB / 0.653 GB, free: 9.891 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 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.7761/1.515, allocations: 203.8 MB / 0.8519 GB, free: 56.41 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.763e-06/1.515, allocations: 0 / 0.8519 GB, free: 56.41 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.553e-05/1.515, allocations: 12 kB / 0.852 GB, free: 56.4 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.004007/1.519, allocations: 1.711 MB / 0.8536 GB, free: 54.64 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/1.519, allocations: 8.031 kB / 0.8536 GB, free: 54.63 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/1.519, allocations: 94.91 kB / 0.8537 GB, free: 54.54 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009865/1.52, allocations: 0.6364 MB / 0.8544 GB, free: 53.86 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.032e-05/1.52, allocations: 12 kB / 0.8544 GB, free: 53.85 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.544e-05/1.52, allocations: 23.98 kB / 0.8544 GB, free: 53.83 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000477/1.52, allocations: 305.5 kB / 0.8547 GB, free: 53.53 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005101/1.521, allocations: 355.1 kB / 0.855 GB, free: 53.16 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.75e-05/1.521, allocations: 7.984 kB / 0.855 GB, free: 53.16 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.412e-05/1.521, allocations: 3.953 kB / 0.855 GB, free: 53.15 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.324e-05/1.521, allocations: 11.94 kB / 0.855 GB, free: 53.14 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002312/1.523, allocations: 2.135 MB / 0.8571 GB, free: 50.8 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004052/1.524, allocations: 315.1 kB / 0.8574 GB, free: 50.48 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001657/1.524, allocations: 137.1 kB / 0.8576 GB, free: 50.34 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001113/1.525, allocations: 0.9977 MB / 0.8585 GB, free: 49.24 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002232/1.525, allocations: 176.2 kB / 0.8587 GB, free: 49.06 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=33): time 2.144e-06/1.525, allocations: 0 / 0.8587 GB, free: 49.06 MB / 0.4948 GB Notification: Performance of matching and sorting (n=33): time 0.0008808/1.526, allocations: 388.9 kB / 0.8591 GB, free: 48.67 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.674e-05/1.526, allocations: 59.41 kB / 0.8591 GB, free: 48.6 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004952/1.527, allocations: 0.5038 MB / 0.8596 GB, free: 48.09 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.633e-05/1.527, allocations: 25.7 kB / 0.8596 GB, free: 48.06 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001833/1.527, allocations: 356 kB / 0.86 GB, free: 47.71 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 7.613e-05/1.527, allocations: 106.5 kB / 0.8601 GB, free: 47.6 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.748e-05/1.527, allocations: 0 / 0.8601 GB, free: 47.6 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001312/1.527, allocations: 374.8 kB / 0.8604 GB, free: 47.23 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001531/1.527, allocations: 112.8 kB / 0.8605 GB, free: 47.12 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001899/1.528, allocations: 219.4 kB / 0.8608 GB, free: 46.86 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006364/1.528, allocations: 185.1 kB / 0.8609 GB, free: 46.68 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/1.528, allocations: 0 / 0.8609 GB, free: 46.68 MB / 0.4948 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009962/1.529, allocations: 0.5005 MB / 0.8614 GB, free: 46.17 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.956e-05/1.529, allocations: 4 kB / 0.8614 GB, free: 46.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/1.529, allocations: 4 kB / 0.8614 GB, free: 46.16 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002512/1.53, allocations: 78.05 kB / 0.8615 GB, free: 46.08 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002925/1.53, allocations: 79.83 kB / 0.8616 GB, free: 46 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005811/1.53, allocations: 1.132 MB / 0.8627 GB, free: 44.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004393/1.531, allocations: 55.75 kB / 0.8627 GB, free: 44.76 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.452e-05/1.531, allocations: 20 kB / 0.8628 GB, free: 44.74 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 (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.0001819/1.531, allocations: 124.8 kB / 0.8629 GB, free: 44.61 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006702/1.532, allocations: 378.3 kB / 0.8632 GB, free: 44.23 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.635e-05/1.532, allocations: 71.11 kB / 0.8633 GB, free: 44.16 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008315/1.533, allocations: 440.4 kB / 0.8637 GB, free: 43.71 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/1.533, allocations: 4 kB / 0.8637 GB, free: 43.7 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/1.533, allocations: 0 / 0.8637 GB, free: 43.7 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/1.533, allocations: 0 / 0.8637 GB, free: 43.7 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001429/1.534, allocations: 0.9619 MB / 0.8647 GB, free: 42.69 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-06/1.534, allocations: 4 kB / 0.8647 GB, free: 42.68 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002138/1.535, allocations: 43.91 kB / 0.8647 GB, free: 42.64 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001574/1.535, allocations: 69.67 kB / 0.8648 GB, free: 42.57 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.588e-05/1.535, allocations: 7.953 kB / 0.8648 GB, free: 42.56 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000636/1.535, allocations: 1.132 MB / 0.8659 GB, free: 41.38 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/1.535, allocations: 0 / 0.8659 GB, free: 41.38 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008625/1.536, allocations: 0.6278 MB / 0.8665 GB, free: 40.71 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001912/1.536, allocations: 184.2 kB / 0.8667 GB, free: 40.52 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.398e-05/1.537, allocations: 4 kB / 0.8667 GB, free: 40.51 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003262/1.537, allocations: 27.98 kB / 0.8667 GB, free: 40.48 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.409e-05/1.537, allocations: 27.95 kB / 0.8667 GB, free: 40.46 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.815e-05/1.537, allocations: 12 kB / 0.8668 GB, free: 40.45 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0004169/1.537, allocations: 399.2 kB / 0.8671 GB, free: 40.06 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.91e-07/1.537, allocations: 0 / 0.8671 GB, free: 40.06 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002373/1.54, allocations: 0.78 MB / 0.8679 GB, free: 39.28 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 (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.00351/1.543, allocations: 2.53 MB / 0.8704 GB, free: 36.71 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0006136/1.544, allocations: 300.1 kB / 0.8706 GB, free: 36.42 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/1.544, allocations: 8.25 kB / 0.8707 GB, free: 36.41 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0002316/1.544, allocations: 143.8 kB / 0.8708 GB, free: 36.27 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00158/1.546, allocations: 380.8 kB / 0.8712 GB, free: 35.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002255/1.548, allocations: 1.254 MB / 0.8724 GB, free: 34.6 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002898/1.548, allocations: 0.914 MB / 0.8733 GB, free: 33.66 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0004089/1.549, allocations: 113.5 kB / 0.8734 GB, free: 33.54 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002685/1.549, allocations: 239.3 kB / 0.8736 GB, free: 33.31 MB / 0.4948 GB Notification: Performance of SimCode: time 6.71e-07/1.549, allocations: 4 kB / 0.8736 GB, free: 33.3 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05852/1.608, allocations: 32.02 MB / 0.9049 GB, free: 1.363 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001618/1.608, allocations: 129.6 kB / 0.905 GB, free: 1.176 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.869/4.477, allocations: 0 / 0.905 GB, free: 1.176 MB / 0.4948 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)