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.005602/0.005602, allocations: 170.8 kB / 15.11 MB, free: 5.984 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.411/1.411, allocations: 223.2 MB / 239 MB, free: 56 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009862/0.0009857, allocations: 92.97 kB / 290.2 MB, free: 4.496 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.2421/0.2421, allocations: 37.07 MB / 378.4 MB, free: 7.809 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004692/0.0004692, allocations: 16 kB / 449 MB, free: 80 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1255, allocations: 60.08 MB / 0.4971 GB, free: 19.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5096/0.6352, allocations: 172.1 MB / 0.6652 GB, free: 14.47 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002396/0.6355, allocations: 77.14 kB / 0.6653 GB, free: 14.43 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.7607/1.396, allocations: 188.6 MB / 0.8495 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.385e-06/1.396, allocations: 4 kB / 0.8495 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 5.83e-05/1.396, allocations: 19.98 kB / 0.8495 GB, free: 101.6 MB / 0.5105 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.004392/1.401, allocations: 1.836 MB / 0.8513 GB, free: 99.69 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/1.401, allocations: 19.95 kB / 0.8513 GB, free: 99.67 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001464/1.401, allocations: 86.92 kB / 0.8514 GB, free: 99.58 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001141/1.402, allocations: 0.6833 MB / 0.8521 GB, free: 98.86 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.401e-05/1.402, allocations: 33 kB / 0.8521 GB, free: 98.82 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.124e-05/1.402, allocations: 43.98 kB / 0.8521 GB, free: 98.78 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008414/1.403, allocations: 0.5249 MB / 0.8526 GB, free: 98.23 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.734e-05/1.403, allocations: 3.938 kB / 0.8527 GB, free: 98.23 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.377e-05/1.403, allocations: 16 kB / 0.8527 GB, free: 98.21 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.315e-05/1.403, allocations: 23.92 kB / 0.8527 GB, free: 98.19 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008054/1.404, allocations: 483.6 kB / 0.8531 GB, free: 97.71 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002598/1.407, allocations: 2.162 MB / 0.8553 GB, free: 95.41 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007931/1.407, allocations: 451 kB / 0.8557 GB, free: 94.95 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001484/1.409, allocations: 1.383 MB / 0.857 GB, free: 93.41 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004586/1.409, allocations: 260.8 kB / 0.8573 GB, free: 93.15 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=36): time 1.864e-06/1.409, allocations: 0 / 0.8573 GB, free: 93.15 MB / 0.5105 GB Notification: Performance of matching and sorting (n=36): time 0.001586/1.411, allocations: 0.909 MB / 0.8582 GB, free: 92.18 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.701e-05/1.411, allocations: 63.33 kB / 0.8582 GB, free: 92.1 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006133/1.412, allocations: 0.5898 MB / 0.8588 GB, free: 91.5 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.353e-05/1.412, allocations: 29.7 kB / 0.8588 GB, free: 91.46 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002073/1.412, allocations: 375.6 kB / 0.8592 GB, free: 91.09 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 9.998e-05/1.412, allocations: 130.2 kB / 0.8593 GB, free: 90.96 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.582e-05/1.412, allocations: 8 kB / 0.8593 GB, free: 90.96 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 8.073e-05/1.412, allocations: 334 kB / 0.8597 GB, free: 90.62 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003668/1.412, allocations: 201 kB / 0.8598 GB, free: 90.43 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004417/1.413, allocations: 369.5 kB / 0.8602 GB, free: 90 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004283/1.413, allocations: 269.8 kB / 0.8605 GB, free: 89.73 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/1.413, allocations: 4 kB / 0.8605 GB, free: 89.73 MB / 0.5105 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001157/1.415, allocations: 0.7115 MB / 0.8612 GB, free: 89 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.583e-05/1.415, allocations: 37.66 kB / 0.8612 GB, free: 88.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/1.415, allocations: 11.98 kB / 0.8612 GB, free: 88.95 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000196/1.415, allocations: 36.84 kB / 0.8612 GB, free: 88.91 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004361/1.415, allocations: 119.8 kB / 0.8613 GB, free: 88.79 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003025/1.416, allocations: 0.5603 MB / 0.8619 GB, free: 88.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000575/1.416, allocations: 91.42 kB / 0.862 GB, free: 88.11 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.315e-05/1.416, allocations: 27.98 kB / 0.862 GB, free: 88.09 MB / 0.5105 GB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 57 * 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.0002466/1.416, allocations: 202.5 kB / 0.8622 GB, free: 87.88 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.906e-05/1.417, allocations: 75.06 kB / 0.8623 GB, free: 87.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009889/1.418, allocations: 0.5529 MB / 0.8628 GB, free: 87.24 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/1.418, allocations: 7.984 kB / 0.8628 GB, free: 87.23 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/1.418, allocations: 4 kB / 0.8628 GB, free: 87.23 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/1.418, allocations: 3.938 kB / 0.8628 GB, free: 87.23 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005505/1.418, allocations: 0.5907 MB / 0.8634 GB, free: 86.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/1.418, allocations: 3.984 kB / 0.8634 GB, free: 86.58 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003048/1.418, allocations: 71.88 kB / 0.8635 GB, free: 86.51 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.39e-05/1.419, allocations: 36.84 kB / 0.8635 GB, free: 86.47 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.966e-05/1.419, allocations: 11.98 kB / 0.8635 GB, free: 86.46 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002419/1.419, allocations: 0.5523 MB / 0.8641 GB, free: 85.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/1.419, allocations: 3.953 kB / 0.8641 GB, free: 85.88 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001176/1.42, allocations: 0.7783 MB / 0.8648 GB, free: 85.08 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002301/1.42, allocations: 196.1 kB / 0.865 GB, free: 84.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.294e-05/1.42, allocations: 4 kB / 0.865 GB, free: 84.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003998/1.421, allocations: 55.75 kB / 0.8651 GB, free: 84.81 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.037e-05/1.421, allocations: 39.89 kB / 0.8651 GB, free: 84.77 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.069e-05/1.421, allocations: 11.98 kB / 0.8651 GB, free: 84.76 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0004404/1.421, allocations: 467 kB / 0.8656 GB, free: 84.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.6e-07/1.421, allocations: 0 / 0.8656 GB, free: 84.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002266/1.424, allocations: 0.7607 MB / 0.8663 GB, free: 83.54 MB / 0.5105 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 30 * 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.00193/1.426, allocations: 1.223 MB / 0.8675 GB, free: 82.32 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0009883/1.427, allocations: 0.5511 MB / 0.868 GB, free: 81.75 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/1.427, allocations: 4 kB / 0.868 GB, free: 81.75 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0003986/1.427, allocations: 237.6 kB / 0.8683 GB, free: 81.52 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001498/1.428, allocations: 408 kB / 0.8687 GB, free: 81.13 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002117/1.431, allocations: 1.662 MB / 0.8703 GB, free: 79.44 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002987/1.431, allocations: 0.9336 MB / 0.8712 GB, free: 78.48 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0004655/1.431, allocations: 153.9 kB / 0.8713 GB, free: 78.33 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001499/1.432, allocations: 67.41 kB / 0.8714 GB, free: 78.26 MB / 0.5105 GB Notification: Performance of SimCode: time 2.4e-07/1.432, allocations: 0 / 0.8714 GB, free: 78.26 MB / 0.5105 GB Notification: Performance of Templates: time 0.03355/1.465, allocations: 26.78 MB / 0.8976 GB, free: 51.65 MB / 0.5105 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)