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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 113.8 kB / 17.61 MB, free: 4.703 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001265/0.001265, allocations: 186 kB / 20.78 MB, free: 1.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 225.6 MB / 249.4 MB, free: 3.172 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.5936/0.5936, allocations: 90.3 MB / 394.8 MB, free: 3.867 MB / 318.1 MB " [Timeout remaining time 179] 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=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: Performance of FrontEnd - loaded program: time 0.002349/0.002349, allocations: 79.88 kB / 0.5387 GB, free: 1.629 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3736/0.376, allocations: 70.82 MB / 0.6078 GB, free: 7.418 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.07833/0.4543, allocations: 67.82 MB / 0.674 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.03175/0.486, allocations: 27.05 MB / 0.7005 GB, free: 12.28 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001124/0.4872, allocations: 15.88 kB / 0.7005 GB, free: 12.27 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001472/0.4886, allocations: 0.5045 MB / 0.701 GB, free: 11.76 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.003738/0.4924, allocations: 1.223 MB / 0.7022 GB, free: 10.53 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.004534/0.4969, allocations: 1.648 MB / 0.7038 GB, free: 8.875 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002431/0.4993, allocations: 1.798 MB / 0.7055 GB, free: 7.07 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003925/0.4997, allocations: 211.1 kB / 0.7057 GB, free: 6.852 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.04712/0.5469, allocations: 20.51 MB / 0.7258 GB, free: 2.145 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001405/0.5483, allocations: 0.8445 MB / 0.7266 GB, free: 1.293 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0002467/0.5485, allocations: 124 kB / 0.7267 GB, free: 1.172 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2733/0.8218, allocations: 128 MB / 0.8517 GB, free: 15.56 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0006212/0.8225, allocations: 322.8 kB / 0.852 GB, free: 15.25 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.0008859/0.8233, allocations: 0.6453 MB / 0.8527 GB, free: 14.6 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.005612/0.829, allocations: 2.757 MB / 0.8554 GB, free: 11.83 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.829, allocations: 0 / 0.8554 GB, free: 11.83 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.242e-06/0.829, allocations: 0 / 0.8554 GB, free: 11.83 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 1.978e-05/0.829, allocations: 0 / 0.8554 GB, free: 11.83 MB / 0.6856 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.004229/0.8332, allocations: 1.941 MB / 0.8572 GB, free: 9.836 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.8332, allocations: 12.03 kB / 0.8573 GB, free: 9.824 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002823/0.8335, allocations: 136.1 kB / 0.8574 GB, free: 9.691 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009362/0.8345, allocations: 0.6439 MB / 0.858 GB, free: 9.008 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002142/0.8347, allocations: 226.8 kB / 0.8582 GB, free: 8.754 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001944/0.8349, allocations: 103.9 kB / 0.8583 GB, free: 8.652 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002698/0.8376, allocations: 1.442 MB / 0.8597 GB, free: 7.168 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.871e-05/0.8376, allocations: 0 / 0.8597 GB, free: 7.168 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001173/0.8377, allocations: 43.98 kB / 0.8598 GB, free: 7.125 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.61e-05/0.8378, allocations: 45.98 kB / 0.8598 GB, free: 7.078 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003318/0.8411, allocations: 1.628 MB / 0.8614 GB, free: 5.453 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008307/0.8494, allocations: 5.164 MB / 0.8665 GB, free: 40 kB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2544/1.104, allocations: 1.188 MB / 0.8676 GB, free: 241.1 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001181/1.105, allocations: 0.7387 MB / 0.8683 GB, free: 240.8 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002/1.107, allocations: 4.206 MB / 0.8724 GB, free: 236 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/1.107, allocations: 48.95 kB / 0.8725 GB, free: 235.9 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=131): time 3.146e-06/1.107, allocations: 3.391 kB / 0.8725 GB, free: 235.9 MB / 0.6856 GB Notification: Performance of matching and sorting (n=134): time 0.008142/1.115, allocations: 4.553 MB / 0.8769 GB, free: 233.7 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.248e-05/1.115, allocations: 90.08 kB / 0.877 GB, free: 233.6 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006217/1.116, allocations: 0.63 MB / 0.8776 GB, free: 233.4 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 7.251e-05/1.116, allocations: 49.72 kB / 0.8777 GB, free: 233.3 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002143/1.116, allocations: 383.1 kB / 0.8781 GB, free: 233.1 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002649/1.116, allocations: 481.8 kB / 0.8785 GB, free: 232.7 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003298/1.117, allocations: 230.5 kB / 0.8787 GB, free: 232.6 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 8.244e-05/1.117, allocations: 352.7 kB / 0.8791 GB, free: 232.3 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00106/1.118, allocations: 0.5582 MB / 0.8796 GB, free: 232.1 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00118/1.119, allocations: 0.7021 MB / 0.8803 GB, free: 231.8 MB / 0.6856 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.002607/1.122, allocations: 1.426 MB / 0.8817 GB, free: 231.1 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/1.122, allocations: 4.375 kB / 0.8817 GB, free: 231.1 MB / 0.6856 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003854/1.125, allocations: 1.82 MB / 0.8835 GB, free: 230.3 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.564e-05/1.126, allocations: 6.531 kB / 0.8835 GB, free: 230.3 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.614e-05/1.126, allocations: 10.83 kB / 0.8835 GB, free: 230.3 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00251/1.128, allocations: 0.6034 MB / 0.8841 GB, free: 230.2 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009956/1.129, allocations: 204.6 kB / 0.8843 GB, free: 230.2 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002392/1.131, allocations: 2.802 MB / 0.887 GB, free: 227.9 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008536/1.132, allocations: 55.84 kB / 0.8871 GB, free: 227.9 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001471/1.132, allocations: 58.05 kB / 0.8871 GB, free: 227.9 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.0004864/1.133, allocations: 270.3 kB / 0.8874 GB, free: 227.7 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002308/1.133, allocations: 106.7 kB / 0.8875 GB, free: 227.6 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004398/1.138, allocations: 2.29 MB / 0.8897 GB, free: 226.7 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.69e-05/1.138, allocations: 11.78 kB / 0.8897 GB, free: 226.7 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/1.138, allocations: 6.641 kB / 0.8897 GB, free: 226.7 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.6e-05/1.138, allocations: 7.359 kB / 0.8897 GB, free: 226.7 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004907/1.143, allocations: 2.908 MB / 0.8926 GB, free: 225.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.593e-05/1.143, allocations: 12.66 kB / 0.8926 GB, free: 225.4 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/1.144, allocations: 204.5 kB / 0.8928 GB, free: 225.4 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007198/1.144, allocations: 289.7 kB / 0.8931 GB, free: 225.3 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001141/1.144, allocations: 45.06 kB / 0.8931 GB, free: 225.3 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003907/1.148, allocations: 4.619 MB / 0.8976 GB, free: 221.6 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/1.148, allocations: 1.375 kB / 0.8976 GB, free: 221.6 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004711/1.153, allocations: 2.535 MB / 0.9001 GB, free: 220.5 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000502/1.154, allocations: 303.8 kB / 0.9004 GB, free: 220.3 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001942/1.154, allocations: 27.47 kB / 0.9004 GB, free: 220.3 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007143/1.154, allocations: 52.5 kB / 0.9005 GB, free: 220.3 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000214/1.155, allocations: 91.66 kB / 0.9006 GB, free: 220.3 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.827e-05/1.155, allocations: 51.69 kB / 0.9006 GB, free: 220.2 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0005607/1.155, allocations: 0.4988 MB / 0.9011 GB, free: 220 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1e-07/1.155, allocations: 0 / 0.9011 GB, free: 220 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001593/1.157, allocations: 0.6777 MB / 0.9018 GB, free: 219.9 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.001215/1.158, allocations: 0.8269 MB / 0.9026 GB, free: 219.7 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.003265/1.161, allocations: 1.671 MB / 0.9042 GB, free: 218.9 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/1.161, allocations: 5.156 kB / 0.9042 GB, free: 218.9 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001955/1.163, allocations: 1.242 MB / 0.9054 GB, free: 218.2 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001738/1.165, allocations: 409.3 kB / 0.9058 GB, free: 218.1 MB / 0.6856 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10452:11-10452: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10452:11-10452: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.004394/1.169, allocations: 2.73 MB / 0.9085 GB, free: 216.5 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004446/1.17, allocations: 1.082 MB / 0.9095 GB, free: 215.7 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0008283/1.171, allocations: 248.1 kB / 0.9098 GB, free: 215.6 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002927/1.171, allocations: 116.1 kB / 0.9099 GB, free: 215.5 MB / 0.6856 GB Notification: Performance of SimCode: time 8.02e-07/1.171, allocations: 0 / 0.9099 GB, free: 215.5 MB / 0.6856 GB Notification: Performance of Templates: time 0.03575/1.207, allocations: 30.53 MB / 0.9397 GB, free: 188 MB / 0.6856 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/jenkins/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: 7.122043031267822]