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.001302/0.001302, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001467/0.001467, allocations: 210.2 kB / 22.24 MB, free: 5.262 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.374/1.374, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] 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.7697/0.7697, allocations: 100.9 MB / 413.3 MB, free: 2.855 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.002576/0.002576, allocations: 87.42 kB / 0.5646 GB, free: 35.31 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1276, allocations: 74.6 MB / 0.6374 GB, free: 5.961 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.08357/0.2112, allocations: 60.84 MB / 0.6968 GB, free: 8.906 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.03696/0.2481, allocations: 24.39 MB / 0.7206 GB, free: 456 kB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001222/0.2494, allocations: 59.44 kB / 0.7207 GB, free: 396 kB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001698/0.2511, allocations: 456.8 kB / 0.7211 GB, free: 15.93 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.003945/0.255, allocations: 1.278 MB / 0.7224 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.004501/0.2595, allocations: 1.629 MB / 0.724 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002652/0.2622, allocations: 1.958 MB / 0.7259 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004993/0.2627, allocations: 207.9 kB / 0.7261 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.04878/0.3114, allocations: 20.44 MB / 0.746 GB, free: 6.23 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001659/0.3131, allocations: 0.8052 MB / 0.7468 GB, free: 5.422 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0005006/0.3136, allocations: 123.9 kB / 0.747 GB, free: 5.301 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.5252/0.8388, allocations: 126.2 MB / 0.8702 GB, free: 0.9961 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0007144/0.8395, allocations: 326.2 kB / 0.8705 GB, free: 0.7422 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001364/0.8408, allocations: 0.5764 MB / 0.8711 GB, free: 344 kB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.006609/0.8475, allocations: 2.772 MB / 0.8738 GB, free: 13.93 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.8475, allocations: 0 / 0.8738 GB, free: 13.93 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.894e-06/0.8475, allocations: 0 / 0.8738 GB, free: 13.93 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 7.161e-05/0.8475, allocations: 5.312 kB / 0.8738 GB, free: 13.92 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.005035/0.8526, allocations: 2.001 MB / 0.8757 GB, free: 11.92 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.8526, allocations: 9.469 kB / 0.8757 GB, free: 11.91 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01056/0.8632, allocations: 1.806 MB / 0.8775 GB, free: 10.11 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002124/0.8653, allocations: 0.9406 MB / 0.8784 GB, free: 9.191 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004297/0.8657, allocations: 355.8 kB / 0.8788 GB, free: 8.781 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003554/0.8661, allocations: 107.8 kB / 0.8789 GB, free: 8.68 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003818/0.8699, allocations: 2.296 MB / 0.8811 GB, free: 6.312 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.099e-05/0.8699, allocations: 3.75 kB / 0.8811 GB, free: 6.312 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001391/0.8701, allocations: 40 kB / 0.8811 GB, free: 6.273 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-05/0.8701, allocations: 45.98 kB / 0.8812 GB, free: 6.227 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004312/0.8744, allocations: 2.35 MB / 0.8835 GB, free: 3.891 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01212/0.8866, allocations: 5.995 MB / 0.8893 GB, free: 13.94 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003217/0.8898, allocations: 1.368 MB / 0.8907 GB, free: 12.57 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00181/0.8916, allocations: 0.891 MB / 0.8915 GB, free: 11.68 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009143/0.8925, allocations: 238.2 kB / 0.8918 GB, free: 11.46 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.778e-05/0.8926, allocations: 51.5 kB / 0.8918 GB, free: 11.39 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=131): time 4.678e-06/0.8926, allocations: 0 / 0.8918 GB, free: 11.39 MB / 0.6544 GB Notification: Performance of matching and sorting (n=134): time 0.01301/0.9056, allocations: 5.128 MB / 0.8968 GB, free: 6.262 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.323e-05/0.9057, allocations: 101.2 kB / 0.8969 GB, free: 6.148 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008504/0.9065, allocations: 0.6222 MB / 0.8975 GB, free: 5.516 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0002459/0.9068, allocations: 53.7 kB / 0.8976 GB, free: 5.457 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003618/0.9071, allocations: 455.9 kB / 0.898 GB, free: 5.008 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006036/0.9077, allocations: 487.7 kB / 0.8985 GB, free: 4.539 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006513/0.9084, allocations: 330.7 kB / 0.8988 GB, free: 4.211 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001702/0.9085, allocations: 349.9 kB / 0.8991 GB, free: 3.863 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001726/0.9103, allocations: 0.7287 MB / 0.8998 GB, free: 3.137 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001911/0.9122, allocations: 0.8584 MB / 0.9007 GB, free: 2.246 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.003977/0.9162, allocations: 1.685 MB / 0.9023 GB, free: 0.543 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/0.9162, allocations: 4 kB / 0.9023 GB, free: 0.5391 MB / 0.6544 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00582/0.922, allocations: 2.328 MB / 0.9046 GB, free: 14.23 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.752e-05/0.922, allocations: 8 kB / 0.9046 GB, free: 14.22 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02902/0.951, allocations: 3.311 MB / 0.9078 GB, free: 10.93 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02442/0.9755, allocations: 1.651 MB / 0.9095 GB, free: 9.277 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001643/0.9771, allocations: 288 kB / 0.9097 GB, free: 9.008 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00404/0.9811, allocations: 2.962 MB / 0.9126 GB, free: 5.93 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00162/0.9828, allocations: 79.95 kB / 0.9127 GB, free: 5.852 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003042/0.9831, allocations: 103.8 kB / 0.9128 GB, free: 5.75 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 (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.0008046/0.9839, allocations: 282.3 kB / 0.9131 GB, free: 5.477 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004307/0.9843, allocations: 117.1 kB / 0.9132 GB, free: 5.363 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00562/0.9899, allocations: 2.729 MB / 0.9158 GB, free: 2.645 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.396e-05/0.9899, allocations: 12 kB / 0.9159 GB, free: 2.633 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/0.9899, allocations: 4 kB / 0.9159 GB, free: 2.629 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/0.9899, allocations: 7.969 kB / 0.9159 GB, free: 2.621 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006069/0.996, allocations: 2.807 MB / 0.9186 GB, free: 15.82 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.003421/0.9994, allocations: 1.595 MB / 0.9202 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001534/1.001, allocations: 251 kB / 0.9204 GB, free: 14 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007362/1.002, allocations: 284 kB / 0.9207 GB, free: 13.72 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001194/1.002, allocations: 43.94 kB / 0.9207 GB, free: 13.68 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005109/1.007, allocations: 4.325 MB / 0.9249 GB, free: 9.18 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/1.007, allocations: 0 / 0.9249 GB, free: 9.18 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00585/1.013, allocations: 2.701 MB / 0.9276 GB, free: 6.469 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006713/1.013, allocations: 227 kB / 0.9278 GB, free: 6.246 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001997/1.014, allocations: 31.89 kB / 0.9278 GB, free: 6.215 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001116/1.015, allocations: 63.88 kB / 0.9279 GB, free: 6.152 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00024/1.015, allocations: 103.8 kB / 0.928 GB, free: 6.055 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001299/1.015, allocations: 51.94 kB / 0.928 GB, free: 6.004 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0007185/1.016, allocations: 0.5239 MB / 0.9285 GB, free: 5.469 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.11e-07/1.016, allocations: 4 kB / 0.9285 GB, free: 5.465 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001616/1.017, allocations: 495.5 kB / 0.929 GB, free: 4.98 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 (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.0008908/1.018, allocations: 0.5307 MB / 0.9295 GB, free: 4.512 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.00418/1.023, allocations: 1.82 MB / 0.9313 GB, free: 2.699 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.207e-06/1.023, allocations: 3.938 kB / 0.9313 GB, free: 2.695 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.002409/1.025, allocations: 1.167 MB / 0.9325 GB, free: 1.523 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001662/1.027, allocations: 334.6 kB / 0.9328 GB, free: 1.223 MB / 0.6856 GB [/var/lib/jenkins/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/jenkins/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.005901/1.033, allocations: 2.976 MB / 0.9357 GB, free: 14.24 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006023/1.033, allocations: 0.547 MB / 0.9362 GB, free: 13.66 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001264/1.034, allocations: 336.1 kB / 0.9365 GB, free: 13.33 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005717/1.035, allocations: 159.2 kB / 0.9367 GB, free: 13.18 MB / 0.7012 GB Notification: Performance of SimCode: time 7.42e-07/1.035, allocations: 0 / 0.9367 GB, free: 13.18 MB / 0.7012 GB Notification: Performance of Templates: time 0.0608/1.096, allocations: 40.78 MB / 0.9765 GB, free: 4.977 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/jenkins/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: 7.714721441268921]