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.008411/0.008411, allocations: 95.61 kB / 15.73 MB, free: 6.055 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.00183/0.00183, allocations: 197.8 kB / 16.67 MB, free: 5.977 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.54/1.54, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6663/0.6663, allocations: 91.18 MB / 381.7 MB, free: 9.355 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00171/0.00171, allocations: 83.88 kB / 0.5168 GB, free: 9.004 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1264, allocations: 67.69 MB / 0.583 GB, free: 5.234 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.3837/0.5102, allocations: 67.1 MB / 0.6485 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.03462/0.5448, allocations: 26.73 MB / 0.6746 GB, free: 8.254 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001487/0.5464, allocations: 38.41 kB / 0.6746 GB, free: 8.238 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001828/0.5482, allocations: 0.5068 MB / 0.6751 GB, free: 7.809 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.004465/0.5527, allocations: 1.261 MB / 0.6763 GB, free: 6.777 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.00534/0.5581, allocations: 1.641 MB / 0.678 GB, free: 5.641 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.003085/0.5612, allocations: 1.889 MB / 0.6798 GB, free: 4.516 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006792/0.5619, allocations: 352.5 kB / 0.6801 GB, free: 4.34 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.05813/0.62, allocations: 20.52 MB / 0.7002 GB, free: 124 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001821/0.6219, allocations: 0.8326 MB / 0.701 GB, free: 15.29 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0005925/0.6225, allocations: 120 kB / 0.7011 GB, free: 15.17 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3847/1.007, allocations: 127.7 MB / 0.8258 GB, free: 13.85 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0006827/1.008, allocations: 326.8 kB / 0.8262 GB, free: 13.53 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.001501/1.01, allocations: 0.6879 MB / 0.8268 GB, free: 12.84 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.00831/1.018, allocations: 2.885 MB / 0.8296 GB, free: 9.941 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/1.018, allocations: 4 kB / 0.8296 GB, free: 9.938 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.613e-06/1.018, allocations: 0 / 0.8296 GB, free: 9.938 MB / 0.67 GB Notification: Performance of Transformations before backend: time 5.49e-05/1.018, allocations: 3.984 kB / 0.8296 GB, free: 9.934 MB / 0.67 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.004659/1.023, allocations: 2.053 MB / 0.8317 GB, free: 7.824 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/1.023, allocations: 8.031 kB / 0.8317 GB, free: 7.816 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003423/1.023, allocations: 156 kB / 0.8318 GB, free: 7.664 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001416/1.024, allocations: 0.8575 MB / 0.8326 GB, free: 6.762 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001826/1.025, allocations: 214.5 kB / 0.8329 GB, free: 6.523 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001868/1.025, allocations: 111.9 kB / 0.833 GB, free: 6.414 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002671/1.028, allocations: 1.446 MB / 0.8344 GB, free: 4.922 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.008e-05/1.028, allocations: 0 / 0.8344 GB, free: 4.922 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000111/1.028, allocations: 40 kB / 0.8344 GB, free: 4.883 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-05/1.028, allocations: 41.98 kB / 0.8345 GB, free: 4.844 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00317/1.031, allocations: 1.64 MB / 0.8361 GB, free: 3.203 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2929/1.324, allocations: 5.186 MB / 0.8411 GB, free: 229 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002886/1.327, allocations: 1.27 MB / 0.8424 GB, free: 228.8 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001546/1.328, allocations: 0.7945 MB / 0.8431 GB, free: 228.5 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002226/1.331, allocations: 4.202 MB / 0.8472 GB, free: 223.7 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.025e-05/1.331, allocations: 53.59 kB / 0.8473 GB, free: 223.6 MB / 0.67 GB Notification: Performance of pre-optimization done (n=131): time 3.727e-06/1.331, allocations: 0 / 0.8473 GB, free: 223.6 MB / 0.67 GB Notification: Performance of matching and sorting (n=134): time 0.009096/1.34, allocations: 4.627 MB / 0.8518 GB, free: 221.4 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.328e-05/1.34, allocations: 94.02 kB / 0.8519 GB, free: 221.3 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007375/1.341, allocations: 0.743 MB / 0.8526 GB, free: 221 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 7.308e-05/1.341, allocations: 48.48 kB / 0.8527 GB, free: 221 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002445/1.341, allocations: 445.8 kB / 0.8531 GB, free: 220.6 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002742/1.341, allocations: 485.5 kB / 0.8536 GB, free: 220.3 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000333/1.342, allocations: 225.4 kB / 0.8538 GB, free: 220.2 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 7.797e-05/1.342, allocations: 355.3 kB / 0.8541 GB, free: 219.9 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001106/1.343, allocations: 0.5616 MB / 0.8547 GB, free: 219.7 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001215/1.344, allocations: 0.7036 MB / 0.8553 GB, free: 219.4 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.002591/1.347, allocations: 1.418 MB / 0.8567 GB, free: 218.7 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/1.347, allocations: 0 / 0.8567 GB, free: 218.7 MB / 0.67 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003689/1.35, allocations: 1.86 MB / 0.8585 GB, free: 217.9 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/1.35, allocations: 10.38 kB / 0.8586 GB, free: 217.9 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.471e-05/1.35, allocations: 17.11 kB / 0.8586 GB, free: 217.9 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002528/1.353, allocations: 0.6045 MB / 0.8592 GB, free: 217.8 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009461/1.354, allocations: 209.7 kB / 0.8594 GB, free: 217.8 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002509/1.356, allocations: 2.788 MB / 0.8621 GB, free: 215.5 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009371/1.357, allocations: 51.31 kB / 0.8621 GB, free: 215.5 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/1.357, allocations: 58.92 kB / 0.8622 GB, free: 215.5 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 (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.0004885/1.358, allocations: 279 kB / 0.8625 GB, free: 215.3 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002724/1.358, allocations: 124 kB / 0.8626 GB, free: 215.2 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005249/1.364, allocations: 2.309 MB / 0.8648 GB, free: 214.3 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-05/1.364, allocations: 12.25 kB / 0.8648 GB, free: 214.3 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.116e-05/1.364, allocations: 7.938 kB / 0.8648 GB, free: 214.3 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.78e-05/1.364, allocations: 5.531 kB / 0.8649 GB, free: 214.3 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005285/1.369, allocations: 2.964 MB / 0.8677 GB, free: 213 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-05/1.369, allocations: 16.89 kB / 0.8678 GB, free: 213 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001102/1.37, allocations: 200.1 kB / 0.868 GB, free: 213 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008603/1.371, allocations: 292.5 kB / 0.8682 GB, free: 212.9 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001352/1.371, allocations: 48.25 kB / 0.8683 GB, free: 212.9 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004398/1.375, allocations: 4.617 MB / 0.8728 GB, free: 209.2 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/1.376, allocations: 0 / 0.8728 GB, free: 209.2 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005325/1.381, allocations: 2.569 MB / 0.8753 GB, free: 208 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006067/1.381, allocations: 314.4 kB / 0.8756 GB, free: 207.8 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001927/1.382, allocations: 30.61 kB / 0.8756 GB, free: 207.8 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007427/1.382, allocations: 44.52 kB / 0.8757 GB, free: 207.8 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002591/1.383, allocations: 92.58 kB / 0.8758 GB, free: 207.8 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00011/1.383, allocations: 55.81 kB / 0.8758 GB, free: 207.8 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0007469/1.384, allocations: 0.5675 MB / 0.8764 GB, free: 207.5 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.8e-07/1.384, allocations: 1.219 kB / 0.8764 GB, free: 207.5 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001703/1.385, allocations: 0.6846 MB / 0.877 GB, free: 207.4 MB / 0.67 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.001292/1.387, allocations: 0.8211 MB / 0.8778 GB, free: 207.2 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.003546/1.39, allocations: 1.771 MB / 0.8796 GB, free: 206.4 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 5.269e-06/1.39, allocations: 1.344 kB / 0.8796 GB, free: 206.4 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.002185/1.392, allocations: 1.294 MB / 0.8808 GB, free: 205.7 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001914/1.394, allocations: 429.8 kB / 0.8812 GB, free: 205.6 MB / 0.67 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10357:11-10357: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:10357:11-10357: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.004841/1.399, allocations: 2.86 MB / 0.884 GB, free: 204.2 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006027/1.4, allocations: 1.124 MB / 0.8851 GB, free: 203.5 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0009254/1.401, allocations: 250.5 kB / 0.8854 GB, free: 203.4 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003332/1.401, allocations: 118.9 kB / 0.8855 GB, free: 203.4 MB / 0.67 GB Notification: Performance of SimCode: time 6.11e-07/1.401, allocations: 3.938 kB / 0.8855 GB, free: 203.4 MB / 0.67 GB Notification: Performance of Templates: time 0.03677/1.438, allocations: 30.15 MB / 0.9149 GB, free: 178.3 MB / 0.67 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