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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 175 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.286/1.286, allocations: 221.4 MB / 234.6 MB, free: 14.44 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.0008561/0.0008562, allocations: 90.89 kB / 285.6 MB, free: 12.99 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.3353/0.3353, allocations: 37.07 MB / 373.6 MB, free: 45.87 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.883e-05/2.896e-05, allocations: 0 / 441.5 MB, free: 15.48 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1092, allocations: 60.09 MB / 0.4898 GB, free: 3.289 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4177/0.5269, allocations: 174.3 MB / 0.6601 GB, free: 14.27 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000237/0.5272, allocations: 79.95 kB / 0.6601 GB, free: 14.2 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 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 - DAE generated: time 0.593/1.12, allocations: 170.4 MB / 0.8265 GB, free: 27.4 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.593e-06/1.12, allocations: 0 / 0.8265 GB, free: 27.4 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.125e-05/1.12, allocations: 11.94 kB / 0.8265 GB, free: 27.39 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.003523/1.124, allocations: 1.5 MB / 0.828 GB, free: 25.84 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/1.124, allocations: 12.03 kB / 0.828 GB, free: 25.83 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000112/1.124, allocations: 71.11 kB / 0.8281 GB, free: 25.76 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009111/1.125, allocations: 0.5773 MB / 0.8286 GB, free: 25.14 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.12e-05/1.125, allocations: 24.78 kB / 0.8287 GB, free: 25.12 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.672e-05/1.125, allocations: 32 kB / 0.8287 GB, free: 25.09 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005086/1.126, allocations: 372.6 kB / 0.829 GB, free: 24.7 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/1.126, allocations: 4 kB / 0.829 GB, free: 24.7 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.988e-05/1.126, allocations: 8 kB / 0.8291 GB, free: 24.69 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.228e-06/1.126, allocations: 8 kB / 0.8291 GB, free: 24.68 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004138/1.126, allocations: 294.9 kB / 0.8293 GB, free: 24.39 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001924/1.128, allocations: 2.033 MB / 0.8313 GB, free: 22.15 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003909/1.128, allocations: 295.2 kB / 0.8316 GB, free: 21.85 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001637/1.129, allocations: 125.1 kB / 0.8317 GB, free: 21.73 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009874/1.13, allocations: 0.9781 MB / 0.8327 GB, free: 20.65 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002098/1.13, allocations: 162.4 kB / 0.8328 GB, free: 20.48 MB / 490.7 MB Notification: Performance of pre-optimization done (n=29): time 2.184e-06/1.13, allocations: 4 kB / 0.8328 GB, free: 20.48 MB / 490.7 MB Notification: Performance of matching and sorting (n=29): time 0.0005544/1.13, allocations: 331.5 kB / 0.8332 GB, free: 20.14 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.152e-05/1.13, allocations: 59.36 kB / 0.8332 GB, free: 20.07 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004871/1.131, allocations: 0.5153 MB / 0.8337 GB, free: 19.55 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/1.131, allocations: 33.7 kB / 0.8337 GB, free: 19.51 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/1.131, allocations: 320 kB / 0.8341 GB, free: 19.2 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.908e-05/1.131, allocations: 94.64 kB / 0.8341 GB, free: 19.1 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.583e-05/1.131, allocations: 8 kB / 0.8342 GB, free: 19.09 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.46e-05/1.131, allocations: 382.8 kB / 0.8345 GB, free: 18.71 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001552/1.131, allocations: 100.8 kB / 0.8346 GB, free: 18.61 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001886/1.132, allocations: 215.3 kB / 0.8348 GB, free: 18.36 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001843/1.132, allocations: 136 kB / 0.8349 GB, free: 18.22 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/1.132, allocations: 0 / 0.8349 GB, free: 18.22 MB / 490.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0005798/1.132, allocations: 440.4 kB / 0.8354 GB, free: 17.79 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/1.132, allocations: 4.375 kB / 0.8354 GB, free: 17.79 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/1.133, allocations: 11.94 kB / 0.8354 GB, free: 17.77 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000145/1.133, allocations: 32.84 kB / 0.8354 GB, free: 17.74 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003033/1.133, allocations: 83.78 kB / 0.8355 GB, free: 17.66 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00025/1.133, allocations: 0.5368 MB / 0.836 GB, free: 17.09 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000385/1.134, allocations: 67.66 kB / 0.8361 GB, free: 17.03 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.741e-05/1.134, allocations: 12 kB / 0.8361 GB, free: 17.02 MB / 490.7 MB 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 8.006e-05/1.134, allocations: 132.8 kB / 0.8362 GB, free: 16.88 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.085e-05/1.134, allocations: 67.2 kB / 0.8363 GB, free: 16.81 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005674/1.134, allocations: 394.7 kB / 0.8367 GB, free: 16.41 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/1.134, allocations: 4 kB / 0.8367 GB, free: 16.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/1.134, allocations: 0 / 0.8367 GB, free: 16.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/1.134, allocations: 0 / 0.8367 GB, free: 16.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009889/1.135, allocations: 0.894 MB / 0.8375 GB, free: 15.45 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/1.135, allocations: 0 / 0.8375 GB, free: 15.45 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002005/1.136, allocations: 43.91 kB / 0.8376 GB, free: 15.4 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.207e-05/1.136, allocations: 32.88 kB / 0.8376 GB, free: 15.37 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.279e-05/1.136, allocations: 11.98 kB / 0.8376 GB, free: 15.36 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002146/1.136, allocations: 0.5483 MB / 0.8382 GB, free: 14.78 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/1.136, allocations: 7.984 kB / 0.8382 GB, free: 14.77 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005758/1.137, allocations: 0.5528 MB / 0.8387 GB, free: 14.19 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001684/1.137, allocations: 176.2 kB / 0.8389 GB, free: 14 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.076e-05/1.137, allocations: 8 kB / 0.8389 GB, free: 13.99 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003238/1.137, allocations: 23.98 kB / 0.8389 GB, free: 13.97 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.677e-05/1.137, allocations: 20.03 kB / 0.8389 GB, free: 13.95 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.358e-05/1.137, allocations: 15.98 kB / 0.8389 GB, free: 13.93 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003801/1.138, allocations: 419.2 kB / 0.8393 GB, free: 13.53 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.92e-07/1.138, allocations: 0 / 0.8393 GB, free: 13.53 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001647/1.139, allocations: 0.6709 MB / 0.84 GB, free: 12.86 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.001656/1.141, allocations: 1.125 MB / 0.8411 GB, free: 11.72 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0005084/1.142, allocations: 281.1 kB / 0.8414 GB, free: 11.45 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/1.142, allocations: 128 / 0.8414 GB, free: 11.45 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001972/1.142, allocations: 128.7 kB / 0.8415 GB, free: 11.32 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001389/1.143, allocations: 360.6 kB / 0.8418 GB, free: 10.97 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001131/1.144, allocations: 0.7462 MB / 0.8426 GB, free: 10.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002583/1.145, allocations: 0.8941 MB / 0.8434 GB, free: 9.277 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0003933/1.145, allocations: 113.2 kB / 0.8435 GB, free: 9.164 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/1.145, allocations: 51.42 kB / 0.8436 GB, free: 9.117 MB / 490.7 MB Notification: Performance of SimCode: time 8.72e-07/1.145, allocations: 0 / 0.8436 GB, free: 9.117 MB / 490.7 MB Notification: Performance of Templates: time 0.03344/1.179, allocations: 24.62 MB / 0.8676 GB, free: 0.5781 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)