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: translateModel(Physiolibrary.Fluid.Examples.Windkessel_3element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element") translateModel(Physiolibrary.Fluid.Examples.Windkessel_3element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006329/0.006329, allocations: 170.1 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.451/1.451, allocations: 223.2 MB / 239 MB, free: 40 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009/0.0009002, allocations: 98.44 kB / 290.2 MB, free: 4.512 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.2413/0.2413, allocations: 37.07 MB / 378.4 MB, free: 7.812 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004529/0.000453, allocations: 12.66 kB / 449 MB, free: 79.99 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1472/0.1477, allocations: 60.08 MB / 0.4971 GB, free: 19.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5412/0.689, allocations: 174.5 MB / 0.6675 GB, free: 12.21 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002941/0.6893, allocations: 82.08 kB / 0.6676 GB, free: 12.16 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.7938/1.483, allocations: 206.5 MB / 0.8693 GB, free: 81.62 MB / 0.5105 GB Notification: Performance of FrontEnd: time 5.4e-06/1.483, allocations: 0 / 0.8693 GB, free: 81.62 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 9.681e-05/1.483, allocations: 19.94 kB / 0.8693 GB, free: 81.6 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.005976/1.489, allocations: 1.839 MB / 0.8711 GB, free: 79.7 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.545e-05/1.489, allocations: 12.02 kB / 0.8711 GB, free: 79.69 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003851/1.49, allocations: 87.02 kB / 0.8712 GB, free: 79.61 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001554/1.491, allocations: 0.6443 MB / 0.8718 GB, free: 78.92 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.588e-05/1.491, allocations: 29 kB / 0.8719 GB, free: 78.89 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.366e-05/1.492, allocations: 36 kB / 0.8719 GB, free: 78.86 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008351/1.492, allocations: 439.8 kB / 0.8723 GB, free: 78.41 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/1.492, allocations: 0 / 0.8723 GB, free: 78.41 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.135e-05/1.492, allocations: 16 kB / 0.8723 GB, free: 78.39 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.45e-05/1.492, allocations: 11.95 kB / 0.8723 GB, free: 78.38 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006896/1.493, allocations: 375.7 kB / 0.8727 GB, free: 78.02 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003045/1.496, allocations: 2.211 MB / 0.8749 GB, free: 75.58 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006381/1.497, allocations: 374.6 kB / 0.8752 GB, free: 75.21 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001357/1.498, allocations: 1.001 MB / 0.8762 GB, free: 74.11 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003178/1.499, allocations: 200 kB / 0.8764 GB, free: 73.9 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=33): time 3.226e-06/1.499, allocations: 7.984 kB / 0.8764 GB, free: 73.89 MB / 0.5105 GB Notification: Performance of matching and sorting (n=33): time 0.00143/1.5, allocations: 0.8805 MB / 0.8772 GB, free: 72.93 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.707e-05/1.5, allocations: 63.33 kB / 0.8773 GB, free: 72.85 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006839/1.501, allocations: 0.5779 MB / 0.8779 GB, free: 72.27 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.004e-05/1.501, allocations: 29.7 kB / 0.8779 GB, free: 72.23 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001935/1.501, allocations: 351.9 kB / 0.8782 GB, free: 71.88 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 8.199e-05/1.501, allocations: 106.5 kB / 0.8783 GB, free: 71.78 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.835e-05/1.501, allocations: 8 kB / 0.8783 GB, free: 71.77 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.358e-05/1.501, allocations: 326 kB / 0.8787 GB, free: 71.45 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002605/1.502, allocations: 140.8 kB / 0.8788 GB, free: 71.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002777/1.502, allocations: 249.5 kB / 0.879 GB, free: 71.02 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002916/1.502, allocations: 169.1 kB / 0.8792 GB, free: 70.86 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/1.502, allocations: 8 kB / 0.8792 GB, free: 70.85 MB / 0.5105 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009269/1.503, allocations: 0.5473 MB / 0.8797 GB, free: 70.29 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/1.503, allocations: 4 kB / 0.8797 GB, free: 70.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/1.503, allocations: 4 kB / 0.8797 GB, free: 70.28 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002859/1.503, allocations: 73.67 kB / 0.8798 GB, free: 70.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002985/1.504, allocations: 80.02 kB / 0.8799 GB, free: 70.12 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005633/1.504, allocations: 1.128 MB / 0.881 GB, free: 68.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005845/1.505, allocations: 67.66 kB / 0.8811 GB, free: 68.88 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.868e-05/1.505, allocations: 16 kB / 0.8811 GB, free: 68.86 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 (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.0002539/1.505, allocations: 189.8 kB / 0.8812 GB, free: 68.67 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.358e-05/1.505, allocations: 83.09 kB / 0.8813 GB, free: 68.59 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008415/1.506, allocations: 491.8 kB / 0.8818 GB, free: 68.08 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/1.506, allocations: 4 kB / 0.8818 GB, free: 68.07 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/1.506, allocations: 0 / 0.8818 GB, free: 68.07 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/1.506, allocations: 3.984 kB / 0.8818 GB, free: 68.07 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001438/1.508, allocations: 1.051 MB / 0.8828 GB, free: 66.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/1.508, allocations: 4 kB / 0.8828 GB, free: 66.95 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002091/1.508, allocations: 52 kB / 0.8829 GB, free: 66.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001593/1.508, allocations: 69.61 kB / 0.883 GB, free: 66.82 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.7e-05/1.508, allocations: 11.98 kB / 0.883 GB, free: 66.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004822/1.509, allocations: 1.109 MB / 0.884 GB, free: 65.65 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/1.509, allocations: 0 / 0.884 GB, free: 65.65 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00095/1.51, allocations: 0.7103 MB / 0.8847 GB, free: 64.91 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002676/1.51, allocations: 188.2 kB / 0.8849 GB, free: 64.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/1.51, allocations: 7.953 kB / 0.8849 GB, free: 64.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003691/1.51, allocations: 40.02 kB / 0.885 GB, free: 64.66 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.262e-05/1.51, allocations: 19.97 kB / 0.885 GB, free: 64.64 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.8e-05/1.51, allocations: 12 kB / 0.885 GB, free: 64.63 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0005088/1.511, allocations: 467 kB / 0.8854 GB, free: 64.18 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.91e-07/1.511, allocations: 4 kB / 0.8854 GB, free: 64.18 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002586/1.514, allocations: 0.8075 MB / 0.8862 GB, free: 63.37 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 (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.003966/1.518, allocations: 1.375 MB / 0.8876 GB, free: 61.98 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0009793/1.519, allocations: 361.2 kB / 0.8879 GB, free: 61.63 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.625e-06/1.519, allocations: 4.188 kB / 0.8879 GB, free: 61.63 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0003295/1.519, allocations: 180 kB / 0.8881 GB, free: 61.45 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001834/1.521, allocations: 406.9 kB / 0.8885 GB, free: 61.06 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002438/1.523, allocations: 1.442 MB / 0.8899 GB, free: 59.59 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003476/1.524, allocations: 0.9142 MB / 0.8908 GB, free: 58.64 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0004904/1.524, allocations: 113.9 kB / 0.8909 GB, free: 58.52 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001254/1.524, allocations: 59.41 kB / 0.8909 GB, free: 58.47 MB / 0.5105 GB Notification: Performance of SimCode: time 6.41e-07/1.524, allocations: 0 / 0.8909 GB, free: 58.47 MB / 0.5105 GB Notification: Performance of Templates: time 0.03737/1.562, allocations: 28.82 MB / 0.9191 GB, free: 29.82 MB / 0.5105 GB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.makefile (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 & ./Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe 2>&1)