Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Examples.VenturiPump.conf.json 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/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/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Examples.VenturiPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sink2_1.inlet.m_flow|source2_2.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Examples.VenturiPump") translateModel(ThermofluidStream.Examples.VenturiPump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sink2_1.inlet.m_flow|source2_2.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Examples.VenturiPump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001507/0.001507, allocations: 116.8 kB / 16.42 MB, free: 6.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001674/0.001674, allocations: 186.6 kB / 17.35 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6662/0.6662, allocations: 91.18 MB / 382.4 MB, free: 7.512 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 83.86 kB / 0.5175 GB, free: 4.102 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2783/0.28, allocations: 67.68 MB / 0.5836 GB, free: 13.92 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.VenturiPump): time 0.0898/0.3698, allocations: 100.2 MB / 0.6814 GB, free: 9.672 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.03718/0.407, allocations: 33.85 MB / 0.7145 GB, free: 7.707 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001295/0.4084, allocations: 59.62 kB / 0.7145 GB, free: 7.648 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002793/0.4112, allocations: 1.091 MB / 0.7156 GB, free: 6.551 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.004814/0.4161, allocations: 1.804 MB / 0.7174 GB, free: 4.738 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.01714/0.4332, allocations: 6.569 MB / 0.7238 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003033/0.4363, allocations: 2.261 MB / 0.726 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009962/0.4373, allocations: 0.5738 MB / 0.7265 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009592/0.4469, allocations: 4.121 MB / 0.7306 GB, free: 7.105 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00144/0.4484, allocations: 0.9334 MB / 0.7315 GB, free: 6.168 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0004449/0.4488, allocations: 144 kB / 0.7316 GB, free: 6.027 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2853/0.7342, allocations: 8.734 MB / 0.7401 GB, free: 16.64 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004702/0.7347, allocations: 342.7 kB / 0.7405 GB, free: 16.64 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001017/0.7357, allocations: 0.8574 MB / 0.7413 GB, free: 16.64 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.01618/0.7519, allocations: 6.801 MB / 0.748 GB, free: 16.54 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.7519, allocations: 2.938 kB / 0.748 GB, free: 16.54 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.252e-06/0.7519, allocations: 0.5312 kB / 0.748 GB, free: 16.54 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.941e-05/0.752, allocations: 0 / 0.748 GB, free: 16.54 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 323 * Number of variables: 323 Notification: Performance of Generate backend data structure: time 0.007913/0.7599, allocations: 2.824 MB / 0.7507 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.76, allocations: 15.05 kB / 0.7507 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001141/0.7611, allocations: 297.3 kB / 0.751 GB, free: 15.19 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001921/0.763, allocations: 1.129 MB / 0.7521 GB, free: 14.8 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.465e-05/0.7631, allocations: 94.14 kB / 0.7522 GB, free: 14.8 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001761/0.7633, allocations: 121.3 kB / 0.7523 GB, free: 14.8 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002705/0.766, allocations: 1.516 MB / 0.7538 GB, free: 14.65 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.676e-05/0.766, allocations: 0 / 0.7538 GB, free: 14.65 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001048/0.7662, allocations: 54.31 kB / 0.7539 GB, free: 14.65 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.294e-05/0.7662, allocations: 53.38 kB / 0.7539 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002371/0.7686, allocations: 1.284 MB / 0.7552 GB, free: 14.63 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00679/0.7754, allocations: 7.211 MB / 0.7622 GB, free: 10.38 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002261/0.7777, allocations: 1.028 MB / 0.7632 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000705/0.7784, allocations: 0.5164 MB / 0.7637 GB, free: 10.33 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09778/0.8762, allocations: 51.82 MB / 0.8143 GB, free: 4.711 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.42e-05/0.8763, allocations: 43.05 kB / 0.8144 GB, free: 4.664 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=89): time 2.885e-06/0.8763, allocations: 0 / 0.8144 GB, free: 4.664 MB / 0.6075 GB Notification: Performance of matching and sorting (n=90): time 0.006839/0.8831, allocations: 3.3 MB / 0.8176 GB, free: 2.199 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.602e-05/0.8832, allocations: 60.41 kB / 0.8176 GB, free: 2.129 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001054/0.8842, allocations: 0.9356 MB / 0.8186 GB, free: 1.41 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 6.58e-05/0.8843, allocations: 40.77 kB / 0.8186 GB, free: 1.375 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.00037/0.8847, allocations: 0.6332 MB / 0.8192 GB, free: 1 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002266/0.8849, allocations: 315.4 kB / 0.8195 GB, free: 0.7344 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002733/0.8852, allocations: 165.6 kB / 0.8197 GB, free: 0.6289 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001119/0.8853, allocations: 338.1 kB / 0.82 GB, free: 312 kB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005466/0.8859, allocations: 339.3 kB / 0.8203 GB, free: 104 kB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006428/0.8865, allocations: 465.6 kB / 0.8208 GB, free: 15.76 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001244/0.8878, allocations: 0.8578 MB / 0.8216 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.8878, allocations: 6.719 kB / 0.8216 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of matching and sorting (n=103) (initialization): time 0.001988/0.8898, allocations: 1.173 MB / 0.8227 GB, free: 14.43 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.8898, allocations: 10.97 kB / 0.8228 GB, free: 14.42 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.8898, allocations: 4.344 kB / 0.8228 GB, free: 14.41 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005144/0.8904, allocations: 163.4 kB / 0.8229 GB, free: 14.29 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006872/0.8911, allocations: 165.8 kB / 0.8231 GB, free: 14.14 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003057/0.8941, allocations: 2.714 MB / 0.8257 GB, free: 11.89 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006111/0.8947, allocations: 25.97 kB / 0.8257 GB, free: 11.88 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-05/0.8948, allocations: 33.73 kB / 0.8258 GB, free: 11.86 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 10 (source2_2.outlet.state.phase,dynamicPressureInflow2.outlet.state.phase,dynamicPressureOutflow.outlet.state.phase,dynamicPressureInflow.outlet.state.phase,source2_1.outlet.state.phase,dynamicJunctionN2_1.dynamicPressureInflow.outlet.state.phase,dynamicJunctionN2_1.junction.outlet.state.phase,checkValve.outlet.state.phase,flowResistance1.outlet.state.phase,flowResistance.outlet.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,13,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005106/0.8953, allocations: 304.5 kB / 0.8261 GB, free: 11.65 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002082/0.8956, allocations: 122.4 kB / 0.8262 GB, free: 11.53 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003534/0.8991, allocations: 2.921 MB / 0.829 GB, free: 9.711 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.452e-05/0.8991, allocations: 7.969 kB / 0.829 GB, free: 9.703 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.8991, allocations: 4 kB / 0.8291 GB, free: 9.699 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003266/0.8995, allocations: 234.4 kB / 0.8293 GB, free: 9.457 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000169/0.8996, allocations: 37.92 kB / 0.8293 GB, free: 9.438 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004804/0.9001, allocations: 30.98 kB / 0.8293 GB, free: 9.422 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001284/0.9003, allocations: 72.75 kB / 0.8294 GB, free: 9.355 MB / 0.6231 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002857/0.9031, allocations: 1.779 MB / 0.8311 GB, free: 8.16 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003028/0.9062, allocations: 2.555 MB / 0.8336 GB, free: 6.52 MB / 0.6231 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000789/0.907, allocations: 0.7421 MB / 0.8344 GB, free: 6.125 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0009004/0.9079, allocations: 0.7297 MB / 0.8351 GB, free: 5.582 MB / 0.6231 GB Notification: Performance of Backend: time 1.162e-06/0.9079, allocations: 0 / 0.8351 GB, free: 5.582 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.009371/0.9173, allocations: 2.891 MB / 0.8379 GB, free: 3.191 MB / 0.6231 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10371:11-10371:220:writable] Error: Internal error Unexpected expression (should have been handled earlier, probably in the front-end. Unit/displayUnit expression is not a string literal: ThermofluidStream.Sensors.Internal.getFlowUnit(singleFlowSensor8.quantity) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10371:11-10371:220:writable] Error: Internal error Unexpected expression (should have been handled earlier, probably in the front-end. Unit/displayUnit expression is not a string literal: ThermofluidStream.Sensors.Internal.getFlowUnit(singleFlowSensor1.quantity) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10371:11-10371:220:writable] Error: Internal error Unexpected expression (should have been handled earlier, probably in the front-end. Unit/displayUnit expression is not a string literal: ThermofluidStream.Sensors.Internal.getFlowUnit(singleFlowSensor.quantity) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10371:11-10371:220:writable] Error: Internal error Unexpected expression (should have been handled earlier, probably in the front-end. Unit/displayUnit expression is not a string literal: ThermofluidStream.Sensors.Internal.getFlowUnit(singleFlowSensor1.quantity) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10371:11-10371:220:writable] Error: Internal error Unexpected expression (should have been handled earlier, probably in the front-end. Unit/displayUnit expression is not a string literal: ThermofluidStream.Sensors.Internal.getFlowUnit(singleFlowSensor8.quantity) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10371:11-10371:220:writable] Error: Internal error Unexpected expression (should have been handled earlier, probably in the front-end. Unit/displayUnit expression is not a string literal: ThermofluidStream.Sensors.Internal.getFlowUnit(singleFlowSensor1.quantity) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10371:11-10371:220:writable] Error: Internal error Unexpected expression (should have been handled earlier, probably in the front-end. Unit/displayUnit expression is not a string literal: ThermofluidStream.Sensors.Internal.getFlowUnit(singleFlowSensor.quantity) Notification: Performance of SimCode: time 0.005206/0.9225, allocations: 3.383 MB / 0.8412 GB, free: 4 kB / 0.6231 GB Notification: Performance of Templates: time 0.08597/1.008, allocations: 65.22 MB / 0.9049 GB, free: 15.34 MB / 0.7012 GB make -j1 -f ThermofluidStream_ThermofluidStream.Examples.VenturiPump.makefile (rm -f ThermofluidStream_ThermofluidStream.Examples.VenturiPump.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Examples.VenturiPump.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Examples.VenturiPump.pipe >> ../files/ThermofluidStream_ThermofluidStream.Examples.VenturiPump.sim & ./ThermofluidStream_ThermofluidStream.Examples.VenturiPump -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Examples.VenturiPump.pipe 2>&1)