Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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.001245/0.001245, allocations: 110.2 kB / 19.69 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.001367/0.001367, allocations: 219.1 kB / 23.01 MB, free: 4.566 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.339/1.339, allocations: 230.6 MB / 256.8 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.7121/0.7121, allocations: 100.3 MB / 413.5 MB, free: 3.66 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/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_dev_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_dev_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.002396/0.002396, allocations: 94.88 kB / 0.5645 GB, free: 35.6 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1126, allocations: 74.46 MB / 0.6372 GB, free: 7.172 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.07459/0.1872, allocations: 68.1 MB / 0.7037 GB, free: 2.828 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.03059/0.2178, allocations: 27.13 MB / 0.7302 GB, free: 7.613 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001057/0.2189, allocations: 59.44 kB / 0.7303 GB, free: 7.555 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001471/0.2203, allocations: 0.5082 MB / 0.7308 GB, free: 7.043 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.003596/0.2239, allocations: 1.301 MB / 0.732 GB, free: 5.734 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.004303/0.2282, allocations: 1.651 MB / 0.7336 GB, free: 4.078 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002637/0.2309, allocations: 1.954 MB / 0.7355 GB, free: 2.117 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004586/0.2313, allocations: 219.9 kB / 0.7358 GB, free: 1.891 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.3071/0.5384, allocations: 20.49 MB / 0.7558 GB, free: 19.1 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001287/0.5397, allocations: 0.8629 MB / 0.7566 GB, free: 19.1 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001989/0.5399, allocations: 120.7 kB / 0.7567 GB, free: 19.1 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2328/0.7727, allocations: 126.7 MB / 0.8805 GB, free: 15.5 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0008689/0.7735, allocations: 334.4 kB / 0.8808 GB, free: 15.24 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001227/0.7748, allocations: 0.6877 MB / 0.8814 GB, free: 14.77 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.00588/0.7806, allocations: 2.906 MB / 0.8843 GB, free: 12.18 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.7806, allocations: 4 kB / 0.8843 GB, free: 12.18 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.343e-06/0.7806, allocations: 0 / 0.8843 GB, free: 12.18 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 4.951e-05/0.7807, allocations: 0 / 0.8843 GB, free: 12.18 MB / 0.6544 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.004354/0.785, allocations: 1.994 MB / 0.8862 GB, free: 10.18 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.7851, allocations: 11.12 kB / 0.8862 GB, free: 10.17 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002847/0.7854, allocations: 165.3 kB / 0.8864 GB, free: 10.01 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001395/0.7868, allocations: 0.7935 MB / 0.8872 GB, free: 9.238 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002792/0.787, allocations: 354.9 kB / 0.8875 GB, free: 8.832 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001671/0.7872, allocations: 102.1 kB / 0.8876 GB, free: 8.734 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002466/0.7897, allocations: 1.461 MB / 0.889 GB, free: 7.23 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.17e-05/0.7897, allocations: 7.422 kB / 0.889 GB, free: 7.227 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.933e-05/0.7898, allocations: 41.69 kB / 0.8891 GB, free: 7.188 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.926e-05/0.7899, allocations: 41.98 kB / 0.8891 GB, free: 7.148 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003055/0.7929, allocations: 1.658 MB / 0.8907 GB, free: 5.496 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007722/0.8006, allocations: 5.146 MB / 0.8958 GB, free: 240 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002647/0.8033, allocations: 1.207 MB / 0.897 GB, free: 15.02 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001388/0.8047, allocations: 0.7366 MB / 0.8977 GB, free: 14.29 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001458/0.8061, allocations: 412.1 kB / 0.8981 GB, free: 13.91 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.246e-05/0.8062, allocations: 51.55 kB / 0.8981 GB, free: 13.85 MB / 0.67 GB Notification: Performance of pre-optimization done (n=131): time 2.875e-06/0.8062, allocations: 0 / 0.8981 GB, free: 13.85 MB / 0.67 GB Notification: Performance of matching and sorting (n=134): time 0.009165/0.8153, allocations: 4.178 MB / 0.9022 GB, free: 9.695 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.972e-05/0.8154, allocations: 93.77 kB / 0.9023 GB, free: 9.59 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009565/0.8164, allocations: 0.7657 MB / 0.903 GB, free: 8.801 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 8.736e-05/0.8164, allocations: 46.64 kB / 0.9031 GB, free: 8.75 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003701/0.8168, allocations: 449.9 kB / 0.9035 GB, free: 8.305 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004102/0.8172, allocations: 496.7 kB / 0.904 GB, free: 7.828 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003494/0.8176, allocations: 218.9 kB / 0.9042 GB, free: 7.609 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001453/0.8177, allocations: 353.9 kB / 0.9045 GB, free: 7.258 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001161/0.8189, allocations: 0.5647 MB / 0.9051 GB, free: 6.695 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001329/0.8202, allocations: 0.7101 MB / 0.9058 GB, free: 5.953 MB / 0.67 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.002774/0.823, allocations: 1.357 MB / 0.9071 GB, free: 4.582 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.823, allocations: 3.938 kB / 0.9071 GB, free: 4.578 MB / 0.67 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003817/0.8268, allocations: 1.851 MB / 0.9089 GB, free: 2.738 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.8268, allocations: 13.16 kB / 0.9089 GB, free: 2.727 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.048e-05/0.8269, allocations: 11.98 kB / 0.9089 GB, free: 2.715 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002419/0.8293, allocations: 0.6085 MB / 0.9095 GB, free: 2.105 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000929/0.8302, allocations: 201.9 kB / 0.9097 GB, free: 1.918 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002948/0.8332, allocations: 2.689 MB / 0.9123 GB, free: 15.11 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008248/0.834, allocations: 55.91 kB / 0.9124 GB, free: 15.05 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001358/0.8341, allocations: 59.95 kB / 0.9125 GB, free: 15 MB / 0.6856 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.0005362/0.8347, allocations: 277.5 kB / 0.9127 GB, free: 14.73 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002922/0.8349, allocations: 127.2 kB / 0.9128 GB, free: 14.6 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004514/0.8395, allocations: 2.312 MB / 0.9151 GB, free: 12.3 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.524e-05/0.8395, allocations: 15.98 kB / 0.9151 GB, free: 12.29 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/0.8395, allocations: 4 kB / 0.9151 GB, free: 12.28 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.236e-05/0.8395, allocations: 3.984 kB / 0.9151 GB, free: 12.28 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005277/0.8448, allocations: 2.94 MB / 0.918 GB, free: 9.328 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.262e-05/0.8448, allocations: 12.06 kB / 0.918 GB, free: 9.316 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001009/0.8458, allocations: 202.8 kB / 0.9182 GB, free: 9.125 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007685/0.8466, allocations: 295 kB / 0.9185 GB, free: 8.836 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001153/0.8467, allocations: 47.95 kB / 0.9185 GB, free: 8.789 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005105/0.8518, allocations: 4.412 MB / 0.9228 GB, free: 4.184 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.8518, allocations: 0 / 0.9228 GB, free: 4.184 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004996/0.8568, allocations: 2.564 MB / 0.9253 GB, free: 1.609 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005493/0.8573, allocations: 239 kB / 0.9256 GB, free: 1.375 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001979/0.8575, allocations: 32.44 kB / 0.9256 GB, free: 1.344 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007483/0.8583, allocations: 43.97 kB / 0.9256 GB, free: 1.301 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000177/0.8585, allocations: 104.7 kB / 0.9257 GB, free: 1.195 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001043/0.8586, allocations: 47.95 kB / 0.9258 GB, free: 1.148 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0007653/0.8593, allocations: 0.5802 MB / 0.9263 GB, free: 0.5586 MB / 0.6856 GB Notification: Performance of sort global known variables: time 9e-08/0.8593, allocations: 0 / 0.9263 GB, free: 0.5586 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001656/0.861, allocations: 0.6899 MB / 0.927 GB, free: 15.87 MB / 0.7012 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.001506/0.8625, allocations: 0.8202 MB / 0.9278 GB, free: 15.13 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.003529/0.866, allocations: 1.692 MB / 0.9295 GB, free: 13.41 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/0.866, allocations: 4.188 kB / 0.9295 GB, free: 13.41 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.002166/0.8682, allocations: 1.247 MB / 0.9307 GB, free: 12.13 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001751/0.8699, allocations: 417.2 kB / 0.9311 GB, free: 11.75 MB / 0.7012 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.005434/0.8754, allocations: 2.93 MB / 0.934 GB, free: 8.82 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008373/0.8762, allocations: 1.132 MB / 0.9351 GB, free: 7.66 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004508/0.8767, allocations: 139.3 kB / 0.9352 GB, free: 7.527 MB / 0.7012 GB Notification: Performance of SimCode: time 7.22e-07/0.8767, allocations: 0 / 0.9352 GB, free: 7.527 MB / 0.7012 GB Notification: Performance of Templates: time 0.04464/0.9213, allocations: 33.83 MB / 0.9682 GB, free: 5.836 MB / 0.7325 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.sim & ./ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_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_dev_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.708663210039958]