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.009843/0.009843, allocations: 170.8 kB / 15.11 MB, free: 5.977 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.492/1.492, allocations: 223.2 MB / 239 MB, free: 1.801 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.0009462/0.0009462, allocations: 103.6 kB / 290.2 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.2445/0.2445, allocations: 37.08 MB / 378.4 MB, free: 5.707 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000395/0.000395, allocations: 12 kB / 449.1 MB, free: 61.59 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1287, allocations: 60.08 MB / 0.4972 GB, free: 1.453 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5339/0.6627, allocations: 172.1 MB / 0.6653 GB, free: 14.66 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/0.663, allocations: 78.28 kB / 0.6654 GB, free: 14.62 MB / 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.7934/1.456, allocations: 188.6 MB / 0.8496 GB, free: 87.29 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.314e-06/1.456, allocations: 3.938 kB / 0.8496 GB, free: 87.29 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001274/1.457, allocations: 16 kB / 0.8496 GB, free: 87.27 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.006719/1.463, allocations: 1.844 MB / 0.8514 GB, free: 85.37 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.541e-05/1.463, allocations: 12.02 kB / 0.8514 GB, free: 85.36 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003478/1.464, allocations: 82.52 kB / 0.8515 GB, free: 85.27 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004481/1.464, allocations: 94.92 kB / 0.8516 GB, free: 85.18 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002132/1.466, allocations: 0.6756 MB / 0.8522 GB, free: 84.46 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.489e-05/1.466, allocations: 36.94 kB / 0.8523 GB, free: 84.42 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001474/1.467, allocations: 40 kB / 0.8523 GB, free: 84.38 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001176/1.468, allocations: 0.5327 MB / 0.8528 GB, free: 83.82 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.229e-05/1.468, allocations: 0 / 0.8528 GB, free: 83.82 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.651e-05/1.468, allocations: 16 kB / 0.8529 GB, free: 83.81 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.054e-05/1.468, allocations: 27.83 kB / 0.8529 GB, free: 83.78 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001022/1.469, allocations: 483.7 kB / 0.8533 GB, free: 83.31 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003335/1.472, allocations: 2.153 MB / 0.8554 GB, free: 81.01 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008061/1.473, allocations: 455.1 kB / 0.8559 GB, free: 80.55 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001597/1.475, allocations: 1.379 MB / 0.8572 GB, free: 79.02 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004458/1.475, allocations: 264.8 kB / 0.8575 GB, free: 78.75 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=36): time 1.964e-06/1.475, allocations: 0 / 0.8575 GB, free: 78.75 MB / 0.5105 GB Notification: Performance of matching and sorting (n=36): time 0.001443/1.477, allocations: 0.9009 MB / 0.8584 GB, free: 77.78 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.834e-05/1.477, allocations: 63.34 kB / 0.8584 GB, free: 77.71 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006398/1.477, allocations: 0.5898 MB / 0.859 GB, free: 77.11 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.537e-05/1.477, allocations: 29.7 kB / 0.859 GB, free: 77.07 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002147/1.478, allocations: 387.5 kB / 0.8594 GB, free: 76.69 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 8.599e-05/1.478, allocations: 130.2 kB / 0.8595 GB, free: 76.56 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.545e-05/1.478, allocations: 12 kB / 0.8595 GB, free: 76.55 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 5.973e-05/1.478, allocations: 322 kB / 0.8598 GB, free: 76.23 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003682/1.478, allocations: 205 kB / 0.86 GB, free: 76.02 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004344/1.479, allocations: 371.3 kB / 0.8604 GB, free: 75.59 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004285/1.479, allocations: 269.8 kB / 0.8606 GB, free: 75.32 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/1.479, allocations: 0 / 0.8606 GB, free: 75.32 MB / 0.5105 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001165/1.48, allocations: 0.7113 MB / 0.8613 GB, free: 74.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.495e-05/1.48, allocations: 33.7 kB / 0.8614 GB, free: 74.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/1.48, allocations: 4 kB / 0.8614 GB, free: 74.55 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001971/1.481, allocations: 49.27 kB / 0.8614 GB, free: 74.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004578/1.481, allocations: 119.8 kB / 0.8615 GB, free: 74.39 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002925/1.481, allocations: 0.5602 MB / 0.8621 GB, free: 73.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007068/1.482, allocations: 83.5 kB / 0.8622 GB, free: 73.72 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.44e-05/1.482, allocations: 27.98 kB / 0.8622 GB, free: 73.69 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.0002991/1.482, allocations: 209.5 kB / 0.8624 GB, free: 73.48 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.682e-05/1.482, allocations: 79.06 kB / 0.8625 GB, free: 73.4 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001062/1.484, allocations: 0.5535 MB / 0.863 GB, free: 72.84 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.085e-05/1.484, allocations: 4 kB / 0.863 GB, free: 72.83 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/1.484, allocations: 0 / 0.863 GB, free: 72.83 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/1.484, allocations: 0 / 0.863 GB, free: 72.83 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006127/1.484, allocations: 0.5946 MB / 0.8636 GB, free: 72.19 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/1.484, allocations: 4 kB / 0.8636 GB, free: 72.18 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003234/1.485, allocations: 71.89 kB / 0.8637 GB, free: 72.11 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.95e-05/1.485, allocations: 32.83 kB / 0.8637 GB, free: 72.08 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.899e-05/1.485, allocations: 12 kB / 0.8637 GB, free: 72.07 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002495/1.485, allocations: 0.5562 MB / 0.8642 GB, free: 71.48 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/1.485, allocations: 0 / 0.8642 GB, free: 71.48 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001246/1.486, allocations: 0.7782 MB / 0.865 GB, free: 70.68 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000274/1.486, allocations: 200 kB / 0.8652 GB, free: 70.47 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.655e-05/1.487, allocations: 15.95 kB / 0.8652 GB, free: 70.45 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004037/1.487, allocations: 39.95 kB / 0.8653 GB, free: 70.41 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.41e-05/1.487, allocations: 35.95 kB / 0.8653 GB, free: 70.38 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.269e-05/1.487, allocations: 15.98 kB / 0.8653 GB, free: 70.36 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.000503/1.488, allocations: 467 kB / 0.8657 GB, free: 69.91 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.91e-07/1.488, allocations: 0 / 0.8657 GB, free: 69.91 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00218/1.49, allocations: 0.7568 MB / 0.8665 GB, free: 69.15 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.003708/1.494, allocations: 2.479 MB / 0.8689 GB, free: 66.64 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001111/1.495, allocations: 0.5432 MB / 0.8694 GB, free: 66.08 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/1.495, allocations: 0 / 0.8694 GB, free: 66.08 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0004085/1.495, allocations: 238.3 kB / 0.8697 GB, free: 65.85 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001692/1.497, allocations: 391 kB / 0.87 GB, free: 65.48 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007383/1.504, allocations: 7.717 MB / 0.8776 GB, free: 57.62 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003144/1.505, allocations: 0.9414 MB / 0.8785 GB, free: 56.66 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0006541/1.505, allocations: 157.8 kB / 0.8786 GB, free: 56.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003217/1.506, allocations: 271.3 kB / 0.8789 GB, free: 56.23 MB / 0.5105 GB Notification: Performance of SimCode: time 1.122e-06/1.506, allocations: 0 / 0.8789 GB, free: 56.23 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05283/1.558, allocations: 35.04 MB / 0.9131 GB, free: 21.41 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000161/1.559, allocations: 198.1 kB / 0.9133 GB, free: 21.18 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.178/4.737, allocations: 4 kB / 0.9133 GB, free: 21.18 MB / 0.5105 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)