Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.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_2element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element") translateModel(Physiolibrary.Fluid.Examples.Windkessel_2element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element") [: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.003377/0.003378, allocations: 184.7 kB / 7.463 MB, free: 2.449 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.179/1.179, allocations: 221.4 MB / 229.3 MB, free: 3.012 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.0009686/0.0009684, allocations: 94.84 kB / 280.1 MB, free: 1.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.3454/0.3454, allocations: 37.08 MB / 368 MB, free: 47.52 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.103e-06/7.143e-06, allocations: 3.938 kB / 434.1 MB, free: 4.918 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.115, allocations: 60.08 MB / 494.2 MB, free: 8.734 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3951/0.5101, allocations: 173.6 MB / 0.6521 GB, free: 5.859 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002463/0.5104, allocations: 82.14 kB / 0.6522 GB, free: 5.781 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 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 unlimitedPump.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$unlimitedPump. 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 unlimitedVolume.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: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.5954/1.106, allocations: 169.5 MB / 0.8176 GB, free: 25.55 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.88e-05/1.106, allocations: 22.28 kB / 0.8177 GB, free: 25.53 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.002881/1.109, allocations: 1.478 MB / 0.8191 GB, free: 24.01 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/1.109, allocations: 12.03 kB / 0.8191 GB, free: 24 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001249/1.109, allocations: 83.05 kB / 0.8192 GB, free: 23.91 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000929/1.11, allocations: 0.5768 MB / 0.8198 GB, free: 23.31 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.545e-05/1.11, allocations: 15.98 kB / 0.8198 GB, free: 23.3 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.392e-05/1.11, allocations: 27.91 kB / 0.8198 GB, free: 23.27 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004191/1.11, allocations: 265.2 kB / 0.8201 GB, free: 23.01 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004359/1.111, allocations: 321.5 kB / 0.8204 GB, free: 22.68 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.519e-05/1.111, allocations: 0 / 0.8204 GB, free: 22.68 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.911e-05/1.111, allocations: 3.938 kB / 0.8204 GB, free: 22.68 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/1.111, allocations: 12 kB / 0.8204 GB, free: 22.66 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001859/1.113, allocations: 1.937 MB / 0.8223 GB, free: 20.54 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003595/1.113, allocations: 269.4 kB / 0.8225 GB, free: 20.27 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001526/1.113, allocations: 113.1 kB / 0.8226 GB, free: 20.16 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008912/1.114, allocations: 0.9517 MB / 0.8236 GB, free: 19.11 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001907/1.114, allocations: 152.3 kB / 0.8237 GB, free: 18.95 MB / 490.7 MB Notification: Performance of pre-optimization done (n=29): time 1.823e-06/1.114, allocations: 0 / 0.8237 GB, free: 18.95 MB / 490.7 MB Notification: Performance of matching and sorting (n=29): time 0.0007142/1.115, allocations: 302.9 kB / 0.824 GB, free: 18.65 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.208e-05/1.115, allocations: 55.64 kB / 0.8241 GB, free: 18.58 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004486/1.116, allocations: 479.4 kB / 0.8245 GB, free: 18.11 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.403e-05/1.116, allocations: 33.7 kB / 0.8245 GB, free: 18.07 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.149e-05/1.116, allocations: 219.8 kB / 0.8248 GB, free: 17.85 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.289e-05/1.116, allocations: 98.56 kB / 0.8248 GB, free: 17.75 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.525e-05/1.116, allocations: 0 / 0.8248 GB, free: 17.75 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.82e-05/1.116, allocations: 370.8 kB / 0.8252 GB, free: 17.38 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001431/1.116, allocations: 96.8 kB / 0.8253 GB, free: 17.29 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001813/1.116, allocations: 207.2 kB / 0.8255 GB, free: 17.04 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004835/1.117, allocations: 160.1 kB / 0.8256 GB, free: 16.88 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/1.117, allocations: 0 / 0.8256 GB, free: 16.88 MB / 490.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008399/1.118, allocations: 426.2 kB / 0.826 GB, free: 16.46 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/1.118, allocations: 15.97 kB / 0.8261 GB, free: 16.45 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/1.118, allocations: 3.906 kB / 0.8261 GB, free: 16.44 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001364/1.118, allocations: 36.84 kB / 0.8261 GB, free: 16.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003123/1.118, allocations: 79.83 kB / 0.8262 GB, free: 16.32 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003035/1.119, allocations: 0.5563 MB / 0.8267 GB, free: 15.74 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004097/1.119, allocations: 47.67 kB / 0.8268 GB, free: 15.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.709e-05/1.119, allocations: 23.98 kB / 0.8268 GB, free: 15.67 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 (45): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001168/1.119, allocations: 121.7 kB / 0.8269 GB, free: 15.55 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.942e-05/1.119, allocations: 63.16 kB / 0.827 GB, free: 15.48 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000694/1.12, allocations: 379.3 kB / 0.8273 GB, free: 15.09 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/1.12, allocations: 4 kB / 0.8273 GB, free: 15.09 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/1.12, allocations: 3.906 kB / 0.8273 GB, free: 15.09 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/1.12, allocations: 0 / 0.8273 GB, free: 15.09 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001067/1.121, allocations: 0.8329 MB / 0.8282 GB, free: 14.21 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/1.121, allocations: 4 kB / 0.8282 GB, free: 14.21 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002194/1.121, allocations: 39.97 kB / 0.8282 GB, free: 14.17 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.862e-05/1.121, allocations: 36.86 kB / 0.8282 GB, free: 14.13 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.251e-05/1.121, allocations: 11.92 kB / 0.8282 GB, free: 14.12 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002595/1.122, allocations: 0.5522 MB / 0.8288 GB, free: 13.54 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/1.122, allocations: 0 / 0.8288 GB, free: 13.54 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000667/1.122, allocations: 0.5294 MB / 0.8293 GB, free: 12.98 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001494/1.122, allocations: 168.2 kB / 0.8295 GB, free: 12.8 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.095e-05/1.123, allocations: 4 kB / 0.8295 GB, free: 12.79 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003329/1.123, allocations: 31.94 kB / 0.8295 GB, free: 12.76 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.81e-05/1.123, allocations: 15.97 kB / 0.8295 GB, free: 12.75 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.212e-05/1.123, allocations: 12 kB / 0.8295 GB, free: 12.73 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0003252/1.123, allocations: 379.1 kB / 0.8299 GB, free: 12.37 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00149/1.125, allocations: 0.6436 MB / 0.8305 GB, free: 11.72 MB / 490.7 MB 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 (26): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.001577/1.126, allocations: 1.163 MB / 0.8316 GB, free: 10.61 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0004752/1.127, allocations: 268.7 kB / 0.8319 GB, free: 10.35 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/1.127, allocations: 0 / 0.8319 GB, free: 10.35 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001895/1.127, allocations: 115.9 kB / 0.832 GB, free: 10.23 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001232/1.128, allocations: 329.9 kB / 0.8323 GB, free: 9.922 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001249/1.13, allocations: 0.7459 MB / 0.8331 GB, free: 9.156 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003852/1.13, allocations: 0.9474 MB / 0.834 GB, free: 8.18 MB / 490.7 MB Notification: Performance of SimCode: time 2.7e-07/1.13, allocations: 0 / 0.834 GB, free: 8.18 MB / 490.7 MB Notification: Performance of Templates: time 0.03083/1.161, allocations: 21.35 MB / 0.8548 GB, free: 2.977 MB / 0.4948 GB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.makefile (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe 2>&1)