Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.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_2element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_2element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element",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.001708/0.001708, allocations: 184.1 kB / 7.462 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.097/1.097, allocations: 221.4 MB / 229.3 MB, free: 3.121 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.0008652/0.0008651, allocations: 102.3 kB / 280.1 MB, free: 1.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.2575/0.2575, allocations: 37.07 MB / 368 MB, free: 47.64 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1/0.3576, allocations: 66.2 MB / 434.2 MB, free: 4.84 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09567/0.4533, allocations: 60.09 MB / 494.3 MB, free: 8.648 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3154/0.7687, allocations: 173.6 MB / 0.6522 GB, free: 5.789 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002122/0.7689, allocations: 80.47 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 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 unlimitedPump.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$unlimitedPump. 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 unlimitedVolume.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: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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.5011/1.27, allocations: 171 MB / 0.8192 GB, free: 37.01 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/1.27, allocations: 8 kB / 0.8192 GB, free: 37 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001981/1.27, allocations: 75.06 kB / 0.8193 GB, free: 36.93 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001061/1.271, allocations: 0.5889 MB / 0.8199 GB, free: 36.3 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.39e-05/1.271, allocations: 8 kB / 0.8199 GB, free: 36.29 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.889e-05/1.271, allocations: 23.91 kB / 0.8199 GB, free: 36.27 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000436/1.272, allocations: 265.2 kB / 0.8202 GB, free: 36.01 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004285/1.272, allocations: 329.4 kB / 0.8205 GB, free: 35.67 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/1.272, allocations: 3.984 kB / 0.8205 GB, free: 35.67 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.144e-05/1.272, allocations: 4 kB / 0.8205 GB, free: 35.66 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/1.272, allocations: 12 kB / 0.8205 GB, free: 35.65 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002005/1.274, allocations: 1.93 MB / 0.8224 GB, free: 33.52 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003527/1.275, allocations: 259 kB / 0.8226 GB, free: 33.26 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001515/1.275, allocations: 121 kB / 0.8227 GB, free: 33.14 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009188/1.276, allocations: 0.9586 MB / 0.8237 GB, free: 32.08 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001879/1.276, allocations: 144.3 kB / 0.8238 GB, free: 31.93 MB / 490.7 MB Notification: Performance of pre-optimization done (n=29): time 2.615e-06/1.276, allocations: 0 / 0.8238 GB, free: 31.93 MB / 490.7 MB Notification: Performance of matching and sorting (n=29): time 0.0007144/1.277, allocations: 310.8 kB / 0.8241 GB, free: 31.61 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.037e-05/1.277, allocations: 55.64 kB / 0.8242 GB, free: 31.55 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004626/1.277, allocations: 483.5 kB / 0.8246 GB, free: 31.07 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.424e-05/1.277, allocations: 33.64 kB / 0.8247 GB, free: 31.03 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.976e-05/1.277, allocations: 215.9 kB / 0.8249 GB, free: 30.82 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.622e-05/1.277, allocations: 98.56 kB / 0.825 GB, free: 30.72 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.554e-05/1.278, allocations: 0 / 0.825 GB, free: 30.72 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.483e-05/1.278, allocations: 366.8 kB / 0.8253 GB, free: 30.35 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000148/1.278, allocations: 104.8 kB / 0.8254 GB, free: 30.25 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001764/1.278, allocations: 203.3 kB / 0.8256 GB, free: 30 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005056/1.278, allocations: 156.1 kB / 0.8257 GB, free: 29.85 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/1.278, allocations: 0 / 0.8257 GB, free: 29.85 MB / 490.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008657/1.279, allocations: 430 kB / 0.8262 GB, free: 29.43 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/1.279, allocations: 4 kB / 0.8262 GB, free: 29.42 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/1.279, allocations: 7.906 kB / 0.8262 GB, free: 29.41 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001493/1.28, allocations: 32.84 kB / 0.8262 GB, free: 29.38 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003113/1.28, allocations: 88.08 kB / 0.8263 GB, free: 29.29 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003305/1.28, allocations: 0.5485 MB / 0.8268 GB, free: 28.72 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000434/1.281, allocations: 55.66 kB / 0.8269 GB, free: 28.66 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.787e-05/1.281, allocations: 16 kB / 0.8269 GB, free: 28.65 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 (45): * 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: 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.0001348/1.281, allocations: 129.7 kB / 0.827 GB, free: 28.52 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.906e-05/1.281, allocations: 63.16 kB / 0.8271 GB, free: 28.45 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000688/1.282, allocations: 379.3 kB / 0.8274 GB, free: 28.06 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/1.282, allocations: 0 / 0.8274 GB, free: 28.06 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/1.282, allocations: 11.89 kB / 0.8274 GB, free: 28.05 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/1.282, allocations: 4 kB / 0.8275 GB, free: 28.05 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/1.283, allocations: 0.8281 MB / 0.8283 GB, free: 27.17 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/1.283, allocations: 0 / 0.8283 GB, free: 27.17 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002214/1.283, allocations: 47.94 kB / 0.8283 GB, free: 27.12 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.026e-05/1.283, allocations: 32.84 kB / 0.8283 GB, free: 27.09 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.057e-05/1.283, allocations: 0 / 0.8283 GB, free: 27.09 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002658/1.283, allocations: 0.5484 MB / 0.8289 GB, free: 26.51 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/1.283, allocations: 12.06 kB / 0.8289 GB, free: 26.5 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006795/1.284, allocations: 0.5331 MB / 0.8294 GB, free: 25.94 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00107/1.285, allocations: 1.125 MB / 0.8305 GB, free: 24.78 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001807/1.285, allocations: 164.2 kB / 0.8307 GB, free: 24.6 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.587e-05/1.285, allocations: 11.91 kB / 0.8307 GB, free: 24.59 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003238/1.286, allocations: 28.03 kB / 0.8307 GB, free: 24.56 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.305e-05/1.286, allocations: 11.97 kB / 0.8307 GB, free: 24.55 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.109e-05/1.286, allocations: 12 kB / 0.8307 GB, free: 24.54 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0003265/1.286, allocations: 375.2 kB / 0.8311 GB, free: 24.18 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002195/1.288, allocations: 0.7724 MB / 0.8318 GB, free: 23.4 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 (26): * 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: 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.001914/1.29, allocations: 1.174 MB / 0.833 GB, free: 22.21 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0004169/1.291, allocations: 264 kB / 0.8332 GB, free: 21.96 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/1.291, allocations: 0 / 0.8332 GB, free: 21.96 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001896/1.291, allocations: 119.8 kB / 0.8333 GB, free: 21.84 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001223/1.292, allocations: 323.5 kB / 0.8337 GB, free: 21.54 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001235/1.293, allocations: 0.7305 MB / 0.8344 GB, free: 20.78 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004031/1.294, allocations: 0.959 MB / 0.8353 GB, free: 19.79 MB / 490.7 MB Notification: Performance of SimCode: time 2.7e-07/1.294, allocations: 0 / 0.8353 GB, free: 19.79 MB / 490.7 MB (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_2element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe 2>&1)