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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002332/0.002332, allocations: 175 kB / 7.459 MB, free: 2.172 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.167/1.167, allocations: 221.4 MB / 229.3 MB, free: 3.371 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.0009033/0.0009034, allocations: 89.89 kB / 280.1 MB, free: 1.359 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.3425/0.3425, allocations: 37.07 MB / 368 MB, free: 47.56 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.282e-05/1.284e-05, allocations: 4 kB / 434.1 MB, free: 4.922 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1137, allocations: 60.08 MB / 494.2 MB, free: 8.738 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3884/0.5021, allocations: 173.7 MB / 0.6522 GB, free: 5.77 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002072/0.5024, allocations: 72.47 kB / 0.6523 GB, free: 5.699 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 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: time 0.6689/1.171, allocations: 204.9 MB / 0.8524 GB, free: 6.668 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.579e-05/1.171, allocations: 26.67 kB / 0.8524 GB, free: 6.645 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.003726/1.175, allocations: 1.707 MB / 0.8541 GB, free: 4.898 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/1.175, allocations: 8.031 kB / 0.8541 GB, free: 4.891 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001504/1.175, allocations: 86.95 kB / 0.8542 GB, free: 4.805 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001168/1.176, allocations: 0.645 MB / 0.8548 GB, free: 4.137 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.749e-05/1.177, allocations: 12 kB / 0.8548 GB, free: 4.125 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.493e-05/1.177, allocations: 23.98 kB / 0.8548 GB, free: 4.102 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005574/1.177, allocations: 305.5 kB / 0.8551 GB, free: 3.805 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005767/1.178, allocations: 363 kB / 0.8555 GB, free: 3.43 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/1.178, allocations: 0 / 0.8555 GB, free: 3.43 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.219e-05/1.178, allocations: 0 / 0.8555 GB, free: 3.43 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.283e-05/1.178, allocations: 8 kB / 0.8555 GB, free: 3.422 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002648/1.181, allocations: 2.121 MB / 0.8576 GB, free: 1.102 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004738/1.181, allocations: 289.7 kB / 0.8578 GB, free: 0.8086 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002143/1.181, allocations: 137.1 kB / 0.858 GB, free: 0.6719 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1851/1.366, allocations: 0.9941 MB / 0.8589 GB, free: 117.4 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002455/1.367, allocations: 168.1 kB / 0.8591 GB, free: 117.3 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=33): time 3.145e-06/1.367, allocations: 0 / 0.8591 GB, free: 117.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=33): time 0.0009533/1.368, allocations: 382.5 kB / 0.8595 GB, free: 117.2 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.326e-05/1.368, allocations: 54.72 kB / 0.8595 GB, free: 117.2 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005847/1.368, allocations: 0.501 MB / 0.86 GB, free: 117.1 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.679e-05/1.368, allocations: 33.02 kB / 0.86 GB, free: 117 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/1.368, allocations: 237.7 kB / 0.8603 GB, free: 116.9 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 7.213e-05/1.368, allocations: 107.7 kB / 0.8604 GB, free: 116.9 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.727e-05/1.368, allocations: 0 / 0.8604 GB, free: 116.9 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 8.604e-05/1.369, allocations: 380.5 kB / 0.8607 GB, free: 116.6 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001798/1.369, allocations: 109 kB / 0.8608 GB, free: 116.6 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001891/1.369, allocations: 216 kB / 0.861 GB, free: 116.5 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005603/1.369, allocations: 179.3 kB / 0.8612 GB, free: 116.5 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/1.37, allocations: 0 / 0.8612 GB, free: 116.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000974/1.37, allocations: 0.4956 MB / 0.8617 GB, free: 116.4 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/1.371, allocations: 7.844 kB / 0.8617 GB, free: 116.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/1.371, allocations: 4.219 kB / 0.8617 GB, free: 116.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002555/1.371, allocations: 71.16 kB / 0.8618 GB, free: 116.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003259/1.371, allocations: 81.19 kB / 0.8618 GB, free: 116.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006521/1.372, allocations: 1.145 MB / 0.863 GB, free: 115.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000506/1.372, allocations: 53 kB / 0.863 GB, free: 115.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.592e-05/1.372, allocations: 17.59 kB / 0.863 GB, free: 115.3 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.0001498/1.373, allocations: 131.7 kB / 0.8632 GB, free: 115.2 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.16e-05/1.373, allocations: 68.25 kB / 0.8632 GB, free: 115.2 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008761/1.373, allocations: 435.1 kB / 0.8636 GB, free: 115.1 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/1.374, allocations: 7.719 kB / 0.8636 GB, free: 115.1 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/1.374, allocations: 2.438 kB / 0.8636 GB, free: 115.1 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/1.374, allocations: 2.016 kB / 0.8636 GB, free: 115.1 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001424/1.375, allocations: 0.9518 MB / 0.8646 GB, free: 114.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/1.375, allocations: 3.031 kB / 0.8646 GB, free: 114.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002358/1.375, allocations: 47.38 kB / 0.8646 GB, free: 114.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001506/1.375, allocations: 70.12 kB / 0.8647 GB, free: 114.8 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.633e-05/1.375, allocations: 14.52 kB / 0.8647 GB, free: 114.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006309/1.376, allocations: 1.14 MB / 0.8658 GB, free: 113.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/1.376, allocations: 6.438 kB / 0.8658 GB, free: 113.7 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009258/1.377, allocations: 0.6118 MB / 0.8664 GB, free: 113.5 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001891/1.377, allocations: 183.9 kB / 0.8666 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.845e-05/1.377, allocations: 0 / 0.8666 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003516/1.378, allocations: 34.02 kB / 0.8666 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.318e-05/1.378, allocations: 22.92 kB / 0.8667 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.523e-05/1.378, allocations: 14.41 kB / 0.8667 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0004209/1.378, allocations: 400.1 kB / 0.867 GB, free: 113.3 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001988/1.38, allocations: 0.7895 MB / 0.8678 GB, free: 113.3 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.002242/1.382, allocations: 1.427 MB / 0.8692 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0005665/1.383, allocations: 308.2 kB / 0.8695 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/1.383, allocations: 2.594 kB / 0.8695 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0002629/1.383, allocations: 147.3 kB / 0.8696 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00152/1.385, allocations: 356.1 kB / 0.87 GB, free: 113.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001559/1.386, allocations: 0.8289 MB / 0.8708 GB, free: 112.9 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004321/1.387, allocations: 0.985 MB / 0.8718 GB, free: 112.2 MB / 0.4948 GB Notification: Performance of SimCode: time 2.61e-07/1.387, allocations: 0 / 0.8718 GB, free: 112.2 MB / 0.4948 GB Notification: Performance of Templates: time 0.0324/1.419, allocations: 25.69 MB / 0.8968 GB, free: 111.4 MB / 0.4948 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)