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: translateModel(Physiolibrary.Fluid.Examples.MinimalCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation") translateModel(Physiolibrary.Fluid.Examples.MinimalCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation") [: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.003372/0.003372, allocations: 172.4 kB / 7.457 MB, free: 2.488 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.266/1.266, allocations: 221.4 MB / 229.3 MB, free: 3.086 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.001158/0.001158, allocations: 92.92 kB / 280.1 MB, free: 1.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.3482/0.3482, allocations: 37.07 MB / 368 MB, free: 47.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.662e-06/6.702e-06, allocations: 0 / 434.1 MB, free: 4.941 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1049, allocations: 60.09 MB / 494.2 MB, free: 8.746 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3391/0.444, allocations: 171.3 MB / 0.6499 GB, free: 8.164 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002272/0.4443, allocations: 79.95 kB / 0.6499 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: Performance of FrontEnd: time 0.5809/1.025, allocations: 187.2 MB / 0.8327 GB, free: 23.02 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.471e-05/1.025, allocations: 19.98 kB / 0.8328 GB, free: 23 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.003026/1.028, allocations: 1.712 MB / 0.8344 GB, free: 21.23 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/1.028, allocations: 12.03 kB / 0.8344 GB, free: 21.22 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001317/1.029, allocations: 90.88 kB / 0.8345 GB, free: 21.13 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00111/1.03, allocations: 0.6794 MB / 0.8352 GB, free: 20.41 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.758e-05/1.03, allocations: 16 kB / 0.8352 GB, free: 20.39 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.056e-05/1.03, allocations: 32 kB / 0.8352 GB, free: 20.36 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006157/1.03, allocations: 381.9 kB / 0.8356 GB, free: 19.98 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000589/1.031, allocations: 451 kB / 0.836 GB, free: 19.52 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/1.031, allocations: 0 / 0.836 GB, free: 19.52 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.874e-05/1.031, allocations: 7.984 kB / 0.836 GB, free: 19.52 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/1.031, allocations: 16 kB / 0.8361 GB, free: 19.5 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002351/1.033, allocations: 2.073 MB / 0.8381 GB, free: 17.29 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000433/1.034, allocations: 335 kB / 0.8384 GB, free: 16.95 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002593/1.034, allocations: 201.1 kB / 0.8386 GB, free: 16.75 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001315/1.035, allocations: 1.395 MB / 0.84 GB, free: 15.2 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002415/1.036, allocations: 204.4 kB / 0.8402 GB, free: 14.99 MB / 490.7 MB Notification: Performance of pre-optimization done (n=35): time 1.573e-06/1.036, allocations: 4 kB / 0.8402 GB, free: 14.98 MB / 490.7 MB Notification: Performance of matching and sorting (n=35): time 0.000855/1.037, allocations: 415.9 kB / 0.8406 GB, free: 14.57 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.875e-05/1.037, allocations: 55.69 kB / 0.8406 GB, free: 14.51 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005417/1.037, allocations: 0.5312 MB / 0.8411 GB, free: 13.97 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.827e-05/1.037, allocations: 25.7 kB / 0.8412 GB, free: 13.94 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000105/1.037, allocations: 271.5 kB / 0.8414 GB, free: 13.67 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.402e-05/1.037, allocations: 118.3 kB / 0.8415 GB, free: 13.55 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.353e-05/1.037, allocations: 0 / 0.8415 GB, free: 13.55 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 4.485e-05/1.037, allocations: 330 kB / 0.8418 GB, free: 13.23 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002131/1.038, allocations: 153.1 kB / 0.842 GB, free: 13.08 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002562/1.038, allocations: 317.8 kB / 0.8423 GB, free: 12.7 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006168/1.039, allocations: 224.9 kB / 0.8425 GB, free: 12.48 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/1.039, allocations: 8 kB / 0.8425 GB, free: 12.47 MB / 490.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001104/1.04, allocations: 0.5856 MB / 0.8431 GB, free: 11.88 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/1.04, allocations: 15.94 kB / 0.8431 GB, free: 11.86 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/1.04, allocations: 4 kB / 0.8431 GB, free: 11.86 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001397/1.04, allocations: 40.84 kB / 0.8431 GB, free: 11.81 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000463/1.04, allocations: 123.7 kB / 0.8433 GB, free: 11.69 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003287/1.041, allocations: 0.5757 MB / 0.8438 GB, free: 11.09 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006124/1.041, allocations: 71.59 kB / 0.8439 GB, free: 11.02 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.082e-05/1.041, allocations: 23.98 kB / 0.8439 GB, free: 11 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.0001274/1.042, allocations: 128.8 kB / 0.844 GB, free: 10.86 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.447e-05/1.042, allocations: 75.05 kB / 0.8441 GB, free: 10.79 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009031/1.043, allocations: 481.6 kB / 0.8446 GB, free: 10.3 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/1.043, allocations: 4 kB / 0.8446 GB, free: 10.3 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/1.043, allocations: 0 / 0.8446 GB, free: 10.3 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/1.043, allocations: 3.984 kB / 0.8446 GB, free: 10.29 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004749/1.043, allocations: 0.5288 MB / 0.8451 GB, free: 9.727 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/1.043, allocations: 0 / 0.8451 GB, free: 9.727 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000352/1.043, allocations: 75.89 kB / 0.8452 GB, free: 9.652 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.313e-05/1.043, allocations: 28.84 kB / 0.8452 GB, free: 9.621 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.718e-05/1.044, allocations: 11.98 kB / 0.8452 GB, free: 9.609 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002743/1.044, allocations: 0.5679 MB / 0.8458 GB, free: 9.016 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/1.044, allocations: 0 / 0.8458 GB, free: 9.016 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009899/1.045, allocations: 0.6609 MB / 0.8464 GB, free: 8.332 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002018/1.045, allocations: 184.1 kB / 0.8466 GB, free: 8.133 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000113/1.045, allocations: 3.906 kB / 0.8466 GB, free: 8.129 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004328/1.046, allocations: 47.98 kB / 0.8466 GB, free: 8.082 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.842e-05/1.046, allocations: 31.95 kB / 0.8467 GB, free: 8.051 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.027e-05/1.046, allocations: 15.98 kB / 0.8467 GB, free: 8.035 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0003719/1.046, allocations: 407.2 kB / 0.8471 GB, free: 7.645 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001645/1.048, allocations: 0.7333 MB / 0.8478 GB, free: 6.91 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.001688/1.049, allocations: 1.263 MB / 0.849 GB, free: 5.645 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0006058/1.05, allocations: 442.3 kB / 0.8494 GB, free: 5.207 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/1.05, allocations: 0 / 0.8494 GB, free: 5.207 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002476/1.05, allocations: 184.5 kB / 0.8496 GB, free: 5.027 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00141/1.052, allocations: 374.8 kB / 0.85 GB, free: 4.668 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001628/1.053, allocations: 1.022 MB / 0.851 GB, free: 3.613 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004872/1.054, allocations: 1.023 MB / 0.852 GB, free: 2.562 MB / 490.7 MB Notification: Performance of SimCode: time 2.91e-07/1.054, allocations: 4 kB / 0.852 GB, free: 2.559 MB / 490.7 MB Notification: Performance of Templates: time 0.2036/1.257, allocations: 24.72 MB / 0.8761 GB, free: 108.8 MB / 490.7 MB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.makefile (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 & ./Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe 2>&1)