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.008324/0.008324, allocations: 170 kB / 15.11 MB, free: 5.969 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.498/1.498, allocations: 223.2 MB / 239 MB, free: 1.777 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.0008853/0.0008851, allocations: 95.34 kB / 290.2 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.2294/0.2294, allocations: 37.07 MB / 378.4 MB, free: 5.691 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003757/0.0003758, allocations: 12 kB / 449 MB, free: 61.7 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1215, allocations: 60.07 MB / 0.4971 GB, free: 1.566 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5058/0.6274, allocations: 174.4 MB / 0.6674 GB, free: 12.62 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000216/0.6276, allocations: 78.09 kB / 0.6675 GB, free: 12.59 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 - DAE generated: time 0.7274/1.355, allocations: 170.8 MB / 0.8343 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of FrontEnd: time 4.068e-06/1.355, allocations: 0 / 0.8343 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.000105/1.355, allocations: 16 kB / 0.8344 GB, free: 103.3 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.005147/1.36, allocations: 1.609 MB / 0.8359 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.547e-05/1.36, allocations: 16.02 kB / 0.8359 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003384/1.361, allocations: 79.09 kB / 0.836 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001298/1.362, allocations: 0.5811 MB / 0.8366 GB, free: 100.9 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.215e-05/1.362, allocations: 20.66 kB / 0.8366 GB, free: 100.9 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.952e-05/1.362, allocations: 43.92 kB / 0.8366 GB, free: 100.8 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006822/1.363, allocations: 390.7 kB / 0.837 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/1.363, allocations: 0 / 0.837 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.632e-05/1.363, allocations: 8 kB / 0.837 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/1.363, allocations: 12 kB / 0.837 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005942/1.364, allocations: 338.3 kB / 0.8374 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003072/1.367, allocations: 2.027 MB / 0.8393 GB, free: 97.84 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006287/1.367, allocations: 340.6 kB / 0.8397 GB, free: 97.5 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001549/1.369, allocations: 0.9509 MB / 0.8406 GB, free: 96.45 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003322/1.369, allocations: 185.5 kB / 0.8408 GB, free: 96.25 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=29): time 3.156e-06/1.369, allocations: 3.938 kB / 0.8408 GB, free: 96.25 MB / 0.5105 GB Notification: Performance of matching and sorting (n=29): time 0.001244/1.371, allocations: 0.706 MB / 0.8415 GB, free: 95.48 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.37e-05/1.371, allocations: 55.41 kB / 0.8415 GB, free: 95.41 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006229/1.371, allocations: 0.5269 MB / 0.842 GB, free: 94.88 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.184e-05/1.371, allocations: 41.7 kB / 0.8421 GB, free: 94.83 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001951/1.372, allocations: 311.9 kB / 0.8424 GB, free: 94.52 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 8.135e-05/1.372, allocations: 98.64 kB / 0.8425 GB, free: 94.43 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.763e-05/1.372, allocations: 8 kB / 0.8425 GB, free: 94.42 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001142/1.372, allocations: 374.7 kB / 0.8428 GB, free: 94.04 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002427/1.372, allocations: 132.7 kB / 0.843 GB, free: 93.91 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002622/1.372, allocations: 231.3 kB / 0.8432 GB, free: 93.64 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002664/1.373, allocations: 156.2 kB / 0.8433 GB, free: 93.49 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/1.373, allocations: 0 / 0.8433 GB, free: 93.49 MB / 0.5105 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008121/1.373, allocations: 482.7 kB / 0.8438 GB, free: 93.01 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/1.373, allocations: 4 kB / 0.8438 GB, free: 93 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/1.373, allocations: 8 kB / 0.8438 GB, free: 93 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001921/1.374, allocations: 32.84 kB / 0.8438 GB, free: 92.96 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002917/1.374, allocations: 84.02 kB / 0.8439 GB, free: 92.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003053/1.374, allocations: 0.5484 MB / 0.8444 GB, free: 92.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004949/1.375, allocations: 67.59 kB / 0.8445 GB, free: 92.24 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.591e-05/1.375, allocations: 19.94 kB / 0.8445 GB, free: 92.22 MB / 0.5105 GB 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 () * Number of clocked 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.0002389/1.375, allocations: 182.6 kB / 0.8447 GB, free: 92.03 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.116e-05/1.375, allocations: 67.2 kB / 0.8448 GB, free: 91.96 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007274/1.376, allocations: 436.6 kB / 0.8452 GB, free: 91.52 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/1.376, allocations: 4 kB / 0.8452 GB, free: 91.52 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/1.376, allocations: 4 kB / 0.8452 GB, free: 91.52 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/1.376, allocations: 7.922 kB / 0.8452 GB, free: 91.51 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001297/1.377, allocations: 0.933 MB / 0.8461 GB, free: 90.51 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/1.377, allocations: 3.984 kB / 0.8461 GB, free: 90.51 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002034/1.377, allocations: 39.92 kB / 0.8461 GB, free: 90.47 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.212e-05/1.378, allocations: 36.83 kB / 0.8462 GB, free: 90.43 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.436e-05/1.378, allocations: 4 kB / 0.8462 GB, free: 90.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002413/1.378, allocations: 0.5446 MB / 0.8467 GB, free: 89.86 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/1.378, allocations: 3.938 kB / 0.8467 GB, free: 89.85 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000806/1.379, allocations: 0.6195 MB / 0.8473 GB, free: 89.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002279/1.379, allocations: 176.2 kB / 0.8475 GB, free: 89.01 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.522e-05/1.379, allocations: 12.06 kB / 0.8475 GB, free: 89 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003065/1.379, allocations: 27.97 kB / 0.8475 GB, free: 88.97 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.184e-05/1.379, allocations: 15.97 kB / 0.8476 GB, free: 88.96 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.309e-05/1.379, allocations: 11.98 kB / 0.8476 GB, free: 88.95 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0004217/1.38, allocations: 431 kB / 0.848 GB, free: 88.53 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.21e-07/1.38, allocations: 4 kB / 0.848 GB, free: 88.52 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002048/1.382, allocations: 0.6631 MB / 0.8486 GB, free: 87.86 MB / 0.5105 GB 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) * Number of clocked states: 0 () * 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.001825/1.384, allocations: 1.124 MB / 0.8497 GB, free: 86.74 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0006701/1.384, allocations: 324.7 kB / 0.85 GB, free: 86.42 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/1.384, allocations: 0 / 0.85 GB, free: 86.42 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0002683/1.385, allocations: 143.8 kB / 0.8502 GB, free: 86.28 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001332/1.386, allocations: 366.8 kB / 0.8505 GB, free: 85.93 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001619/1.388, allocations: 1.293 MB / 0.8518 GB, free: 84.61 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/1.388, allocations: 0.8902 MB / 0.8526 GB, free: 83.69 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0003827/1.388, allocations: 121.2 kB / 0.8528 GB, free: 83.57 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/1.388, allocations: 51.41 kB / 0.8528 GB, free: 83.52 MB / 0.5105 GB Notification: Performance of SimCode: time 6.31e-07/1.389, allocations: 0 / 0.8528 GB, free: 83.52 MB / 0.5105 GB Notification: Performance of Templates: time 0.03036/1.419, allocations: 23.92 MB / 0.8762 GB, free: 59.73 MB / 0.5105 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)