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.002088/0.002088, allocations: 180.9 kB / 7.651 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.66/1.66, allocations: 221.5 MB / 229.6 MB, free: 7.578 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.0009104/0.0009101, allocations: 89 kB / 280.5 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.2516/0.2516, allocations: 37.08 MB / 368.3 MB, free: 9.977 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.208e-05/2.212e-05, allocations: 4 kB / 434.7 MB, free: 23.01 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1369, allocations: 60.08 MB / 494.8 MB, free: 10.97 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.565/0.702, allocations: 171.4 MB / 0.6506 GB, free: 12.18 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002591/0.7023, allocations: 77.27 kB / 0.6506 GB, free: 12.15 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.7631/1.465, allocations: 186.1 MB / 0.8324 GB, free: 76.46 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.014e-06/1.465, allocations: 0 / 0.8324 GB, free: 76.46 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001015/1.466, allocations: 20 kB / 0.8324 GB, free: 76.44 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.004719/1.47, allocations: 1.709 MB / 0.8341 GB, free: 74.68 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/1.47, allocations: 8.031 kB / 0.8341 GB, free: 74.67 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003814/1.471, allocations: 90.88 kB / 0.8342 GB, free: 74.58 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001609/1.472, allocations: 0.6759 MB / 0.8348 GB, free: 73.86 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.845e-05/1.472, allocations: 15.98 kB / 0.8348 GB, free: 73.84 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001318/1.473, allocations: 28 kB / 0.8349 GB, free: 73.82 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007127/1.473, allocations: 374.5 kB / 0.8352 GB, free: 73.45 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007258/1.474, allocations: 454.5 kB / 0.8357 GB, free: 72.98 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/1.474, allocations: 11.94 kB / 0.8357 GB, free: 72.97 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.294e-05/1.474, allocations: 0 / 0.8357 GB, free: 72.97 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.951e-05/1.474, allocations: 15.98 kB / 0.8357 GB, free: 72.96 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002985/1.477, allocations: 2.077 MB / 0.8377 GB, free: 70.75 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005216/1.478, allocations: 363.3 kB / 0.8381 GB, free: 70.38 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002732/1.478, allocations: 193.1 kB / 0.8383 GB, free: 70.19 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001691/1.48, allocations: 1.403 MB / 0.8396 GB, free: 68.63 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002778/1.48, allocations: 200.4 kB / 0.8398 GB, free: 68.42 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=35): time 2.494e-06/1.48, allocations: 4 kB / 0.8398 GB, free: 68.42 MB / 0.4948 GB Notification: Performance of matching and sorting (n=35): time 0.001029/1.481, allocations: 419.2 kB / 0.8402 GB, free: 68 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.014e-05/1.481, allocations: 55.69 kB / 0.8403 GB, free: 67.93 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006055/1.482, allocations: 0.5273 MB / 0.8408 GB, free: 67.4 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 3.377e-05/1.482, allocations: 29.7 kB / 0.8408 GB, free: 67.37 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002141/1.482, allocations: 375.6 kB / 0.8412 GB, free: 66.99 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/1.482, allocations: 122.2 kB / 0.8413 GB, free: 66.87 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.635e-05/1.482, allocations: 0 / 0.8413 GB, free: 66.87 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 6.834e-05/1.482, allocations: 326 kB / 0.8416 GB, free: 66.55 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002145/1.482, allocations: 157 kB / 0.8417 GB, free: 66.39 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002709/1.483, allocations: 312.5 kB / 0.842 GB, free: 66.02 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007766/1.483, allocations: 235.9 kB / 0.8423 GB, free: 65.79 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/1.483, allocations: 0 / 0.8423 GB, free: 65.79 MB / 0.4948 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001355/1.485, allocations: 0.5963 MB / 0.8429 GB, free: 65.18 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.698e-05/1.485, allocations: 29.7 kB / 0.8429 GB, free: 65.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/1.485, allocations: 11.98 kB / 0.8429 GB, free: 65.13 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001558/1.485, allocations: 44.77 kB / 0.8429 GB, free: 65.09 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000427/1.485, allocations: 116.3 kB / 0.843 GB, free: 64.97 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003321/1.486, allocations: 0.5679 MB / 0.8436 GB, free: 64.38 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006628/1.486, allocations: 71.59 kB / 0.8437 GB, free: 64.31 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.407e-05/1.487, allocations: 27.98 kB / 0.8437 GB, free: 64.28 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.0001618/1.487, allocations: 124.8 kB / 0.8438 GB, free: 64.15 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007109/1.487, allocations: 429.9 kB / 0.8442 GB, free: 63.72 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.875e-05/1.488, allocations: 71.06 kB / 0.8443 GB, free: 63.65 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008469/1.488, allocations: 462.7 kB / 0.8447 GB, free: 63.19 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/1.488, allocations: 7.984 kB / 0.8447 GB, free: 63.18 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/1.488, allocations: 8 kB / 0.8447 GB, free: 63.18 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/1.488, allocations: 0 / 0.8447 GB, free: 63.18 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005705/1.489, allocations: 0.5287 MB / 0.8453 GB, free: 62.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/1.489, allocations: 0 / 0.8453 GB, free: 62.61 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003058/1.489, allocations: 71.89 kB / 0.8453 GB, free: 62.54 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.473e-05/1.489, allocations: 32.83 kB / 0.8454 GB, free: 62.5 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.586e-05/1.489, allocations: 15.98 kB / 0.8454 GB, free: 62.49 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000265/1.49, allocations: 0.5562 MB / 0.8459 GB, free: 61.91 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/1.49, allocations: 0 / 0.8459 GB, free: 61.91 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009259/1.491, allocations: 0.6495 MB / 0.8466 GB, free: 61.23 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002208/1.491, allocations: 200.1 kB / 0.8467 GB, free: 61.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.069e-05/1.491, allocations: 4 kB / 0.8468 GB, free: 61.02 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003923/1.491, allocations: 35.95 kB / 0.8468 GB, free: 60.98 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.604e-05/1.492, allocations: 31.95 kB / 0.8468 GB, free: 60.95 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.361e-05/1.492, allocations: 15.98 kB / 0.8468 GB, free: 60.93 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0004275/1.492, allocations: 411.2 kB / 0.8472 GB, free: 60.54 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.61e-07/1.492, allocations: 0 / 0.8472 GB, free: 60.54 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00229/1.494, allocations: 0.7293 MB / 0.8479 GB, free: 59.8 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.003262/1.498, allocations: 2.344 MB / 0.8502 GB, free: 57.42 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0007194/1.498, allocations: 448 kB / 0.8507 GB, free: 56.97 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/1.498, allocations: 0 / 0.8507 GB, free: 56.97 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0002465/1.499, allocations: 187.8 kB / 0.8508 GB, free: 56.79 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00165/1.5, allocations: 385.5 kB / 0.8512 GB, free: 56.42 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002583/1.503, allocations: 1.399 MB / 0.8526 GB, free: 54.98 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000319/1.503, allocations: 0.9452 MB / 0.8535 GB, free: 54.01 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.0005496/1.504, allocations: 145.8 kB / 0.8536 GB, free: 53.86 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003061/1.504, allocations: 267.3 kB / 0.8539 GB, free: 53.6 MB / 0.4948 GB Notification: Performance of SimCode: time 1.352e-06/1.504, allocations: 0 / 0.8539 GB, free: 53.6 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08467/1.589, allocations: 30.9 MB / 0.8841 GB, free: 22.78 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000168/1.589, allocations: 140.2 kB / 0.8842 GB, free: 22.58 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.211/4.8, allocations: 4.031 kB / 0.8842 GB, free: 22.57 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)