Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 102.1 kB / 19.7 MB, free: 2.254 MB / 14.72 MB " [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.001369/0.001369, allocations: 219 kB / 23.01 MB, free: 4.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.345/1.345, allocations: 230.6 MB / 256.8 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.6842/0.6842, allocations: 94.55 MB / 407.7 MB, free: 9.184 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: translateModel(ThermofluidStream.Processes.Tests.Pump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|pump.m_flow|pump1.m_flow|pump1.omega|pump1.phi|pump2.m_flow|pump3.m_flow|pump3.omega|pump3.phi|pump4.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Processes.Tests.Pump") translateModel(ThermofluidStream.Processes.Tests.Pump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|pump.m_flow|pump1.m_flow|pump1.omega|pump1.phi|pump2.m_flow|pump3.m_flow|pump3.omega|pump3.phi|pump4.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Processes.Tests.Pump") [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002373/0.002373, allocations: 89.03 kB / 0.5562 GB, free: 38.51 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1065, allocations: 73.04 MB / 0.6275 GB, free: 15.96 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.07376/0.1802, allocations: 68.12 MB / 0.694 GB, free: 11.61 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02924/0.2095, allocations: 27.12 MB / 0.7205 GB, free: 424 kB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009908/0.2105, allocations: 59.5 kB / 0.7206 GB, free: 364 kB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001302/0.2118, allocations: 0.5083 MB / 0.7211 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.003347/0.2151, allocations: 1.309 MB / 0.7223 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003999/0.2191, allocations: 1.667 MB / 0.724 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002413/0.2215, allocations: 1.946 MB / 0.7259 GB, free: 10.9 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003849/0.2219, allocations: 215.9 kB / 0.7261 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.04231/0.2642, allocations: 20.5 MB / 0.7461 GB, free: 6.008 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001379/0.2656, allocations: 0.8598 MB / 0.7469 GB, free: 5.145 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002417/0.2658, allocations: 120 kB / 0.7471 GB, free: 5.027 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.4953/0.7611, allocations: 126.7 MB / 0.8708 GB, free: 15.05 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0005534/0.7617, allocations: 330.2 kB / 0.8711 GB, free: 14.8 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0008237/0.7625, allocations: 0.6897 MB / 0.8718 GB, free: 14.33 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.005354/0.7679, allocations: 2.908 MB / 0.8746 GB, free: 11.79 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.7679, allocations: 0 / 0.8746 GB, free: 11.79 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.472e-06/0.7679, allocations: 0 / 0.8746 GB, free: 11.79 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 1.713e-05/0.7679, allocations: 2.188 kB / 0.8746 GB, free: 11.79 MB / 0.6387 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.004062/0.772, allocations: 2.005 MB / 0.8766 GB, free: 9.785 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.772, allocations: 8.031 kB / 0.8766 GB, free: 9.777 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002868/0.7723, allocations: 157.3 kB / 0.8767 GB, free: 9.625 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001375/0.7737, allocations: 0.7899 MB / 0.8775 GB, free: 8.863 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002649/0.7739, allocations: 354.9 kB / 0.8778 GB, free: 8.457 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001703/0.7741, allocations: 108 kB / 0.8779 GB, free: 8.352 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002454/0.7765, allocations: 1.456 MB / 0.8794 GB, free: 6.859 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.574e-05/0.7766, allocations: 4 kB / 0.8794 GB, free: 6.855 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.611e-05/0.7767, allocations: 36 kB / 0.8794 GB, free: 6.82 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-05/0.7767, allocations: 45.98 kB / 0.8794 GB, free: 6.777 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003073/0.7798, allocations: 1.66 MB / 0.8811 GB, free: 5.125 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007742/0.7875, allocations: 5.15 MB / 0.8861 GB, free: 15.87 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002578/0.7901, allocations: 1.205 MB / 0.8873 GB, free: 14.66 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001359/0.7915, allocations: 0.7429 MB / 0.888 GB, free: 13.91 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001477/0.793, allocations: 392.9 kB / 0.8884 GB, free: 13.55 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.699e-05/0.793, allocations: 52.64 kB / 0.8884 GB, free: 13.49 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=131): time 3.957e-06/0.793, allocations: 0 / 0.8884 GB, free: 13.49 MB / 0.6544 GB Notification: Performance of matching and sorting (n=134): time 0.008936/0.8019, allocations: 4.199 MB / 0.8925 GB, free: 9.324 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.459e-05/0.802, allocations: 90.11 kB / 0.8926 GB, free: 9.219 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009201/0.8029, allocations: 0.7579 MB / 0.8934 GB, free: 8.438 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 9.359e-05/0.803, allocations: 53.7 kB / 0.8934 GB, free: 8.379 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.000345/0.8034, allocations: 451.8 kB / 0.8938 GB, free: 7.934 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003803/0.8037, allocations: 489.7 kB / 0.8943 GB, free: 7.461 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000336/0.8041, allocations: 222.9 kB / 0.8945 GB, free: 7.238 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001571/0.8042, allocations: 357 kB / 0.8949 GB, free: 6.887 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001176/0.8054, allocations: 0.5647 MB / 0.8954 GB, free: 6.324 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001327/0.8067, allocations: 0.7057 MB / 0.8961 GB, free: 5.59 MB / 0.6544 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: $DER.pump.omega = pump.omega_dot_0 (0.0 = pump.omega_dot_0) Notification: Performance of analyzeInitialSystem (initialization): time 0.002654/0.8094, allocations: 1.354 MB / 0.8974 GB, free: 4.215 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.8094, allocations: 7.938 kB / 0.8974 GB, free: 4.207 MB / 0.6544 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003714/0.8131, allocations: 1.843 MB / 0.8992 GB, free: 2.375 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.8131, allocations: 11.38 kB / 0.8992 GB, free: 2.367 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.343e-05/0.8132, allocations: 19.98 kB / 0.8993 GB, free: 2.348 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002364/0.8155, allocations: 0.6052 MB / 0.8998 GB, free: 1.746 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009255/0.8165, allocations: 201.9 kB / 0.9 GB, free: 1.559 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002875/0.8193, allocations: 2.692 MB / 0.9027 GB, free: 14.74 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007969/0.8201, allocations: 59.91 kB / 0.9027 GB, free: 14.68 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001081/0.8202, allocations: 59.95 kB / 0.9028 GB, free: 14.62 MB / 0.67 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.pump.omega = pump.omega_dot_0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (103): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,35)} Notification: Performance of prepare postOptimizeDAE: time 0.0004823/0.8207, allocations: 272.9 kB / 0.903 GB, free: 14.36 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002417/0.821, allocations: 127.2 kB / 0.9032 GB, free: 14.23 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00438/0.8253, allocations: 2.306 MB / 0.9054 GB, free: 11.93 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.485e-05/0.8254, allocations: 12 kB / 0.9054 GB, free: 11.92 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.8254, allocations: 7.984 kB / 0.9054 GB, free: 11.91 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.248e-05/0.8254, allocations: 6.5 kB / 0.9054 GB, free: 11.91 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005079/0.8305, allocations: 2.95 MB / 0.9083 GB, free: 8.949 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.301e-05/0.8305, allocations: 8 kB / 0.9083 GB, free: 8.941 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001011/0.8315, allocations: 202.4 kB / 0.9085 GB, free: 8.754 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000738/0.8322, allocations: 295.5 kB / 0.9088 GB, free: 8.461 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001018/0.8323, allocations: 48.8 kB / 0.9089 GB, free: 8.414 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004976/0.8373, allocations: 4.415 MB / 0.9132 GB, free: 3.812 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.8373, allocations: 0 / 0.9132 GB, free: 3.812 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004953/0.8423, allocations: 2.572 MB / 0.9157 GB, free: 1.234 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005451/0.8428, allocations: 239 kB / 0.9159 GB, free: 1 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001655/0.843, allocations: 24 kB / 0.9159 GB, free: 0.9766 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006968/0.8437, allocations: 47.95 kB / 0.916 GB, free: 0.9297 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001877/0.8439, allocations: 100.7 kB / 0.9161 GB, free: 0.8281 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.75e-05/0.8439, allocations: 51.95 kB / 0.9161 GB, free: 0.7773 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0007336/0.8447, allocations: 0.5802 MB / 0.9167 GB, free: 192 kB / 0.67 GB Notification: Performance of sort global known variables: time 8e-08/0.8447, allocations: 0 / 0.9167 GB, free: 192 kB / 0.67 GB Notification: Performance of remove unused functions: time 0.001632/0.8463, allocations: 0.6826 MB / 0.9173 GB, free: 15.5 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 9 (pump4.m_flow,pump.m_flow,pump1.m_flow,pump1.phi,pump1.omega,pump2.m_flow,pump3.m_flow,pump3.phi,pump3.omega) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (5,17,76.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001293/0.8476, allocations: 0.8237 MB / 0.9182 GB, free: 14.76 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.003484/0.8511, allocations: 1.689 MB / 0.9198 GB, free: 13.05 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.8511, allocations: 0 / 0.9198 GB, free: 13.05 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.00217/0.8533, allocations: 1.243 MB / 0.921 GB, free: 11.78 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001796/0.8551, allocations: 419.9 kB / 0.9214 GB, free: 11.39 MB / 0.6856 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10487:11-10487: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(pump3.outputQuantity) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10487:11-10487: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(pump4.outputQuantity) Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005169/0.8602, allocations: 2.936 MB / 0.9243 GB, free: 8.473 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007323/0.861, allocations: 1.128 MB / 0.9254 GB, free: 7.316 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004445/0.8614, allocations: 147.3 kB / 0.9255 GB, free: 7.172 MB / 0.6856 GB Notification: Performance of SimCode: time 6.91e-07/0.8614, allocations: 1.094 kB / 0.9255 GB, free: 7.172 MB / 0.6856 GB Notification: Performance of Templates: time 0.04187/0.9033, allocations: 33.85 MB / 0.9586 GB, free: 5.469 MB / 0.7169 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.pipe >> ../files/ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.sim & ./ThermofluidStream_ThermofluidStream.Processes.Tests.Pump -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_ThermofluidStream.Processes.Tests.Pump_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Processes.Tests.Pump_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.825943065807223]