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-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/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.0009688/0.0009688, allocations: 91.45 kB / 15.36 MB, free: 0.7344 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.00723/0.00723, allocations: 173.7 kB / 16.27 MB, free: 6.617 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.366/1.366, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6756/0.6756, allocations: 91.32 MB / 382.7 MB, free: 9.652 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004026/0.0004026, allocations: 18.38 kB / 462.7 MB, free: 23.62 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1244, allocations: 69.22 MB / 0.5195 GB, free: 9.113 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.3142/0.4386, allocations: 68.52 MB / 0.5864 GB, free: 6.746 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0231/0.4618, allocations: 26.74 MB / 0.6125 GB, free: 6.238 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001507/0.4633, allocations: 43.81 kB / 0.6125 GB, free: 6.234 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001187/0.4645, allocations: 452.3 kB / 0.613 GB, free: 6.125 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003646/0.4682, allocations: 1.121 MB / 0.6141 GB, free: 5.824 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004039/0.4722, allocations: 1.467 MB / 0.6155 GB, free: 5.582 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002597/0.4748, allocations: 2.228 MB / 0.6177 GB, free: 5.137 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000483/0.4753, allocations: 311.1 kB / 0.618 GB, free: 5.055 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03778/0.5131, allocations: 19.38 MB / 0.6369 GB, free: 10.71 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001312/0.5145, allocations: 0.7736 MB / 0.6376 GB, free: 10.29 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001496/0.5146, allocations: 59.91 kB / 0.6377 GB, free: 10.29 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2411/0.7558, allocations: 127.3 MB / 0.762 GB, free: 13.59 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005497/0.7564, allocations: 262.8 kB / 0.7623 GB, free: 13.34 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0008769/0.7572, allocations: 0.6388 MB / 0.7629 GB, free: 12.69 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.00483/0.7621, allocations: 2.723 MB / 0.7656 GB, free: 9.957 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.7621, allocations: 0 / 0.7656 GB, free: 9.957 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.994e-06/0.7621, allocations: 0 / 0.7656 GB, free: 9.957 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.978e-05/0.7621, allocations: 0 / 0.7656 GB, free: 9.957 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.003788/0.7659, allocations: 1.77 MB / 0.7673 GB, free: 8.137 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.766, allocations: 12.02 kB / 0.7673 GB, free: 8.125 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002289/0.7662, allocations: 148.9 kB / 0.7674 GB, free: 7.98 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001167/0.7674, allocations: 0.7982 MB / 0.7682 GB, free: 7.141 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001863/0.7676, allocations: 214.5 kB / 0.7684 GB, free: 6.898 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000191/0.7678, allocations: 107.8 kB / 0.7685 GB, free: 6.793 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002471/0.7703, allocations: 1.458 MB / 0.7699 GB, free: 5.293 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.871e-05/0.7703, allocations: 3.938 kB / 0.77 GB, free: 5.289 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001107/0.7704, allocations: 40 kB / 0.77 GB, free: 5.25 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.958e-05/0.7705, allocations: 45.98 kB / 0.77 GB, free: 5.203 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003112/0.7736, allocations: 1.648 MB / 0.7716 GB, free: 3.559 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007385/0.781, allocations: 5.217 MB / 0.7767 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002665/0.7837, allocations: 1.297 MB / 0.778 GB, free: 12.78 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001441/0.7851, allocations: 0.8037 MB / 0.7788 GB, free: 11.97 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002994/0.7881, allocations: 4.208 MB / 0.7829 GB, free: 6.824 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.484e-05/0.7882, allocations: 43.56 kB / 0.7829 GB, free: 6.773 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=131): time 3.286e-06/0.7882, allocations: 0 / 0.7829 GB, free: 6.773 MB / 0.5919 GB Notification: Performance of matching and sorting (n=134): time 0.009227/0.7974, allocations: 4.636 MB / 0.7875 GB, free: 1.988 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.71e-05/0.7975, allocations: 98.05 kB / 0.7876 GB, free: 1.875 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000839/0.7984, allocations: 0.7409 MB / 0.7883 GB, free: 1.109 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 9.741e-05/0.7985, allocations: 49.7 kB / 0.7883 GB, free: 1.055 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003157/0.7988, allocations: 437.4 kB / 0.7887 GB, free: 0.6211 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003548/0.7992, allocations: 465.1 kB / 0.7892 GB, free: 164 kB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001577/0.7993, allocations: 97.66 kB / 0.7893 GB, free: 60 kB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001364/0.7995, allocations: 357.9 kB / 0.7896 GB, free: 15.7 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001236/0.8007, allocations: 0.5726 MB / 0.7902 GB, free: 15.13 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001321/0.802, allocations: 0.7101 MB / 0.7909 GB, free: 14.39 MB / 0.6075 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.002748/0.8048, allocations: 1.44 MB / 0.7923 GB, free: 12.9 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.155e-06/0.8048, allocations: 0 / 0.7923 GB, free: 12.9 MB / 0.6075 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003704/0.8085, allocations: 1.872 MB / 0.7941 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.8085, allocations: 8 kB / 0.7941 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.686e-05/0.8086, allocations: 8.875 kB / 0.7941 GB, free: 11 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002436/0.811, allocations: 0.6065 MB / 0.7947 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009732/0.812, allocations: 215.6 kB / 0.7949 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002655/0.8147, allocations: 2.688 MB / 0.7976 GB, free: 7.328 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008309/0.8155, allocations: 59.81 kB / 0.7976 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001129/0.8156, allocations: 59.95 kB / 0.7977 GB, free: 7.211 MB / 0.6075 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $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.0004548/0.8161, allocations: 273.6 kB / 0.7979 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001955/0.8163, allocations: 122.5 kB / 0.798 GB, free: 6.812 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004526/0.8208, allocations: 2.335 MB / 0.8003 GB, free: 4.438 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-05/0.8209, allocations: 12 kB / 0.8003 GB, free: 4.426 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.8209, allocations: 4 kB / 0.8003 GB, free: 4.422 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.412e-05/0.8209, allocations: 7.969 kB / 0.8003 GB, free: 4.414 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005034/0.8259, allocations: 2.974 MB / 0.8033 GB, free: 1.375 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.813e-05/0.826, allocations: 24.05 kB / 0.8033 GB, free: 1.352 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/0.827, allocations: 199.7 kB / 0.8035 GB, free: 1.156 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007506/0.8278, allocations: 296.5 kB / 0.8037 GB, free: 0.8633 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.749e-05/0.8279, allocations: 43.95 kB / 0.8038 GB, free: 0.8203 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2327/1.061, allocations: 4.237 MB / 0.8079 GB, free: 227.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/1.061, allocations: 0.9375 kB / 0.8079 GB, free: 227.1 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005424/1.066, allocations: 2.589 MB / 0.8105 GB, free: 226.7 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004973/1.067, allocations: 337.2 kB / 0.8108 GB, free: 226.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001504/1.067, allocations: 23.14 kB / 0.8108 GB, free: 226.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007938/1.068, allocations: 61.56 kB / 0.8109 GB, free: 226.5 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001812/1.068, allocations: 94.47 kB / 0.811 GB, free: 226.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.659e-05/1.068, allocations: 54.08 kB / 0.811 GB, free: 226.5 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006638/1.069, allocations: 0.5684 MB / 0.8116 GB, free: 226.3 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/1.069, allocations: 0 / 0.8116 GB, free: 226.3 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001618/1.07, allocations: 0.6702 MB / 0.8122 GB, free: 226.2 MB / 0.6075 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.001301/1.071, allocations: 0.8355 MB / 0.813 GB, free: 226.1 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003075/1.075, allocations: 1.78 MB / 0.8148 GB, free: 225.3 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/1.075, allocations: 0 / 0.8148 GB, free: 225.3 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001833/1.076, allocations: 1.29 MB / 0.816 GB, free: 224.6 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001931/1.078, allocations: 393.7 kB / 0.8164 GB, free: 224.5 MB / 0.6075 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10070:11-10070: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:10070:11-10070: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.004949/1.083, allocations: 3.486 MB / 0.8198 GB, free: 222.9 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005439/1.084, allocations: 1.123 MB / 0.8209 GB, free: 222.2 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0008527/1.085, allocations: 260 kB / 0.8211 GB, free: 222.1 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003197/1.085, allocations: 117.5 kB / 0.8213 GB, free: 222.1 MB / 0.6075 GB Notification: Performance of SimCode: time 6.21e-07/1.085, allocations: 1.031 kB / 0.8213 GB, free: 222.1 MB / 0.6075 GB Notification: Performance of Templates: time 0.0381/1.123, allocations: 28.7 MB / 0.8493 GB, free: 205 MB / 0.6075 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches