Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.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.MinimalCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation") translateModel(Physiolibrary.Fluid.Examples.MinimalCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001015/0.001015, allocations: 173.9 kB / 7.648 MB, free: 1.422 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.435/1.435, allocations: 221.5 MB / 229.6 MB, free: 7.582 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.0008613/0.0008612, allocations: 104.8 kB / 280.5 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.1949/0.1949, allocations: 37.07 MB / 368.3 MB, free: 9.984 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.234e-05/1.236e-05, allocations: 4 kB / 434.6 MB, free: 23.11 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1086, allocations: 60.09 MB / 494.7 MB, free: 11.07 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4559/0.5646, allocations: 171.4 MB / 0.6505 GB, free: 12.53 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001869/0.5648, allocations: 82.44 kB / 0.6506 GB, free: 12.48 MB / 458.7 MB [/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 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.Components.MassPump$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: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.Components.ElasticVessel$veins. 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. [/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. Notification: Performance of FrontEnd - DAE generated: time 0.6486/1.213, allocations: 186.1 MB / 0.8323 GB, free: 76.71 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.124e-06/1.213, allocations: 0 / 0.8323 GB, free: 76.71 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.58e-05/1.213, allocations: 20 kB / 0.8323 GB, free: 76.7 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: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.003332/1.217, allocations: 1.709 MB / 0.834 GB, free: 74.93 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/1.217, allocations: 12.03 kB / 0.834 GB, free: 74.92 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001505/1.217, allocations: 94.83 kB / 0.8341 GB, free: 74.83 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001108/1.218, allocations: 0.6643 MB / 0.8347 GB, free: 74.12 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.875e-05/1.218, allocations: 19.98 kB / 0.8347 GB, free: 74.1 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.396e-05/1.218, allocations: 27.91 kB / 0.8348 GB, free: 74.07 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005621/1.219, allocations: 382.5 kB / 0.8351 GB, free: 73.7 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005826/1.219, allocations: 446.5 kB / 0.8356 GB, free: 73.24 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/1.219, allocations: 4 kB / 0.8356 GB, free: 73.23 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.955e-05/1.22, allocations: 3.984 kB / 0.8356 GB, free: 73.23 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.291e-05/1.22, allocations: 15.95 kB / 0.8356 GB, free: 73.21 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002382/1.222, allocations: 2.085 MB / 0.8376 GB, free: 71 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004791/1.222, allocations: 359.2 kB / 0.838 GB, free: 70.63 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002468/1.223, allocations: 197.1 kB / 0.8382 GB, free: 70.44 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001408/1.224, allocations: 1.399 MB / 0.8395 GB, free: 68.88 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002855/1.224, allocations: 208.4 kB / 0.8397 GB, free: 68.67 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=35): time 2.134e-06/1.224, allocations: 0 / 0.8397 GB, free: 68.67 MB / 0.4948 GB Notification: Performance of matching and sorting (n=35): time 0.0009202/1.225, allocations: 419.2 kB / 0.8401 GB, free: 68.25 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.299e-05/1.225, allocations: 55.69 kB / 0.8402 GB, free: 68.18 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005204/1.226, allocations: 0.5273 MB / 0.8407 GB, free: 67.65 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.099e-05/1.226, allocations: 25.7 kB / 0.8407 GB, free: 67.62 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/1.226, allocations: 375.5 kB / 0.8411 GB, free: 67.25 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 7.336e-05/1.226, allocations: 126.2 kB / 0.8412 GB, free: 67.12 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.407e-05/1.226, allocations: 0 / 0.8412 GB, free: 67.12 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 5.471e-05/1.226, allocations: 326 kB / 0.8415 GB, free: 66.8 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002028/1.226, allocations: 157 kB / 0.8416 GB, free: 66.64 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002572/1.227, allocations: 312.5 kB / 0.8419 GB, free: 66.27 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007391/1.228, allocations: 231.9 kB / 0.8422 GB, free: 66.04 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/1.228, allocations: 4 kB / 0.8422 GB, free: 66.04 MB / 0.4948 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001152/1.229, allocations: 0.5965 MB / 0.8428 GB, free: 65.43 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.28e-05/1.229, allocations: 33.7 kB / 0.8428 GB, free: 65.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/1.229, allocations: 11.95 kB / 0.8428 GB, free: 65.38 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001463/1.229, allocations: 48.81 kB / 0.8428 GB, free: 65.33 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000462/1.229, allocations: 112.1 kB / 0.843 GB, free: 65.22 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003034/1.23, allocations: 0.5757 MB / 0.8435 GB, free: 64.62 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006415/1.23, allocations: 67.59 kB / 0.8436 GB, free: 64.55 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.975e-05/1.23, allocations: 27.98 kB / 0.8436 GB, free: 64.52 MB / 0.4948 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: flowMeasure.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: 21 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * 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.0001523/1.231, allocations: 124.8 kB / 0.8437 GB, free: 64.39 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.492e-05/1.231, allocations: 75.05 kB / 0.8438 GB, free: 64.32 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000874/1.232, allocations: 462.8 kB / 0.8442 GB, free: 63.86 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/1.232, allocations: 4 kB / 0.8442 GB, free: 63.86 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/1.232, allocations: 3.938 kB / 0.8442 GB, free: 63.85 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/1.232, allocations: 3.984 kB / 0.8442 GB, free: 63.85 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005373/1.232, allocations: 0.5248 MB / 0.8448 GB, free: 63.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/1.232, allocations: 0 / 0.8448 GB, free: 63.29 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003187/1.232, allocations: 75.89 kB / 0.8448 GB, free: 63.21 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.53e-05/1.233, allocations: 32.84 kB / 0.8449 GB, free: 63.18 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.544e-05/1.233, allocations: 7.984 kB / 0.8449 GB, free: 63.17 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002563/1.233, allocations: 0.5563 MB / 0.8454 GB, free: 62.59 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/1.233, allocations: 0 / 0.8454 GB, free: 62.59 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009209/1.234, allocations: 0.6495 MB / 0.846 GB, free: 61.91 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002117/1.234, allocations: 200 kB / 0.8462 GB, free: 61.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.864e-05/1.234, allocations: 3.938 kB / 0.8462 GB, free: 61.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003986/1.234, allocations: 40.05 kB / 0.8463 GB, free: 61.66 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.923e-05/1.235, allocations: 35.91 kB / 0.8463 GB, free: 61.62 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.984e-05/1.235, allocations: 11.98 kB / 0.8463 GB, free: 61.61 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.000379/1.235, allocations: 415.2 kB / 0.8467 GB, free: 61.21 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.31e-07/1.235, allocations: 0 / 0.8467 GB, free: 61.21 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001688/1.237, allocations: 0.7255 MB / 0.8474 GB, free: 60.48 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (arteries.enthalpy,arteries.mass,veins.enthalpy,veins.mass) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * 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.001706/1.238, allocations: 1.248 MB / 0.8487 GB, free: 59.22 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0006641/1.239, allocations: 450.8 kB / 0.8491 GB, free: 58.77 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/1.239, allocations: 0 / 0.8491 GB, free: 58.77 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0002448/1.239, allocations: 184.4 kB / 0.8493 GB, free: 58.59 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001608/1.241, allocations: 386.1 kB / 0.8496 GB, free: 58.21 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001532/1.243, allocations: 1.011 MB / 0.8506 GB, free: 57.18 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002838/1.243, allocations: 0.9413 MB / 0.8515 GB, free: 56.21 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.000511/1.243, allocations: 141.8 kB / 0.8517 GB, free: 56.07 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001459/1.243, allocations: 67.34 kB / 0.8517 GB, free: 56 MB / 0.4948 GB Notification: Performance of SimCode: time 3.5e-07/1.243, allocations: 4 kB / 0.8517 GB, free: 56 MB / 0.4948 GB Notification: Performance of Templates: time 0.02949/1.273, allocations: 23.86 MB / 0.875 GB, free: 32.23 MB / 0.4948 GB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.makefile (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe 2>&1)