Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr TAeZoSysPro_TAeZoSysPro.FluidDynamics.Components.Orifices.SimpleOpeningComp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "[:1:22-1:33:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 13743895347 into a real [:1:1-1:33: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/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0004339/0.0004339, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0003608/0.0003608, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.2316/0.2316, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/TAeZoSysPro master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/TAeZoSysPro master/package.mo): time 0.01676/0.01676, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] Using package TAeZoSysPro with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/TAeZoSysPro master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(TAeZoSysPro.FluidDynamics.Components.Orifices.SimpleOpeningComp,fileNamePrefix="TAeZoSysPro_TAeZoSysPro_FluidDynamics_Components_Orifices_SimpleOpeningComp",fmuType="me_cs",version="3.0",platforms={"wasm"}) "" <> buildModelFMU(TAeZoSysPro.FluidDynamics.Components.Orifices.SimpleOpeningComp,fileNamePrefix="TAeZoSysPro_TAeZoSysPro_FluidDynamics_Components_Orifices_SimpleOpeningComp",fmuType="me_cs",version="3.0",platforms={"wasm"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 8.52e-07/8.52e-07, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 9.057e-06/9.909e-06, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(TAeZoSysPro.FluidDynamics.Components.Orifices.SimpleOpeningComp): time 0.2679/0.2679, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.004751/0.2726, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 9.051e-05/0.2727, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.0003323/0.2731, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.0002876/0.2733, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.00102/0.2744, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.000257/0.2746, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 7.369e-05/0.2747, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.0002323/0.2749, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.0003806/0.2753, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 3.932e-05/0.2753, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.0007925/0.2761, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 7.643e-05/0.2762, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.0001145/0.2763, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.00054/0.2769, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 2.486e-05/0.2769, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 4.218e-06/0.2769, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 1.029e-05/0.2769, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.001712/0.2786, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 7.164e-05/0.2787, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000143/0.2788, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000199/0.279, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002608/0.2793, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.566e-05/0.2793, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 6.107e-05/0.2794, allocations: 0 / 0, free: 0 / 0 Error: An independent subset of the model has imbalanced number of equations (27) and variables (28). variables: h_b h_a port_b.m_flow[1] $outputAlias_port_b.d[1] port_b.d[1] $outputAlias_port_b.T port_b.T port_a.m_flow[1] $outputAlias_port_a.d[1] port_a.d[1] $outputAlias_port_a.T port_a.T state_b.T state_b.p state_a.T state_a.p state_upstream.T state_upstream.p T M gamma p_b p_a d m_flow c Vel dp equations: 1 : port_a.m_flow[1] = 0.0 2 : port_b.m_flow[1] = 0.0 3 : state_a.T = $outputAlias_port_a.T 4 : state_a.p = $outputAlias_port_a.d[1] * 287.0508037566665 * $outputAlias_port_a.T 5 : state_b.T = $outputAlias_port_b.T 6 : state_b.p = $outputAlias_port_b.d[1] * 287.0508037566665 * $outputAlias_port_b.T 7 : state_upstream.T = smooth(1, if noEvent(dp > dp_small) then state_a.T else if noEvent(dp < (-dp_small)) then state_b.T else if noEvent(abs(dp_small) > 0.0) then 0.25 * dp / dp_small * ((dp / dp_small) ^ 2.0 - 3.0) * (state_b.T - state_a.T) + 0.5 * (state_a.T + state_b.T) else 0.5 * (state_a.T + state_b.T)) 8 : state_upstream.p = smooth(1, if noEvent(dp > dp_small) then state_a.p else if noEvent(dp < (-dp_small)) then state_b.p else if noEvent(abs(dp_small) > 0.0) then 0.25 * dp / dp_small * ((dp / dp_small) ^ 2.0 - 3.0) * (state_b.p - state_a.p) + 0.5 * (state_a.p + state_b.p) else 0.5 * (state_a.p + state_b.p)) 9 : p_a = TAeZoSysPro.FluidDynamics.Components.Orifices.SimpleOpeningComp.Medium.pressure(state_a) + 9.80665 * $outputAlias_port_a.d[1] * (Alt_a - Alt_opening) 10 : p_b = TAeZoSysPro.FluidDynamics.Components.Orifices.SimpleOpeningComp.Medium.pressure(state_b) + 9.80665 * $outputAlias_port_b.d[1] * (Alt_b - Alt_opening) 11 : dp = p_a - p_b 12 : h_a = TAeZoSysPro.FluidDynamics.Components.Orifices.SimpleOpeningComp.Medium.specificEnthalpy(state_a) 13 : h_b = TAeZoSysPro.FluidDynamics.Components.Orifices.SimpleOpeningComp.Medium.specificEnthalpy(state_b) 14 : gamma = TAeZoSysPro.FluidDynamics.Components.Orifices.SimpleOpeningComp.Medium.isentropicExponent(state_upstream) 15 : M = min(1.0, (((min(p_a, p_b) / max(p_a, p_b)) ^ ((1.0 - gamma) / gamma) - 1.0) / (gamma - 1.0)) ^ 0.5 * 1.4142135623730951) 16 : T = TAeZoSysPro.FluidDynamics.Components.Orifices.SimpleOpeningComp.Medium.temperature(state_upstream) / (1.0 + (-0.5 + 0.5 * gamma) * M ^ 2.0) 17 : d = TAeZoSysPro.FluidDynamics.Components.Orifices.SimpleOpeningComp.Medium.density(state_upstream) * (1.0 + (-0.5 + 0.5 * gamma) * M ^ 2.0) ^ ((-1.0) / (1.0 - gamma)) 18 : c = sqrt(gamma * min(p_a, p_b) / d) 19 : Vel = M * c * /*Real*/(sign(dp)) 20 : m_flow = Vel * A * Cd * d 21 : port_a.m_flow[1] = m_flow * TAeZoSysPro.FluidDynamics.Utilities.regStep(dp, 1.0, 1.0, dp_small) 22 : port_a.m_flow[1] + port_b.m_flow[1] = 0.0 23 : port_a.H_flow = semiLinear(m_flow, h_a + 9.80665 * (Alt_a - Alt_b), h_b - 9.80665 * (Alt_a - Alt_b)) 24 : port_a.T = $outputAlias_port_a.T 25 : port_a.d[1] = $outputAlias_port_a.d[1] 26 : port_b.T = $outputAlias_port_b.T 27 : port_b.d[1] = $outputAlias_port_b.d[1] Notification: Performance of preOpt clockPartitioning (simulation) : time 0.0008111/0.2802, allocations: 0 / 0, free: 0 / 0 Error: pre-optimization module clockPartitioning (simulation) failed. " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 1.0924189728684723]