Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.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_4element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_4element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element",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.002043/0.002044, 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.076/1.076, allocations: 221.4 MB / 229.3 MB, free: 3.004 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.0008835/0.0008836, allocations: 101 kB / 280.1 MB, free: 1.281 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.269/0.269, allocations: 37.07 MB / 368 MB, free: 47.47 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1017/0.3708, allocations: 66.21 MB / 434.2 MB, free: 4.832 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09834/0.4691, allocations: 60.08 MB / 494.3 MB, free: 8.641 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3124/0.7816, allocations: 174.1 MB / 0.6527 GB, free: 5.133 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001899/0.7818, allocations: 77.7 kB / 0.6527 GB, free: 5.059 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:546:7-546:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System inertia.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.Inertia$inertia. 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.7737/1.556, allocations: 242.7 MB / 0.8898 GB, free: 52.1 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.22e-05/1.556, allocations: 7.531 kB / 0.8898 GB, free: 52.1 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001243/1.556, allocations: 96.06 kB / 0.8899 GB, free: 52.05 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001032/1.557, allocations: 0.7065 MB / 0.8906 GB, free: 51.79 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.405e-05/1.557, allocations: 11.22 kB / 0.8906 GB, free: 51.79 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.915e-05/1.557, allocations: 26.06 kB / 0.8906 GB, free: 51.79 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005929/1.557, allocations: 416.2 kB / 0.891 GB, free: 51.79 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005539/1.558, allocations: 435.2 kB / 0.8914 GB, free: 51.71 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/1.558, allocations: 0 / 0.8914 GB, free: 51.71 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.718e-05/1.558, allocations: 3.938 kB / 0.8914 GB, free: 51.71 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/1.558, allocations: 11.03 kB / 0.8914 GB, free: 51.71 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002399/1.56, allocations: 2.401 MB / 0.8938 GB, free: 50.27 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004664/1.561, allocations: 355.5 kB / 0.8941 GB, free: 50.24 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002606/1.561, allocations: 203.5 kB / 0.8943 GB, free: 50.23 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001101/1.562, allocations: 1.105 MB / 0.8954 GB, free: 49.56 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002574/1.563, allocations: 213.6 kB / 0.8956 GB, free: 49.51 MB / 490.7 MB Notification: Performance of pre-optimization done (n=39): time 1.533e-06/1.563, allocations: 0 / 0.8956 GB, free: 49.51 MB / 490.7 MB Notification: Performance of matching and sorting (n=39): time 0.0009451/1.564, allocations: 459.5 kB / 0.896 GB, free: 49.41 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.049e-05/1.564, allocations: 58.19 kB / 0.8961 GB, free: 49.35 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005015/1.564, allocations: 0.5356 MB / 0.8966 GB, free: 49.23 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.801e-05/1.564, allocations: 25.7 kB / 0.8966 GB, free: 49.2 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/1.564, allocations: 255.9 kB / 0.8969 GB, free: 49.05 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.168e-05/1.564, allocations: 125.4 kB / 0.897 GB, free: 48.96 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.052e-05/1.564, allocations: 3.594 kB / 0.897 GB, free: 48.96 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 4.889e-05/1.564, allocations: 330.2 kB / 0.8973 GB, free: 48.66 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002093/1.565, allocations: 143 kB / 0.8974 GB, free: 48.66 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002263/1.565, allocations: 249.6 kB / 0.8977 GB, free: 48.54 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006065/1.565, allocations: 210.8 kB / 0.8979 GB, free: 48.54 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/1.565, allocations: 2.516 kB / 0.8979 GB, free: 48.54 MB / 490.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001069/1.567, allocations: 0.5804 MB / 0.8985 GB, free: 48.44 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.557e-06/1.567, allocations: 3.781 kB / 0.8985 GB, free: 48.44 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/1.567, allocations: 3.719 kB / 0.8985 GB, free: 48.44 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002044/1.567, allocations: 76.53 kB / 0.8985 GB, free: 48.43 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003744/1.567, allocations: 100.6 kB / 0.8986 GB, free: 48.43 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000544/1.568, allocations: 1.142 MB / 0.8997 GB, free: 47.39 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004626/1.568, allocations: 57.14 kB / 0.8998 GB, free: 47.37 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.827e-05/1.568, allocations: 30.73 kB / 0.8998 GB, free: 47.37 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 (53): * Single equations (assignments): 49 * 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.0001295/1.568, allocations: 117.8 kB / 0.8999 GB, free: 47.26 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.109e-05/1.568, allocations: 75.34 kB / 0.9 GB, free: 47.22 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001016/1.57, allocations: 0.5514 MB / 0.9005 GB, free: 47.13 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/1.57, allocations: 7.781 kB / 0.9006 GB, free: 47.13 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/1.57, allocations: 0 / 0.9006 GB, free: 47.13 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/1.57, allocations: 5.812 kB / 0.9006 GB, free: 47.13 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001476/1.571, allocations: 1.114 MB / 0.9016 GB, free: 46.82 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/1.571, allocations: 9.234 kB / 0.9017 GB, free: 46.82 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003194/1.571, allocations: 67.81 kB / 0.9017 GB, free: 46.82 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001377/1.572, allocations: 65 kB / 0.9018 GB, free: 46.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.997e-05/1.572, allocations: 10.11 kB / 0.9018 GB, free: 46.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005606/1.572, allocations: 1.146 MB / 0.9029 GB, free: 45.76 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/1.572, allocations: 2.906 kB / 0.9029 GB, free: 45.76 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001012/1.573, allocations: 0.7588 MB / 0.9037 GB, free: 45.54 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001579/1.575, allocations: 1.473 MB / 0.9051 GB, free: 44.94 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001963/1.575, allocations: 192.9 kB / 0.9053 GB, free: 44.8 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001113/1.575, allocations: 7.297 kB / 0.9053 GB, free: 44.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003978/1.575, allocations: 32.47 kB / 0.9053 GB, free: 44.8 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.195e-05/1.576, allocations: 34.92 kB / 0.9053 GB, free: 44.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.972e-05/1.576, allocations: 12.27 kB / 0.9054 GB, free: 44.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.000388/1.576, allocations: 429.3 kB / 0.9058 GB, free: 44.71 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002715/1.579, allocations: 1.138 MB / 0.9069 GB, free: 44.48 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (arteries.enthalpy,arteries.mass,inertia.q_in.m_flow) * 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 (36): * Single equations (assignments): 30 * 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.002235/1.581, allocations: 1.695 MB / 0.9085 GB, free: 44.15 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0006118/1.582, allocations: 378.9 kB / 0.9089 GB, free: 44.15 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/1.582, allocations: 2.75 kB / 0.9089 GB, free: 44.15 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002886/1.582, allocations: 202.9 kB / 0.9091 GB, free: 44.15 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001487/1.583, allocations: 412.3 kB / 0.9095 GB, free: 44.14 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00159/1.585, allocations: 1.001 MB / 0.9105 GB, free: 43.86 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004664/1.585, allocations: 1.049 MB / 0.9115 GB, free: 43.15 MB / 490.7 MB Notification: Performance of SimCode: time 2.6e-07/1.585, allocations: 0 / 0.9115 GB, free: 43.15 MB / 490.7 MB (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe 2>&1)