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") [: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.002978/0.002978, allocations: 186.1 kB / 7.457 MB, free: 2.512 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.194/1.194, allocations: 221.4 MB / 229.3 MB, free: 3.035 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.001012/0.001012, allocations: 99.28 kB / 280.1 MB, free: 1.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.3372/0.3372, allocations: 37.06 MB / 368 MB, free: 47.54 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.171e-05/1.173e-05, allocations: 7.938 kB / 434.1 MB, free: 4.914 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1222, allocations: 60.08 MB / 494.2 MB, free: 8.727 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4126/0.5349, allocations: 174.1 MB / 0.6526 GB, free: 5.336 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001992/0.5351, allocations: 79.95 kB / 0.6526 GB, free: 5.258 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: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: time 0.9463/1.481, allocations: 240.8 MB / 0.8878 GB, free: 52.8 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.775e-05/1.482, allocations: 17.47 kB / 0.8878 GB, free: 52.8 MB / 490.7 MB 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.003819/1.485, allocations: 1.946 MB / 0.8897 GB, free: 51.99 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/1.485, allocations: 7.656 kB / 0.8897 GB, free: 51.99 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001496/1.486, allocations: 98.69 kB / 0.8898 GB, free: 51.94 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001134/1.487, allocations: 0.704 MB / 0.8905 GB, free: 51.68 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.123e-05/1.487, allocations: 17.53 kB / 0.8905 GB, free: 51.68 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.219e-05/1.487, allocations: 25.88 kB / 0.8905 GB, free: 51.68 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006707/1.488, allocations: 419 kB / 0.8909 GB, free: 51.68 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006315/1.488, allocations: 425.5 kB / 0.8913 GB, free: 51.61 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/1.488, allocations: 7.25 kB / 0.8913 GB, free: 51.61 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.944e-05/1.488, allocations: 2.625 kB / 0.8913 GB, free: 51.61 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.78e-05/1.488, allocations: 14.56 kB / 0.8913 GB, free: 51.61 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003093/1.491, allocations: 2.396 MB / 0.8937 GB, free: 50.16 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005074/1.492, allocations: 353.5 kB / 0.894 GB, free: 50.12 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002736/1.492, allocations: 200.6 kB / 0.8942 GB, free: 50.12 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001232/1.493, allocations: 1.105 MB / 0.8953 GB, free: 49.45 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002766/1.494, allocations: 206.9 kB / 0.8955 GB, free: 49.39 MB / 490.7 MB Notification: Performance of pre-optimization done (n=39): time 1.983e-06/1.494, allocations: 0 / 0.8955 GB, free: 49.39 MB / 490.7 MB Notification: Performance of matching and sorting (n=39): time 0.001052/1.495, allocations: 457.2 kB / 0.8959 GB, free: 49.3 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.445e-05/1.495, allocations: 65.56 kB / 0.896 GB, free: 49.24 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000545/1.495, allocations: 0.5392 MB / 0.8965 GB, free: 49.12 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.071e-05/1.495, allocations: 25.7 kB / 0.8965 GB, free: 49.09 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/1.496, allocations: 249.3 kB / 0.8968 GB, free: 48.93 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.908e-05/1.496, allocations: 133.4 kB / 0.8969 GB, free: 48.85 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.26e-05/1.496, allocations: 0 / 0.8969 GB, free: 48.85 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 5.231e-05/1.496, allocations: 326.5 kB / 0.8972 GB, free: 48.54 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002033/1.496, allocations: 151.8 kB / 0.8973 GB, free: 48.54 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002354/1.496, allocations: 245.4 kB / 0.8976 GB, free: 48.43 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006429/1.497, allocations: 221.2 kB / 0.8978 GB, free: 48.42 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/1.497, allocations: 0 / 0.8978 GB, free: 48.42 MB / 490.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001141/1.498, allocations: 0.5716 MB / 0.8983 GB, free: 48.33 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/1.498, allocations: 10.38 kB / 0.8984 GB, free: 48.33 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/1.498, allocations: 2.781 kB / 0.8984 GB, free: 48.33 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002384/1.498, allocations: 73.06 kB / 0.8984 GB, free: 48.31 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004065/1.499, allocations: 97.36 kB / 0.8985 GB, free: 48.31 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006209/1.499, allocations: 1.144 MB / 0.8996 GB, free: 47.27 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005318/1.5, allocations: 55.03 kB / 0.8997 GB, free: 47.26 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.999e-05/1.5, allocations: 29.89 kB / 0.8997 GB, free: 47.25 MB / 490.7 MB 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 (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.0001382/1.5, allocations: 124.7 kB / 0.8998 GB, free: 47.14 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.73e-05/1.5, allocations: 78.84 kB / 0.8999 GB, free: 47.11 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001075/1.501, allocations: 0.5488 MB / 0.9005 GB, free: 47.02 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/1.501, allocations: 7.125 kB / 0.9005 GB, free: 47.02 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/1.501, allocations: 3.812 kB / 0.9005 GB, free: 47.02 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/1.501, allocations: 0 / 0.9005 GB, free: 47.02 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001664/1.503, allocations: 1.122 MB / 0.9016 GB, free: 46.71 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/1.503, allocations: 3.938 kB / 0.9016 GB, free: 46.71 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003409/1.503, allocations: 66.58 kB / 0.9016 GB, free: 46.71 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001593/1.503, allocations: 72.19 kB / 0.9017 GB, free: 46.69 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.224e-05/1.504, allocations: 13.97 kB / 0.9017 GB, free: 46.69 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005781/1.504, allocations: 1.139 MB / 0.9028 GB, free: 45.65 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/1.504, allocations: 3.969 kB / 0.9028 GB, free: 45.65 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001074/1.505, allocations: 0.7575 MB / 0.9036 GB, free: 45.43 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002377/1.505, allocations: 205.4 kB / 0.9038 GB, free: 45.29 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001239/1.506, allocations: 0 / 0.9038 GB, free: 45.29 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004134/1.506, allocations: 34.55 kB / 0.9038 GB, free: 45.29 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.61e-05/1.506, allocations: 29.34 kB / 0.9038 GB, free: 45.28 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.269e-05/1.506, allocations: 16.62 kB / 0.9038 GB, free: 45.28 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0004252/1.507, allocations: 425.2 kB / 0.9042 GB, free: 45.19 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002518/1.509, allocations: 0.9384 MB / 0.9052 GB, free: 44.97 MB / 490.7 MB 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.002504/1.512, allocations: 1.685 MB / 0.9068 GB, free: 44.64 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0007109/1.512, allocations: 393.4 kB / 0.9072 GB, free: 44.64 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/1.512, allocations: 0 / 0.9072 GB, free: 44.64 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000306/1.513, allocations: 198.6 kB / 0.9074 GB, free: 44.63 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001674/1.514, allocations: 417.4 kB / 0.9078 GB, free: 44.62 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001832/1.516, allocations: 0.9963 MB / 0.9087 GB, free: 44.34 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005032/1.517, allocations: 1.045 MB / 0.9098 GB, free: 43.63 MB / 490.7 MB Notification: Performance of SimCode: time 4.61e-07/1.517, allocations: 0 / 0.9098 GB, free: 43.63 MB / 490.7 MB Notification: Performance of Templates: time 0.04191/1.559, allocations: 30.33 MB / 0.9394 GB, free: 41.73 MB / 490.7 MB 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)