Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.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: translateModel(Physiolibrary.Fluid.Examples.Windkessel_4element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element") translateModel(Physiolibrary.Fluid.Examples.Windkessel_4element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009472/0.0009471, allocations: 174.6 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.282/1.282, allocations: 221.4 MB / 234.6 MB, free: 14.45 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.0008443/0.000844, allocations: 90.55 kB / 285.6 MB, free: 13 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.3592/0.3592, allocations: 37.06 MB / 373.6 MB, free: 45.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.906e-05/2.91e-05, allocations: 4 kB / 441.5 MB, free: 15.48 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1377, allocations: 60.08 MB / 0.4898 GB, free: 3.305 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.475/0.6127, allocations: 174.8 MB / 0.6605 GB, free: 13.77 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000317/0.6131, allocations: 75.97 kB / 0.6606 GB, free: 13.7 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:546:7-546:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System inertia.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.Inertia$inertia. 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 1.073/1.686, allocations: 241.9 MB / 0.8969 GB, free: 56.91 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.012e-06/1.686, allocations: 2.734 kB / 0.8969 GB, free: 56.91 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.704e-05/1.686, allocations: 20.09 kB / 0.8969 GB, free: 56.91 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.004661/1.69, allocations: 1.932 MB / 0.8988 GB, free: 56.13 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/1.69, allocations: 8 kB / 0.8988 GB, free: 56.13 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001708/1.691, allocations: 97.61 kB / 0.8989 GB, free: 56.08 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001175/1.692, allocations: 0.7003 MB / 0.8996 GB, free: 55.82 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.733e-05/1.692, allocations: 33.19 kB / 0.8996 GB, free: 55.82 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.558e-05/1.692, allocations: 44 kB / 0.8996 GB, free: 55.82 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007498/1.693, allocations: 0.4946 MB / 0.9001 GB, free: 55.75 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/1.693, allocations: 1.625 kB / 0.9001 GB, free: 55.75 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.633e-05/1.693, allocations: 15.28 kB / 0.9001 GB, free: 55.75 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/1.693, allocations: 12.94 kB / 0.9001 GB, free: 55.75 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006895/1.694, allocations: 446.6 kB / 0.9006 GB, free: 55.74 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002734/1.696, allocations: 2.487 MB / 0.903 GB, free: 54.27 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005632/1.697, allocations: 407.3 kB / 0.9034 GB, free: 54.23 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003007/1.697, allocations: 207.5 kB / 0.9036 GB, free: 54.23 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001262/1.698, allocations: 1.142 MB / 0.9047 GB, free: 53.56 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002949/1.699, allocations: 229.1 kB / 0.9049 GB, free: 53.51 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002446/1.699, allocations: 50.16 kB / 0.905 GB, free: 53.5 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=39): time 1.914e-06/1.699, allocations: 0 / 0.905 GB, free: 53.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=39): time 0.0008243/1.7, allocations: 477.6 kB / 0.9054 GB, free: 53.41 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.355e-05/1.7, allocations: 64.16 kB / 0.9055 GB, free: 53.34 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000632/1.701, allocations: 0.6011 MB / 0.9061 GB, free: 53.21 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.083e-05/1.701, allocations: 35.45 kB / 0.9061 GB, free: 53.18 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001946/1.701, allocations: 378.1 kB / 0.9065 GB, free: 53.05 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 8.23e-05/1.701, allocations: 132 kB / 0.9066 GB, free: 52.99 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.21e-05/1.701, allocations: 11.06 kB / 0.9066 GB, free: 52.99 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 5.864e-05/1.701, allocations: 328.2 kB / 0.9069 GB, free: 52.68 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002175/1.701, allocations: 150.7 kB / 0.9071 GB, free: 52.68 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002645/1.701, allocations: 261.2 kB / 0.9073 GB, free: 52.57 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002521/1.702, allocations: 177.4 kB / 0.9075 GB, free: 52.56 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.624e-06/1.702, allocations: 6.031 kB / 0.9075 GB, free: 52.56 MB / 0.4948 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0008359/1.703, allocations: 0.5768 MB / 0.908 GB, free: 52.46 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/1.703, allocations: 7.531 kB / 0.908 GB, free: 52.46 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/1.703, allocations: 2.594 kB / 0.908 GB, free: 52.46 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002298/1.703, allocations: 74.44 kB / 0.9081 GB, free: 52.45 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003586/1.703, allocations: 106.8 kB / 0.9082 GB, free: 52.45 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004964/1.704, allocations: 1.109 MB / 0.9093 GB, free: 51.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004673/1.704, allocations: 46.39 kB / 0.9093 GB, free: 51.41 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.007e-05/1.704, allocations: 21.67 kB / 0.9094 GB, free: 51.41 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 (53): * Single equations (assignments): 49 * 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.000104/1.704, allocations: 136 kB / 0.9095 GB, free: 51.3 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.651e-05/1.704, allocations: 83.22 kB / 0.9096 GB, free: 51.26 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009017/1.705, allocations: 0.5647 MB / 0.9101 GB, free: 51.16 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/1.705, allocations: 10.8 kB / 0.9101 GB, free: 51.16 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/1.705, allocations: 3.562 kB / 0.9101 GB, free: 51.16 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/1.705, allocations: 6.453 kB / 0.9102 GB, free: 51.16 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001509/1.707, allocations: 1.18 MB / 0.9113 GB, free: 50.83 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/1.707, allocations: 4.969 kB / 0.9113 GB, free: 50.83 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003226/1.707, allocations: 63.98 kB / 0.9114 GB, free: 50.83 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000172/1.707, allocations: 70.03 kB / 0.9114 GB, free: 50.82 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.537e-05/1.707, allocations: 12.88 kB / 0.9114 GB, free: 50.82 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004998/1.708, allocations: 1.115 MB / 0.9125 GB, free: 49.78 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/1.708, allocations: 0.9688 kB / 0.9125 GB, free: 49.78 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001224/1.709, allocations: 0.7787 MB / 0.9133 GB, free: 49.55 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002514/1.71, allocations: 200.9 kB / 0.9135 GB, free: 49.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.902e-05/1.71, allocations: 6.922 kB / 0.9135 GB, free: 49.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003794/1.71, allocations: 37.44 kB / 0.9135 GB, free: 49.41 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.49e-05/1.71, allocations: 34.62 kB / 0.9136 GB, free: 49.41 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.482e-05/1.71, allocations: 13.81 kB / 0.9136 GB, free: 49.41 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0005265/1.711, allocations: 489.6 kB / 0.914 GB, free: 49.31 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.81e-07/1.711, allocations: 2.312 kB / 0.914 GB, free: 49.31 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002795/1.713, allocations: 0.9593 MB / 0.915 GB, free: 49.1 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (arteries.enthalpy,arteries.mass,inertia.q_in.m_flow) * 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 (36): * Single equations (assignments): 30 * 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.002716/1.716, allocations: 1.629 MB / 0.9166 GB, free: 48.76 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0007781/1.717, allocations: 413.6 kB / 0.917 GB, free: 48.75 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/1.717, allocations: 2.531 kB / 0.917 GB, free: 48.75 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0003649/1.717, allocations: 196.4 kB / 0.9172 GB, free: 48.75 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001881/1.719, allocations: 469.9 kB / 0.9176 GB, free: 48.74 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001699/1.721, allocations: 1.027 MB / 0.9186 GB, free: 48.42 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003483/1.721, allocations: 0.9518 MB / 0.9195 GB, free: 47.72 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0005351/1.722, allocations: 149.5 kB / 0.9197 GB, free: 47.71 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001717/1.722, allocations: 71.73 kB / 0.9197 GB, free: 47.7 MB / 0.4948 GB Notification: Performance of SimCode: time 3.51e-07/1.722, allocations: 0 / 0.9197 GB, free: 47.7 MB / 0.4948 GB Notification: Performance of Templates: time 0.04827/1.77, allocations: 34.64 MB / 0.9536 GB, free: 45.61 MB / 0.4948 GB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.makefile (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe 2>&1)