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: "" <> buildModelFMU(Physiolibrary.Fluid.Examples.MinimalCirculation,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.MinimalCirculation,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009928/0.0009927, allocations: 174.7 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.435/1.435, allocations: 221.4 MB / 234.6 MB, free: 14.38 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.001012/0.001012, allocations: 91.75 kB / 285.6 MB, free: 12.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.5409/0.5409, allocations: 37.07 MB / 373.6 MB, free: 45.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.474e-05/6.488e-05, allocations: 3.938 kB / 441.6 MB, free: 15.38 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1495/0.1496, allocations: 60.09 MB / 0.4899 GB, free: 3.188 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6055/0.7551, allocations: 172 MB / 0.6579 GB, free: 452 kB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002593/0.7554, allocations: 79.95 kB / 0.658 GB, free: 372 kB / 474.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.7838/1.539, allocations: 188.1 MB / 0.8417 GB, free: 11.75 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.743e-06/1.539, allocations: 0 / 0.8417 GB, free: 11.75 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.771e-05/1.539, allocations: 23.98 kB / 0.8418 GB, free: 11.72 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: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.00399/1.543, allocations: 1.708 MB / 0.8434 GB, free: 9.957 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/1.543, allocations: 8.031 kB / 0.8434 GB, free: 9.949 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.519e-05/1.543, allocations: 82.52 kB / 0.8435 GB, free: 9.859 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001414/1.544, allocations: 90.88 kB / 0.8436 GB, free: 9.77 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001253/1.545, allocations: 0.6679 MB / 0.8442 GB, free: 9.059 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.507e-05/1.545, allocations: 32.94 kB / 0.8443 GB, free: 9.027 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.034e-05/1.545, allocations: 51.91 kB / 0.8443 GB, free: 8.977 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007173/1.546, allocations: 497.1 kB / 0.8448 GB, free: 8.469 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/1.546, allocations: 3.953 kB / 0.8448 GB, free: 8.465 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.1e-05/1.546, allocations: 19.94 kB / 0.8448 GB, free: 8.445 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.386e-05/1.546, allocations: 16 kB / 0.8448 GB, free: 8.43 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006397/1.546, allocations: 411 kB / 0.8452 GB, free: 8.027 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002584/1.549, allocations: 2.16 MB / 0.8473 GB, free: 5.723 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005434/1.55, allocations: 387.3 kB / 0.8477 GB, free: 5.328 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002944/1.55, allocations: 197.1 kB / 0.8479 GB, free: 5.133 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001466/1.551, allocations: 1.418 MB / 0.8493 GB, free: 3.559 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003112/1.552, allocations: 224.6 kB / 0.8495 GB, free: 3.328 MB / 490.7 MB Notification: Performance of pre-optimization done (n=35): time 1.744e-06/1.552, allocations: 0 / 0.8495 GB, free: 3.328 MB / 490.7 MB Notification: Performance of matching and sorting (n=35): time 0.0007766/1.553, allocations: 432.3 kB / 0.8499 GB, free: 2.902 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.724e-05/1.553, allocations: 55.69 kB / 0.85 GB, free: 2.836 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006015/1.553, allocations: 0.5782 MB / 0.8505 GB, free: 2.25 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.954e-05/1.553, allocations: 37.7 kB / 0.8506 GB, free: 2.207 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001951/1.553, allocations: 379.7 kB / 0.8509 GB, free: 1.832 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.838e-05/1.553, allocations: 122.2 kB / 0.851 GB, free: 1.711 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.351e-05/1.554, allocations: 8 kB / 0.851 GB, free: 1.703 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 5.913e-05/1.554, allocations: 326 kB / 0.8514 GB, free: 1.379 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002413/1.554, allocations: 161.1 kB / 0.8515 GB, free: 1.219 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003119/1.554, allocations: 333.6 kB / 0.8518 GB, free: 0.8242 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002969/1.554, allocations: 227.4 kB / 0.852 GB, free: 0.5977 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-06/1.554, allocations: 0 / 0.852 GB, free: 0.5977 MB / 490.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0008996/1.555, allocations: 0.6416 MB / 0.8527 GB, free: 15.94 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.86e-05/1.555, allocations: 31.58 kB / 0.8527 GB, free: 15.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/1.555, allocations: 8.625 kB / 0.8527 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001564/1.556, allocations: 48.77 kB / 0.8528 GB, free: 15.85 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000476/1.556, allocations: 111.9 kB / 0.8529 GB, free: 15.74 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003802/1.556, allocations: 0.5563 MB / 0.8534 GB, free: 15.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006194/1.557, allocations: 91.44 kB / 0.8535 GB, free: 15.07 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.893e-05/1.557, allocations: 24 kB / 0.8535 GB, free: 15.04 MB / 0.4948 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 () * 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.0001226/1.557, allocations: 144.6 kB / 0.8537 GB, free: 14.89 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.828e-05/1.557, allocations: 75 kB / 0.8537 GB, free: 14.82 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008597/1.558, allocations: 482.5 kB / 0.8542 GB, free: 14.34 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/1.558, allocations: 4 kB / 0.8542 GB, free: 14.33 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/1.558, allocations: 7.953 kB / 0.8542 GB, free: 14.32 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/1.558, allocations: 7.922 kB / 0.8542 GB, free: 14.32 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006401/1.559, allocations: 0.5829 MB / 0.8548 GB, free: 13.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/1.559, allocations: 4 kB / 0.8548 GB, free: 13.68 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003222/1.559, allocations: 63.95 kB / 0.8548 GB, free: 13.62 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.854e-05/1.559, allocations: 32.84 kB / 0.8549 GB, free: 13.58 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.939e-05/1.559, allocations: 11.98 kB / 0.8549 GB, free: 13.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003041/1.56, allocations: 0.564 MB / 0.8554 GB, free: 12.98 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/1.56, allocations: 0 / 0.8554 GB, free: 12.98 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009852/1.561, allocations: 0.6654 MB / 0.8561 GB, free: 12.29 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002531/1.561, allocations: 192 kB / 0.8563 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.704e-05/1.561, allocations: 16.09 kB / 0.8563 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004032/1.562, allocations: 43.86 kB / 0.8563 GB, free: 12.03 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.298e-05/1.562, allocations: 27.95 kB / 0.8564 GB, free: 12 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.502e-05/1.562, allocations: 19.98 kB / 0.8564 GB, free: 11.98 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0005328/1.562, allocations: 463.1 kB / 0.8568 GB, free: 11.54 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.8e-07/1.562, allocations: 0 / 0.8568 GB, free: 11.54 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002091/1.564, allocations: 0.7607 MB / 0.8576 GB, free: 10.77 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.003672/1.568, allocations: 2.343 MB / 0.8598 GB, free: 8.395 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0009925/1.569, allocations: 483.1 kB / 0.8603 GB, free: 7.91 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.698e-06/1.569, allocations: 4 kB / 0.8603 GB, free: 7.906 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0003254/1.569, allocations: 197 kB / 0.8605 GB, free: 7.715 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002019/1.571, allocations: 397.7 kB / 0.8609 GB, free: 7.328 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003592/1.575, allocations: 1.437 MB / 0.8623 GB, free: 5.848 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005392/1.576, allocations: 0.9413 MB / 0.8632 GB, free: 4.875 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0007297/1.576, allocations: 153.9 kB / 0.8633 GB, free: 4.723 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003743/1.577, allocations: 279.3 kB / 0.8636 GB, free: 4.453 MB / 0.4948 GB Notification: Performance of SimCode: time 1.032e-06/1.577, allocations: 0 / 0.8636 GB, free: 4.453 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.406/1.983, allocations: 35.62 MB / 0.8984 GB, free: 65.6 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000138/1.983, allocations: 183.9 kB / 0.8986 GB, free: 65.38 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.058/5.041, allocations: 0 / 0.8986 GB, free: 65.38 MB / 0.4948 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe 2>&1)