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.0009303/0.0009302, allocations: 175 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.489/1.489, allocations: 221.4 MB / 234.6 MB, free: 14.43 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.0009777/0.0009776, allocations: 87.09 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.5969/0.5969, allocations: 37.06 MB / 373.6 MB, free: 45.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.295e-05/3.297e-05, allocations: 11.86 kB / 441.6 MB, free: 15.36 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1536/0.1536, allocations: 60.08 MB / 0.4899 GB, free: 3.176 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6137/0.7674, allocations: 174.4 MB / 0.6602 GB, free: 14.06 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002376/0.7677, allocations: 85.31 kB / 0.6603 GB, free: 13.98 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 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.7721/1.54, allocations: 206 MB / 0.8615 GB, free: 7.543 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.363e-06/1.54, allocations: 3.938 kB / 0.8615 GB, free: 7.539 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.583e-05/1.54, allocations: 20 kB / 0.8615 GB, free: 7.52 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.003891/1.544, allocations: 1.706 MB / 0.8632 GB, free: 5.766 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/1.544, allocations: 8.031 kB / 0.8632 GB, free: 5.758 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.679e-05/1.544, allocations: 74.53 kB / 0.8632 GB, free: 5.676 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001345/1.544, allocations: 82.97 kB / 0.8633 GB, free: 5.594 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001134/1.545, allocations: 0.6404 MB / 0.8639 GB, free: 4.906 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.173e-05/1.545, allocations: 24.78 kB / 0.864 GB, free: 4.883 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.565e-05/1.545, allocations: 40 kB / 0.864 GB, free: 4.844 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006774/1.546, allocations: 412.6 kB / 0.8644 GB, free: 4.422 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/1.546, allocations: 0 / 0.8644 GB, free: 4.422 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.014e-05/1.546, allocations: 19.95 kB / 0.8644 GB, free: 4.402 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/1.546, allocations: 8 kB / 0.8644 GB, free: 4.395 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005403/1.547, allocations: 327 kB / 0.8647 GB, free: 4.078 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002735/1.549, allocations: 2.215 MB / 0.8669 GB, free: 1.641 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005298/1.55, allocations: 331.1 kB / 0.8672 GB, free: 1.305 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002203/1.55, allocations: 153 kB / 0.8674 GB, free: 1.152 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001317/1.552, allocations: 1.024 MB / 0.8684 GB, free: 28 kB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.3519/1.903, allocations: 171.4 kB / 0.8685 GB, free: 60.77 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=33): time 3.075e-06/1.903, allocations: 1.062 kB / 0.8685 GB, free: 60.77 MB / 0.4948 GB Notification: Performance of matching and sorting (n=33): time 0.001027/1.905, allocations: 397 kB / 0.8689 GB, free: 60.71 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.964e-05/1.905, allocations: 56.34 kB / 0.869 GB, free: 60.65 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008208/1.905, allocations: 0.5657 MB / 0.8695 GB, free: 60.53 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.18e-05/1.905, allocations: 32.23 kB / 0.8695 GB, free: 60.5 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002343/1.906, allocations: 351.8 kB / 0.8699 GB, free: 60.39 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001285/1.906, allocations: 110.7 kB / 0.87 GB, free: 60.33 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.95e-05/1.906, allocations: 5.25 kB / 0.87 GB, free: 60.33 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 7.014e-05/1.906, allocations: 326.5 kB / 0.8703 GB, free: 60.03 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002177/1.906, allocations: 119.2 kB / 0.8704 GB, free: 60.03 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002781/1.906, allocations: 226.2 kB / 0.8706 GB, free: 59.92 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002847/1.907, allocations: 150.9 kB / 0.8708 GB, free: 59.91 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-06/1.907, allocations: 1.125 kB / 0.8708 GB, free: 59.91 MB / 0.4948 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000896/1.908, allocations: 0.4956 MB / 0.8713 GB, free: 59.82 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/1.908, allocations: 6.75 kB / 0.8713 GB, free: 59.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/1.908, allocations: 3.031 kB / 0.8713 GB, free: 59.82 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002946/1.908, allocations: 77.78 kB / 0.8713 GB, free: 59.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003372/1.908, allocations: 78.83 kB / 0.8714 GB, free: 59.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005478/1.909, allocations: 1.114 MB / 0.8725 GB, free: 58.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005538/1.909, allocations: 65.34 kB / 0.8726 GB, free: 58.75 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.436e-05/1.91, allocations: 20.08 kB / 0.8726 GB, free: 58.75 MB / 0.4948 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 () * 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.0001022/1.91, allocations: 134.7 kB / 0.8727 GB, free: 58.65 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/1.91, allocations: 73.28 kB / 0.8728 GB, free: 58.61 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009706/1.911, allocations: 451.7 kB / 0.8732 GB, free: 58.53 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.789e-06/1.911, allocations: 3.312 kB / 0.8732 GB, free: 58.53 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/1.911, allocations: 1.438 kB / 0.8732 GB, free: 58.53 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/1.911, allocations: 3.812 kB / 0.8732 GB, free: 58.53 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001803/1.913, allocations: 1.007 MB / 0.8742 GB, free: 58.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/1.913, allocations: 1.469 kB / 0.8742 GB, free: 58.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002298/1.913, allocations: 49 kB / 0.8743 GB, free: 58.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002149/1.913, allocations: 69.2 kB / 0.8743 GB, free: 58.18 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.606e-05/1.913, allocations: 9.484 kB / 0.8743 GB, free: 58.18 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004885/1.914, allocations: 1.117 MB / 0.8754 GB, free: 57.14 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/1.914, allocations: 1.172 kB / 0.8754 GB, free: 57.14 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/1.915, allocations: 0.642 MB / 0.8761 GB, free: 56.93 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002676/1.915, allocations: 189.1 kB / 0.8762 GB, free: 56.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.553e-05/1.915, allocations: 11.56 kB / 0.8762 GB, free: 56.79 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003661/1.915, allocations: 31.64 kB / 0.8763 GB, free: 56.79 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/1.916, allocations: 22.72 kB / 0.8763 GB, free: 56.79 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.824e-05/1.916, allocations: 15.8 kB / 0.8763 GB, free: 56.79 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0006835/1.916, allocations: 457.8 kB / 0.8767 GB, free: 56.69 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2e-07/1.916, allocations: 1.219 kB / 0.8767 GB, free: 56.69 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002596/1.919, allocations: 0.8067 MB / 0.8775 GB, free: 56.69 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.004257/1.923, allocations: 2.543 MB / 0.88 GB, free: 55.86 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0007737/1.924, allocations: 325.1 kB / 0.8803 GB, free: 55.86 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/1.924, allocations: 0 / 0.8803 GB, free: 55.86 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0002835/1.924, allocations: 151.7 kB / 0.8805 GB, free: 55.86 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001944/1.926, allocations: 414.5 kB / 0.8809 GB, free: 55.86 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003087/1.929, allocations: 1.282 MB / 0.8821 GB, free: 55.55 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003339/1.93, allocations: 0.9156 MB / 0.883 GB, free: 54.84 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0005417/1.93, allocations: 124.7 kB / 0.8831 GB, free: 54.83 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002822/1.93, allocations: 250.9 kB / 0.8834 GB, free: 54.82 MB / 0.4948 GB Notification: Performance of SimCode: time 7.81e-07/1.93, allocations: 2.219 kB / 0.8834 GB, free: 54.82 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0958/2.026, allocations: 37.61 MB / 0.9201 GB, free: 53.26 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002655/2.027, allocations: 174.9 kB / 0.9203 GB, free: 53.04 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.101/5.128, allocations: 0 / 0.9203 GB, free: 53.04 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)