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.001817/0.001817, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.00235/0.00235, allocations: 212.7 kB / 22.99 MB, free: 4.941 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.43/1.43, allocations: 230.6 MB / 256.8 MB, free: 7.789 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.7196/0.7196, allocations: 94.62 MB / 407.8 MB, free: 9.348 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.00254/0.00254, allocations: 90.67 kB / 0.5562 GB, free: 38.04 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1054, allocations: 73.04 MB / 0.6275 GB, free: 15.71 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.07577/0.1811, allocations: 60.84 MB / 0.6869 GB, free: 2.672 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.03272/0.2138, allocations: 24.37 MB / 0.7107 GB, free: 10.23 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001048/0.2149, allocations: 59.44 kB / 0.7108 GB, free: 10.17 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001484/0.2164, allocations: 468.7 kB / 0.7112 GB, free: 9.707 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.003816/0.2202, allocations: 1.274 MB / 0.7125 GB, free: 8.426 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004233/0.2244, allocations: 1.641 MB / 0.7141 GB, free: 6.781 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.002547/0.227, allocations: 1.95 MB / 0.716 GB, free: 4.82 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004088/0.2274, allocations: 203.9 kB / 0.7162 GB, free: 4.613 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.04448/0.2719, allocations: 20.45 MB / 0.7361 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00139/0.2732, allocations: 0.809 MB / 0.7369 GB, free: 15.18 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002393/0.2735, allocations: 120 kB / 0.737 GB, free: 15.06 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.4917/0.7652, allocations: 126.2 MB / 0.8602 GB, free: 2.477 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0005761/0.7657, allocations: 331.8 kB / 0.8606 GB, free: 2.223 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0007511/0.7665, allocations: 0.5684 MB / 0.8611 GB, free: 1.82 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.004839/0.7713, allocations: 2.794 MB / 0.8638 GB, free: 15.39 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.7713, allocations: 4.844 kB / 0.8638 GB, free: 15.39 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.282e-06/0.7713, allocations: 0 / 0.8638 GB, free: 15.39 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 2.086e-05/0.7714, allocations: 0 / 0.8638 GB, free: 15.39 MB / 0.6231 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.004254/0.7756, allocations: 1.995 MB / 0.8658 GB, free: 13.4 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.7757, allocations: 15.41 kB / 0.8658 GB, free: 13.39 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01062/0.7863, allocations: 1.794 MB / 0.8676 GB, free: 11.59 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002039/0.7883, allocations: 0.9501 MB / 0.8685 GB, free: 10.67 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002968/0.7886, allocations: 351 kB / 0.8688 GB, free: 10.27 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002655/0.7889, allocations: 107.9 kB / 0.8689 GB, free: 10.16 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003881/0.7928, allocations: 2.302 MB / 0.8712 GB, free: 7.793 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.114e-05/0.7928, allocations: 4 kB / 0.8712 GB, free: 7.789 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001471/0.7929, allocations: 40 kB / 0.8712 GB, free: 7.75 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.445e-05/0.793, allocations: 42 kB / 0.8713 GB, free: 7.711 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004377/0.7974, allocations: 2.349 MB / 0.8736 GB, free: 5.367 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01191/0.8093, allocations: 5.987 MB / 0.8794 GB, free: 15.43 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003255/0.8125, allocations: 1.363 MB / 0.8807 GB, free: 14.05 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001828/0.8144, allocations: 0.8962 MB / 0.8816 GB, free: 13.16 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008756/0.8152, allocations: 233.7 kB / 0.8818 GB, free: 12.94 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.797e-05/0.8153, allocations: 61.92 kB / 0.8819 GB, free: 12.87 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=131): time 3.506e-06/0.8153, allocations: 4 kB / 0.8819 GB, free: 12.87 MB / 0.6387 GB Notification: Performance of matching and sorting (n=134): time 0.01266/0.828, allocations: 5.116 MB / 0.8869 GB, free: 7.742 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.485e-05/0.828, allocations: 94.05 kB / 0.887 GB, free: 7.633 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000779/0.8288, allocations: 0.6261 MB / 0.8876 GB, free: 7 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001709/0.829, allocations: 49.7 kB / 0.8876 GB, free: 6.945 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003698/0.8293, allocations: 465.6 kB / 0.8881 GB, free: 6.488 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004743/0.8298, allocations: 485.4 kB / 0.8885 GB, free: 6.02 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005638/0.8304, allocations: 326.7 kB / 0.8889 GB, free: 5.695 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001737/0.8305, allocations: 349.9 kB / 0.8892 GB, free: 5.348 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001623/0.8322, allocations: 0.7248 MB / 0.8899 GB, free: 4.625 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001849/0.834, allocations: 0.8673 MB / 0.8907 GB, free: 3.73 MB / 0.6387 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.003884/0.8379, allocations: 1.683 MB / 0.8924 GB, free: 2.031 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.8379, allocations: 4 kB / 0.8924 GB, free: 2.027 MB / 0.6387 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.005786/0.8437, allocations: 2.325 MB / 0.8947 GB, free: 15.71 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.8437, allocations: 10.03 kB / 0.8947 GB, free: 15.71 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02994/0.8737, allocations: 3.314 MB / 0.8979 GB, free: 12.41 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02489/0.8985, allocations: 1.652 MB / 0.8995 GB, free: 10.76 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001639/0.9002, allocations: 289.6 kB / 0.8998 GB, free: 10.49 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004091/0.9043, allocations: 2.97 MB / 0.9027 GB, free: 7.406 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001545/0.9058, allocations: 72.02 kB / 0.9028 GB, free: 7.336 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002432/0.9061, allocations: 111.8 kB / 0.9029 GB, free: 7.227 MB / 0.6544 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 (107): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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,36)} Notification: Performance of prepare postOptimizeDAE: time 0.000681/0.9067, allocations: 281.8 kB / 0.9031 GB, free: 6.957 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004181/0.9072, allocations: 115.3 kB / 0.9033 GB, free: 6.844 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005818/0.913, allocations: 2.732 MB / 0.9059 GB, free: 4.125 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.594e-05/0.913, allocations: 12 kB / 0.9059 GB, free: 4.113 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.913, allocations: 4 kB / 0.9059 GB, free: 4.109 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.913, allocations: 3.984 kB / 0.9059 GB, free: 4.105 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006162/0.9192, allocations: 2.813 MB / 0.9087 GB, free: 1.297 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.003582/0.9228, allocations: 1.596 MB / 0.9102 GB, free: 15.7 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001585/0.9243, allocations: 244.4 kB / 0.9105 GB, free: 15.47 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007639/0.9251, allocations: 289 kB / 0.9108 GB, free: 15.18 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001339/0.9252, allocations: 51.92 kB / 0.9108 GB, free: 15.13 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005287/0.9305, allocations: 4.313 MB / 0.915 GB, free: 10.66 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.9305, allocations: 0 / 0.915 GB, free: 10.66 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006161/0.9367, allocations: 2.7 MB / 0.9176 GB, free: 7.945 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006642/0.9374, allocations: 231 kB / 0.9179 GB, free: 7.719 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002033/0.9376, allocations: 38.58 kB / 0.9179 GB, free: 7.684 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/0.9387, allocations: 62.06 kB / 0.918 GB, free: 7.625 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002301/0.9389, allocations: 96.78 kB / 0.9181 GB, free: 7.531 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001261/0.9391, allocations: 59.94 kB / 0.9181 GB, free: 7.473 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0006943/0.9398, allocations: 0.5189 MB / 0.9186 GB, free: 6.941 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.01e-07/0.9398, allocations: 0 / 0.9186 GB, free: 6.941 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001556/0.9413, allocations: 0.4917 MB / 0.9191 GB, free: 6.449 MB / 0.67 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 (103): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0008951/0.9422, allocations: 0.5287 MB / 0.9196 GB, free: 5.98 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.004271/0.9465, allocations: 1.829 MB / 0.9214 GB, free: 4.16 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.9465, allocations: 0 / 0.9214 GB, free: 4.16 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.002408/0.9489, allocations: 1.165 MB / 0.9225 GB, free: 2.992 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001553/0.9504, allocations: 336.9 kB / 0.9229 GB, free: 2.691 MB / 0.67 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10546:11-10546: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:10546:11-10546: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.005715/0.9562, allocations: 3.01 MB / 0.9258 GB, free: 15.69 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005829/0.9567, allocations: 0.5449 MB / 0.9263 GB, free: 15.1 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007211/0.9575, allocations: 183.2 kB / 0.9265 GB, free: 14.92 MB / 0.6856 GB Notification: Performance of SimCode: time 5.51e-07/0.9575, allocations: 0 / 0.9265 GB, free: 14.92 MB / 0.6856 GB Notification: Performance of Templates: time 0.05019/1.008, allocations: 38.6 MB / 0.9642 GB, free: 8.516 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.907248611096293]