Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr TAeZoSysPro_TAeZoSysPro.FluidDynamics.Components.Orifices.OpeningAnalytic.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.0005637/0.0005637, 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.0003657/0.0003657, 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.2333/0.2333, 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.02226/0.02226, 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.OpeningAnalytic,fileNamePrefix="TAeZoSysPro_TAeZoSysPro_FluidDynamics_Components_Orifices_OpeningAnalytic",fmuType="me_cs",version="3.0",platforms={"wasm"}) "" <> buildModelFMU(TAeZoSysPro.FluidDynamics.Components.Orifices.OpeningAnalytic,fileNamePrefix="TAeZoSysPro_TAeZoSysPro_FluidDynamics_Components_Orifices_OpeningAnalytic",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.358e-06/1.021e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(TAeZoSysPro.FluidDynamics.Components.Orifices.OpeningAnalytic): time 0.2685/0.2685, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.001735/0.2702, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 9.088e-05/0.2703, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.0003389/0.2706, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.0003544/0.271, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.0006116/0.2716, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.0003134/0.2719, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 7.266e-05/0.272, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.0003143/0.2723, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.0004214/0.2727, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 4.441e-05/0.2728, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.000466/0.2732, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.0001088/0.2733, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.0001259/0.2735, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.0004048/0.2739, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 2.592e-05/0.2739, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 3.697e-06/0.2739, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 1.005e-05/0.2739, 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.001405/0.2753, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 6.919e-05/0.2754, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001411/0.2755, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001798/0.2757, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.000167/0.2759, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.371e-05/0.2759, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 5.42e-05/0.276, 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 m_flow_down m_flow_up state_b.T state_b.p state_a.T state_a.p HN X_down[1] X_up[1] rho_down[1] rho_up[1] rho_B rho_A dp p_b p_a 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 : p_a = TAeZoSysPro.FluidDynamics.Components.Orifices.OpeningAnalytic.Medium.pressure(state_a) + 9.80665 * $outputAlias_port_a.d[1] * (Alt_a - Alt_opening) 8 : p_b = TAeZoSysPro.FluidDynamics.Components.Orifices.OpeningAnalytic.Medium.pressure(state_b) + 9.80665 * $outputAlias_port_b.d[1] * (Alt_b - Alt_opening) 9 : dp = p_a - p_b 10 : h_a = TAeZoSysPro.FluidDynamics.Components.Orifices.OpeningAnalytic.Medium.specificEnthalpy(state_a) 11 : h_b = TAeZoSysPro.FluidDynamics.Components.Orifices.OpeningAnalytic.Medium.specificEnthalpy(state_b) 12 : rho_A = $outputAlias_port_a.d[1] 13 : rho_B = $outputAlias_port_b.d[1] 14 : rho_up = smooth(1, if dp - ($outputAlias_port_a.d[1] - $outputAlias_port_b.d[1]) * 9.80665 * (H - HN) > 0.0 then port_a.d else port_b.d) 15 : rho_down[1] = $outputAlias_port_a.d[1] + $outputAlias_port_b.d[1] - rho_up[1] 16 : X_up[1] = 1.0 17 : X_down[1] = $outputAlias_port_a.d[1] / rho_A + $outputAlias_port_b.d[1] / rho_B - X_up[1] 18 : HN = min(max(dp / ((rho_A - rho_B) * 9.80665) + 0.5 * H, 0.0), H) 19 : m_flow_up = 1.4142135623730951 * sqrt(rho_up[1]) * Cd * A * (Modelica.Fluid.Utilities.regRoot(dp, 0.001) * (H - HN) + (-0.6666666666666666) * Modelica.Fluid.Utilities.regRoot((rho_A - rho_B) * 9.80665, 0.001) * (H - HN) ^ 1.5) / H 20 : m_flow_down = 1.4142135623730951 * (0.6666666666666666 * Modelica.Fluid.Utilities.regRoot((rho_A - rho_B) * 9.80665, 0.001) * HN ^ 1.5 - Modelica.Fluid.Utilities.regRoot(dp, 0.001) * HN) * sqrt(rho_down[1]) * Cd * A / H 21 : port_a.m_flow[1] = m_flow_up * X_up[1] + m_flow_down * X_down[1] 22 : port_a.m_flow[1] + port_b.m_flow[1] = 0.0 23 : port_a.H_flow = semiLinear(m_flow_up, 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.00072/0.2767, allocations: 0 / 0, free: 0 / 0 Error: pre-optimization module clockPartitioning (simulation) failed. " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 1.1058994880877435]