Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.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.Windkessel_3element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_3element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element",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.002192/0.002192, allocations: 180.8 kB / 7.459 MB, free: 2.5 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.103/1.103, allocations: 221.4 MB / 229.3 MB, free: 3.031 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.001038/0.001039, allocations: 93.8 kB / 280.1 MB, free: 1.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.2599/0.2599, allocations: 37.07 MB / 368 MB, free: 47.47 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09525/0.3552, allocations: 66.2 MB / 434.2 MB, free: 4.871 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.4578, allocations: 60.08 MB / 494.3 MB, free: 8.688 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3132/0.7711, allocations: 173.7 MB / 0.6523 GB, free: 5.785 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002249/0.7714, allocations: 75.97 kB / 0.6523 GB, free: 5.711 MB / 474.7 MB [/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 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.Sources.MassInflowSource$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: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. [/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.Sources.PressureSource. 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 impedance.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$impedance. 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. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.5471/1.318, allocations: 206.7 MB / 0.8542 GB, free: 1.285 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/1.319, allocations: 8 kB / 0.8542 GB, free: 1.277 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002301/1.319, allocations: 86.95 kB / 0.8543 GB, free: 1.191 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001159/1.32, allocations: 0.648 MB / 0.8549 GB, free: 0.5039 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.514e-05/1.32, allocations: 12 kB / 0.8549 GB, free: 0.4922 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.279e-05/1.32, allocations: 23.98 kB / 0.8549 GB, free: 480 kB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004827/1.321, allocations: 305.5 kB / 0.8552 GB, free: 176 kB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1416/1.462, allocations: 362 kB / 0.8556 GB, free: 100.2 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/1.462, allocations: 3.469 kB / 0.8556 GB, free: 100.2 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.14e-05/1.462, allocations: 0 / 0.8556 GB, free: 100.2 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/1.462, allocations: 8.875 kB / 0.8556 GB, free: 100.2 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00213/1.464, allocations: 2.122 MB / 0.8577 GB, free: 98.86 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003684/1.465, allocations: 285.6 kB / 0.8579 GB, free: 98.83 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001657/1.465, allocations: 135.4 kB / 0.8581 GB, free: 98.82 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009036/1.466, allocations: 0.9975 MB / 0.859 GB, free: 98.16 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001942/1.466, allocations: 165.8 kB / 0.8592 GB, free: 98.11 MB / 490.7 MB Notification: Performance of pre-optimization done (n=33): time 1.503e-06/1.466, allocations: 0 / 0.8592 GB, free: 98.11 MB / 490.7 MB Notification: Performance of matching and sorting (n=33): time 0.0007739/1.467, allocations: 381.2 kB / 0.8596 GB, free: 98.02 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.923e-05/1.467, allocations: 55.34 kB / 0.8596 GB, free: 97.96 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004643/1.467, allocations: 0.5062 MB / 0.8601 GB, free: 97.84 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.505e-05/1.467, allocations: 31.14 kB / 0.8601 GB, free: 97.81 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.894e-05/1.467, allocations: 233.3 kB / 0.8604 GB, free: 97.69 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.191e-05/1.468, allocations: 105.8 kB / 0.8605 GB, free: 97.63 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.668e-05/1.468, allocations: 0 / 0.8605 GB, free: 97.63 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.815e-05/1.468, allocations: 377.1 kB / 0.8608 GB, free: 97.32 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001551/1.468, allocations: 113.7 kB / 0.8609 GB, free: 97.32 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001817/1.468, allocations: 216.3 kB / 0.8611 GB, free: 97.21 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005195/1.468, allocations: 182.5 kB / 0.8613 GB, free: 97.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/1.469, allocations: 0 / 0.8613 GB, free: 97.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000958/1.469, allocations: 0.4926 MB / 0.8618 GB, free: 97.11 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.048e-05/1.469, allocations: 3.875 kB / 0.8618 GB, free: 97.11 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/1.47, allocations: 7.094 kB / 0.8618 GB, free: 97.11 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002047/1.47, allocations: 70.45 kB / 0.8619 GB, free: 97.09 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000303/1.47, allocations: 85.66 kB / 0.8619 GB, free: 97.09 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005525/1.471, allocations: 1.141 MB / 0.8631 GB, free: 96.05 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004095/1.471, allocations: 60.61 kB / 0.8631 GB, free: 96.04 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.061e-05/1.471, allocations: 20.23 kB / 0.8631 GB, free: 96.04 MB / 490.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: resistance.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: 13 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulses.T0,pulses.T0,pulses.b,$PRE.pulses.HP,pulses.HP,$PRE.pulses.TD2,pulses.TD2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001193/1.471, allocations: 113.7 kB / 0.8632 GB, free: 95.94 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.476e-05/1.471, allocations: 73.78 kB / 0.8633 GB, free: 95.9 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007907/1.472, allocations: 442.4 kB / 0.8637 GB, free: 95.82 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/1.472, allocations: 3.875 kB / 0.8637 GB, free: 95.82 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/1.472, allocations: 0 / 0.8637 GB, free: 95.82 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/1.472, allocations: 3 kB / 0.8637 GB, free: 95.82 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001234/1.473, allocations: 0.9502 MB / 0.8647 GB, free: 95.52 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/1.473, allocations: 3 kB / 0.8647 GB, free: 95.52 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002134/1.474, allocations: 46.97 kB / 0.8647 GB, free: 95.52 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001333/1.474, allocations: 75.06 kB / 0.8648 GB, free: 95.5 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.246e-05/1.474, allocations: 8.594 kB / 0.8648 GB, free: 95.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005171/1.474, allocations: 1.136 MB / 0.8659 GB, free: 94.46 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/1.474, allocations: 7.312 kB / 0.8659 GB, free: 94.46 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008402/1.475, allocations: 0.6277 MB / 0.8665 GB, free: 94.25 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001283/1.476, allocations: 1.26 MB / 0.8678 GB, free: 93.66 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001708/1.477, allocations: 181.1 kB / 0.8679 GB, free: 93.53 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.838e-05/1.477, allocations: 5.125 kB / 0.8679 GB, free: 93.53 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003387/1.477, allocations: 30.22 kB / 0.868 GB, free: 93.53 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.598e-05/1.477, allocations: 23.97 kB / 0.868 GB, free: 93.52 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.333e-05/1.477, allocations: 10.41 kB / 0.868 GB, free: 93.52 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0003444/1.477, allocations: 404.1 kB / 0.8684 GB, free: 93.43 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002336/1.48, allocations: 0.9556 MB / 0.8693 GB, free: 93.42 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (arteries.enthalpy,arteries.mass) * Number of discrete variables: 5 (pulses.b,$whenCondition1,pulses.T0,pulses.HP,pulses.TD2) * Number of discrete states: 2 (pulses.T0,pulses.HP) * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.00179/1.482, allocations: 1.416 MB / 0.8707 GB, free: 93.32 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0004721/1.482, allocations: 309.9 kB / 0.871 GB, free: 93.31 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/1.482, allocations: 0 / 0.871 GB, free: 93.31 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002305/1.482, allocations: 147.1 kB / 0.8711 GB, free: 93.31 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001284/1.484, allocations: 354.1 kB / 0.8715 GB, free: 93.31 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001341/1.485, allocations: 0.8299 MB / 0.8723 GB, free: 93.06 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004081/1.485, allocations: 0.9877 MB / 0.8732 GB, free: 92.35 MB / 490.7 MB Notification: Performance of SimCode: time 2.71e-07/1.485, allocations: 3.844 kB / 0.8732 GB, free: 92.35 MB / 490.7 MB (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe 2>&1)