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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00252/0.00252, allocations: 184.4 kB / 7.462 MB, free: 2.191 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.061/1.061, allocations: 221.4 MB / 229.3 MB, free: 3.203 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.0009217/0.0009217, allocations: 102 kB / 280.1 MB, free: 1.328 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.2456/0.2456, allocations: 37.06 MB / 368 MB, free: 47.57 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09096/0.3366, allocations: 66.21 MB / 434.2 MB, free: 4.844 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09144/0.4281, allocations: 60.1 MB / 494.3 MB, free: 8.652 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.303/0.7311, allocations: 171.3 MB / 0.65 GB, free: 8.156 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001859/0.7313, allocations: 71.95 kB / 0.65 GB, free: 8.086 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: 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.5114/1.243, allocations: 188.9 MB / 0.8345 GB, free: 21.27 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.115e-05/1.243, allocations: 15.94 kB / 0.8345 GB, free: 21.26 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000121/1.243, allocations: 86.88 kB / 0.8346 GB, free: 21.17 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001044/1.244, allocations: 0.6873 MB / 0.8353 GB, free: 20.45 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.086e-05/1.244, allocations: 12 kB / 0.8353 GB, free: 20.43 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.47e-05/1.244, allocations: 28 kB / 0.8353 GB, free: 20.41 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005586/1.245, allocations: 377.9 kB / 0.8357 GB, free: 20.04 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005585/1.245, allocations: 455 kB / 0.8361 GB, free: 19.57 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/1.245, allocations: 0 / 0.8361 GB, free: 19.57 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.874e-05/1.245, allocations: 7.984 kB / 0.8361 GB, free: 19.56 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/1.245, allocations: 12 kB / 0.8362 GB, free: 19.55 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002257/1.248, allocations: 2.081 MB / 0.8382 GB, free: 17.34 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004509/1.248, allocations: 343 kB / 0.8385 GB, free: 16.98 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002598/1.248, allocations: 197.1 kB / 0.8387 GB, free: 16.79 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001395/1.25, allocations: 1.383 MB / 0.8401 GB, free: 15.25 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002653/1.25, allocations: 200.4 kB / 0.8402 GB, free: 15.04 MB / 490.7 MB Notification: Performance of pre-optimization done (n=35): time 2.355e-06/1.25, allocations: 7.984 kB / 0.8403 GB, free: 15.04 MB / 490.7 MB Notification: Performance of matching and sorting (n=35): time 0.0009655/1.251, allocations: 419.9 kB / 0.8407 GB, free: 14.62 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.957e-05/1.251, allocations: 59.69 kB / 0.8407 GB, free: 14.55 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005/1.252, allocations: 0.5312 MB / 0.8412 GB, free: 14.02 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.921e-05/1.252, allocations: 25.7 kB / 0.8413 GB, free: 13.98 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/1.252, allocations: 275.5 kB / 0.8415 GB, free: 13.71 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.208e-05/1.252, allocations: 118.3 kB / 0.8416 GB, free: 13.59 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.208e-05/1.252, allocations: 0 / 0.8416 GB, free: 13.59 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 4.638e-05/1.252, allocations: 326 kB / 0.8419 GB, free: 13.27 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002084/1.252, allocations: 157.1 kB / 0.8421 GB, free: 13.12 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002557/1.252, allocations: 316.9 kB / 0.8424 GB, free: 12.73 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005905/1.253, allocations: 221 kB / 0.8426 GB, free: 12.52 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/1.253, allocations: 8 kB / 0.8426 GB, free: 12.51 MB / 490.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001083/1.254, allocations: 0.5857 MB / 0.8432 GB, free: 11.92 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/1.254, allocations: 15.91 kB / 0.8432 GB, free: 11.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/1.254, allocations: 4 kB / 0.8432 GB, free: 11.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001335/1.254, allocations: 40.84 kB / 0.8432 GB, free: 11.86 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004502/1.255, allocations: 119.8 kB / 0.8434 GB, free: 11.74 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003108/1.255, allocations: 0.5756 MB / 0.8439 GB, free: 11.14 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005757/1.256, allocations: 75.58 kB / 0.844 GB, free: 11.06 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.614e-05/1.256, allocations: 23.98 kB / 0.844 GB, free: 11.04 MB / 490.7 MB 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.0001243/1.256, allocations: 128.8 kB / 0.8441 GB, free: 10.91 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.664e-05/1.256, allocations: 71.06 kB / 0.8442 GB, free: 10.84 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008657/1.257, allocations: 481.6 kB / 0.8447 GB, free: 10.35 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/1.257, allocations: 4 kB / 0.8447 GB, free: 10.34 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/1.257, allocations: 3.938 kB / 0.8447 GB, free: 10.34 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/1.257, allocations: 0 / 0.8447 GB, free: 10.34 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004458/1.257, allocations: 0.5288 MB / 0.8452 GB, free: 9.773 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/1.257, allocations: 3.938 kB / 0.8452 GB, free: 9.77 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000327/1.258, allocations: 71.95 kB / 0.8453 GB, free: 9.699 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.466e-05/1.258, allocations: 32.83 kB / 0.8453 GB, free: 9.664 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.677e-05/1.258, allocations: 8 kB / 0.8453 GB, free: 9.656 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002719/1.258, allocations: 0.5718 MB / 0.8459 GB, free: 9.059 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/1.258, allocations: 0 / 0.8459 GB, free: 9.059 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009031/1.259, allocations: 0.657 MB / 0.8465 GB, free: 8.379 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001394/1.26, allocations: 1.334 MB / 0.8478 GB, free: 7.02 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001931/1.26, allocations: 192 kB / 0.848 GB, free: 6.812 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/1.261, allocations: 4 kB / 0.848 GB, free: 6.809 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004094/1.261, allocations: 47.8 kB / 0.848 GB, free: 6.762 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.389e-05/1.261, allocations: 31.95 kB / 0.8481 GB, free: 6.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.812e-05/1.261, allocations: 15.98 kB / 0.8481 GB, free: 6.715 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0003489/1.261, allocations: 415.2 kB / 0.8485 GB, free: 6.316 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002191/1.264, allocations: 0.8622 MB / 0.8493 GB, free: 5.453 MB / 490.7 MB 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.001592/1.265, allocations: 1.275 MB / 0.8506 GB, free: 4.172 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0005772/1.266, allocations: 435.2 kB / 0.851 GB, free: 3.742 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/1.266, allocations: 0 / 0.851 GB, free: 3.742 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002401/1.266, allocations: 195.9 kB / 0.8512 GB, free: 3.551 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001351/1.267, allocations: 367.6 kB / 0.8515 GB, free: 3.199 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001517/1.269, allocations: 1.021 MB / 0.8525 GB, free: 2.148 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004742/1.269, allocations: 1.031 MB / 0.8535 GB, free: 1.09 MB / 490.7 MB Notification: Performance of SimCode: time 2.9e-07/1.269, allocations: 0 / 0.8535 GB, free: 1.09 MB / 490.7 MB (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)