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.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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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.Processes.Tests.Pump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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=2000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001312/0.001313, allocations: 110.4 kB / 15.99 MB, free: 6.367 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.001306/0.001307, allocations: 191.5 kB / 16.91 MB, free: 6.195 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.392/1.392, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6974/0.6974, allocations: 89.45 MB / 380.2 MB, free: 8.672 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002269/0.002269, allocations: 79.88 kB / 458.4 MB, free: 11.61 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.122, allocations: 67.3 MB / 0.5133 GB, free: 8.238 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.2396/0.3617, allocations: 67.57 MB / 0.5793 GB, free: 8.137 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02757/0.3893, allocations: 26.66 MB / 0.6053 GB, free: 5.008 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001545/0.3909, allocations: 19.47 kB / 0.6054 GB, free: 5 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001527/0.3924, allocations: 446.9 kB / 0.6058 GB, free: 4.758 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004221/0.3967, allocations: 1.113 MB / 0.6069 GB, free: 4.066 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004678/0.4014, allocations: 1.509 MB / 0.6083 GB, free: 3.07 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002663/0.4041, allocations: 1.791 MB / 0.6101 GB, free: 2.031 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005413/0.4046, allocations: 342.5 kB / 0.6104 GB, free: 1.883 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.04462/0.4493, allocations: 19.92 MB / 0.6299 GB, free: 1.059 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001369/0.4507, allocations: 0.8328 MB / 0.6307 GB, free: 228 kB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000227/0.4509, allocations: 124 kB / 0.6308 GB, free: 104 kB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.5065/0.9574, allocations: 127.8 MB / 0.7557 GB, free: 120.9 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005227/0.958, allocations: 327.3 kB / 0.756 GB, free: 120.9 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001078/0.959, allocations: 0.6547 MB / 0.7566 GB, free: 120.9 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.00384/0.9629, allocations: 1.988 MB / 0.7586 GB, free: 120.8 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 9.217e-06/0.9629, allocations: 5.438 kB / 0.7586 GB, free: 120.8 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.583e-06/0.9629, allocations: 1.312 kB / 0.7586 GB, free: 120.8 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.408e-05/0.963, allocations: 0 / 0.7586 GB, free: 120.8 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: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.004857/0.9678, allocations: 1.891 MB / 0.7604 GB, free: 120 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.9679, allocations: 9.281 kB / 0.7604 GB, free: 120 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004244/0.9683, allocations: 131.6 kB / 0.7605 GB, free: 120 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001018/0.9694, allocations: 0.6396 MB / 0.7612 GB, free: 119.7 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001737/0.9695, allocations: 218 kB / 0.7614 GB, free: 119.5 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002097/0.9698, allocations: 103 kB / 0.7615 GB, free: 119.5 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002897/0.9727, allocations: 1.45 MB / 0.7629 GB, free: 119.4 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.526e-05/0.9727, allocations: 3.953 kB / 0.7629 GB, free: 119.4 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001287/0.9729, allocations: 39.12 kB / 0.7629 GB, free: 119.4 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.766e-05/0.9729, allocations: 42.27 kB / 0.763 GB, free: 119.4 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003471/0.9764, allocations: 1.632 MB / 0.7646 GB, free: 119.3 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008501/0.9849, allocations: 5.178 MB / 0.7696 GB, free: 117.3 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002844/0.9878, allocations: 1.266 MB / 0.7709 GB, free: 117.2 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00141/0.9893, allocations: 0.793 MB / 0.7716 GB, free: 117.2 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002227/0.9915, allocations: 4.204 MB / 0.7757 GB, free: 112.4 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.552e-05/0.9916, allocations: 53.16 kB / 0.7758 GB, free: 112.3 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=131): time 5.14e-06/0.9916, allocations: 2.984 kB / 0.7758 GB, free: 112.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=134): time 0.009225/1.001, allocations: 4.544 MB / 0.7802 GB, free: 111.3 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.197e-05/1.001, allocations: 91.36 kB / 0.7803 GB, free: 111.2 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006584/1.002, allocations: 0.6287 MB / 0.7809 GB, free: 111 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001169/1.002, allocations: 50.17 kB / 0.781 GB, free: 111 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002077/1.002, allocations: 375.1 kB / 0.7813 GB, free: 110.8 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002883/1.002, allocations: 460 kB / 0.7818 GB, free: 110.5 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003578/1.003, allocations: 229.8 kB / 0.782 GB, free: 110.5 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.753e-05/1.003, allocations: 348.6 kB / 0.7823 GB, free: 110.2 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001145/1.004, allocations: 0.5675 MB / 0.7829 GB, free: 110.1 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001254/1.005, allocations: 0.7028 MB / 0.7836 GB, free: 109.9 MB / 0.5762 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.002436/1.007, allocations: 1.417 MB / 0.7849 GB, free: 109.6 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/1.008, allocations: 0.5 kB / 0.7849 GB, free: 109.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003373/1.011, allocations: 1.848 MB / 0.7868 GB, free: 109 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.209e-05/1.011, allocations: 8 kB / 0.7868 GB, free: 109 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.797e-05/1.011, allocations: 8 kB / 0.7868 GB, free: 109 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002313/1.013, allocations: 0.6148 MB / 0.7874 GB, free: 108.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008964/1.014, allocations: 207.3 kB / 0.7876 GB, free: 108.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002174/1.016, allocations: 2.79 MB / 0.7903 GB, free: 105.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001065/1.017, allocations: 58.19 kB / 0.7903 GB, free: 105.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/1.018, allocations: 62.58 kB / 0.7904 GB, free: 105.7 MB / 0.5762 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.0005851/1.018, allocations: 265.5 kB / 0.7907 GB, free: 105.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002506/1.018, allocations: 111.3 kB / 0.7908 GB, free: 105.4 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003886/1.022, allocations: 2.295 MB / 0.793 GB, free: 103.8 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.175e-05/1.022, allocations: 15.94 kB / 0.793 GB, free: 103.8 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/1.022, allocations: 8.922 kB / 0.793 GB, free: 103.8 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.181e-05/1.022, allocations: 7.984 kB / 0.793 GB, free: 103.8 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004381/1.027, allocations: 2.924 MB / 0.7959 GB, free: 101.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.396e-05/1.027, allocations: 8.812 kB / 0.7959 GB, free: 101.4 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001013/1.028, allocations: 204.3 kB / 0.7961 GB, free: 101.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006561/1.029, allocations: 291 kB / 0.7964 GB, free: 100.9 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-05/1.029, allocations: 47.89 kB / 0.7964 GB, free: 100.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003642/1.032, allocations: 4.618 MB / 0.8009 GB, free: 96 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/1.032, allocations: 4.594 kB / 0.8009 GB, free: 96 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004243/1.037, allocations: 2.542 MB / 0.8034 GB, free: 93.44 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004778/1.037, allocations: 288.8 kB / 0.8037 GB, free: 93.14 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000185/1.037, allocations: 35.84 kB / 0.8037 GB, free: 93.11 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008113/1.038, allocations: 43.95 kB / 0.8038 GB, free: 93.06 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001858/1.038, allocations: 96.77 kB / 0.8039 GB, free: 92.97 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.606e-05/1.038, allocations: 55.05 kB / 0.8039 GB, free: 92.92 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004665/1.039, allocations: 0.4939 MB / 0.8044 GB, free: 92.43 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/1.039, allocations: 0 / 0.8044 GB, free: 92.43 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001804/1.041, allocations: 0.6712 MB / 0.8051 GB, free: 91.76 MB / 0.5762 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.00123/1.042, allocations: 0.8277 MB / 0.8059 GB, free: 91.02 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003913/1.046, allocations: 2 MB / 0.8078 GB, free: 89.01 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/1.046, allocations: 7.188 kB / 0.8078 GB, free: 89.01 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001905/1.048, allocations: 1.279 MB / 0.8091 GB, free: 87.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002035/1.05, allocations: 411.7 kB / 0.8095 GB, free: 87.35 MB / 0.5762 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10264:11-10264: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:10264:11-10264: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.004261/1.054, allocations: 3.137 MB / 0.8125 GB, free: 84.25 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003524/1.054, allocations: 1.085 MB / 0.8136 GB, free: 83.14 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004265/1.055, allocations: 135.3 kB / 0.8137 GB, free: 83.01 MB / 0.5762 GB Notification: Performance of SimCode: time 7.42e-07/1.055, allocations: 0 / 0.8137 GB, free: 83.01 MB / 0.5762 GB Notification: Performance of Templates: time 0.02886/1.084, allocations: 31.29 MB / 0.8443 GB, free: 52.14 MB / 0.5762 GB make -j1 -f ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.makefile (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) 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) Reference file matches