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.006063/0.006063, allocations: 101.1 kB / 15.73 MB, free: 6.047 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.001618/0.001618, allocations: 190.4 kB / 16.67 MB, free: 5.98 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.314/1.314, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6178/0.6178, allocations: 91.18 MB / 381.7 MB, free: 9.348 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 80.14 kB / 0.5168 GB, free: 8.988 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1143, allocations: 67.68 MB / 0.5829 GB, free: 5.227 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.3139/0.4283, allocations: 67.11 MB / 0.6485 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02676/0.4551, allocations: 26.73 MB / 0.6746 GB, free: 8.215 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001059/0.4562, allocations: 39 kB / 0.6746 GB, free: 8.199 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001417/0.4576, allocations: 0.507 MB / 0.6751 GB, free: 7.77 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.003402/0.461, allocations: 1.261 MB / 0.6763 GB, free: 6.738 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003851/0.4649, allocations: 1.636 MB / 0.6779 GB, free: 5.609 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002121/0.467, allocations: 1.894 MB / 0.6798 GB, free: 4.48 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005244/0.4676, allocations: 351.6 kB / 0.6801 GB, free: 4.305 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.04846/0.516, allocations: 20.52 MB / 0.7002 GB, free: 100 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001378/0.5175, allocations: 0.8444 MB / 0.701 GB, free: 15.25 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0003446/0.5178, allocations: 124 kB / 0.7011 GB, free: 15.12 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2684/0.7862, allocations: 127.7 MB / 0.8258 GB, free: 13.82 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0005408/0.7868, allocations: 330.8 kB / 0.8262 GB, free: 13.49 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.0008966/0.7877, allocations: 0.684 MB / 0.8268 GB, free: 12.8 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.005052/0.7928, allocations: 2.879 MB / 0.8296 GB, free: 9.918 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.7928, allocations: 0 / 0.8296 GB, free: 9.918 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.532e-06/0.7928, allocations: 0 / 0.8296 GB, free: 9.918 MB / 0.67 GB Notification: Performance of Transformations before backend: time 1.495e-05/0.7928, allocations: 0 / 0.8296 GB, free: 9.918 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.003809/0.7966, allocations: 2.006 MB / 0.8316 GB, free: 7.859 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.7967, allocations: 12.03 kB / 0.8316 GB, free: 7.848 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000254/0.7969, allocations: 147.2 kB / 0.8318 GB, free: 7.703 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001238/0.7982, allocations: 0.8528 MB / 0.8326 GB, free: 6.805 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001664/0.7984, allocations: 214.5 kB / 0.8328 GB, free: 6.566 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000169/0.7985, allocations: 107.9 kB / 0.8329 GB, free: 6.461 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002277/0.8008, allocations: 1.45 MB / 0.8343 GB, free: 4.965 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.794e-05/0.8009, allocations: 0 / 0.8343 GB, free: 4.965 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001072/0.801, allocations: 43.94 kB / 0.8344 GB, free: 4.922 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.533e-05/0.801, allocations: 41.98 kB / 0.8344 GB, free: 4.883 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002855/0.8039, allocations: 1.636 MB / 0.836 GB, free: 3.246 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2453/1.049, allocations: 5.174 MB / 0.841 GB, free: 229 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002606/1.052, allocations: 1.27 MB / 0.8423 GB, free: 228.8 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001378/1.053, allocations: 0.798 MB / 0.8431 GB, free: 228.5 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001984/1.055, allocations: 4.203 MB / 0.8472 GB, free: 223.7 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.434e-05/1.055, allocations: 55.05 kB / 0.8472 GB, free: 223.6 MB / 0.67 GB Notification: Performance of pre-optimization done (n=131): time 3.326e-06/1.055, allocations: 0.9062 kB / 0.8472 GB, free: 223.6 MB / 0.67 GB Notification: Performance of matching and sorting (n=134): time 0.008116/1.063, allocations: 4.606 MB / 0.8517 GB, free: 221.4 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.107e-05/1.063, allocations: 90.95 kB / 0.8518 GB, free: 221.3 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006677/1.064, allocations: 0.7401 MB / 0.8525 GB, free: 221 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 7.239e-05/1.064, allocations: 48.64 kB / 0.8526 GB, free: 221 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002152/1.064, allocations: 439.8 kB / 0.853 GB, free: 220.6 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002399/1.065, allocations: 459.4 kB / 0.8534 GB, free: 220.3 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003034/1.065, allocations: 228.3 kB / 0.8536 GB, free: 220.2 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 6.978e-05/1.065, allocations: 356.3 kB / 0.854 GB, free: 219.9 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001053/1.066, allocations: 0.5664 MB / 0.8545 GB, free: 219.7 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001119/1.067, allocations: 0.7032 MB / 0.8552 GB, free: 219.3 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.002317/1.07, allocations: 1.416 MB / 0.8566 GB, free: 218.6 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/1.07, allocations: 2.562 kB / 0.8566 GB, free: 218.6 MB / 0.67 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003279/1.073, allocations: 1.853 MB / 0.8584 GB, free: 217.9 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.836e-05/1.073, allocations: 10.36 kB / 0.8584 GB, free: 217.9 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.739e-05/1.073, allocations: 13.45 kB / 0.8584 GB, free: 217.9 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002362/1.075, allocations: 0.601 MB / 0.859 GB, free: 217.8 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009254/1.076, allocations: 214 kB / 0.8592 GB, free: 217.8 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002165/1.078, allocations: 2.787 MB / 0.862 GB, free: 215.5 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008234/1.079, allocations: 48.52 kB / 0.862 GB, free: 215.5 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001144/1.079, allocations: 58.83 kB / 0.8621 GB, free: 215.4 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.0004617/1.08, allocations: 281.8 kB / 0.8623 GB, free: 215.2 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002316/1.08, allocations: 116.6 kB / 0.8624 GB, free: 215.2 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00446/1.085, allocations: 2.308 MB / 0.8647 GB, free: 214.2 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.355e-05/1.085, allocations: 12.84 kB / 0.8647 GB, free: 214.2 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.657e-06/1.085, allocations: 7.438 kB / 0.8647 GB, free: 214.2 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.51e-05/1.085, allocations: 6.828 kB / 0.8647 GB, free: 214.2 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00464/1.089, allocations: 2.961 MB / 0.8676 GB, free: 212.9 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-05/1.089, allocations: 13.27 kB / 0.8676 GB, free: 212.9 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/1.09, allocations: 202.2 kB / 0.8678 GB, free: 212.9 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006904/1.091, allocations: 284.1 kB / 0.8681 GB, free: 212.8 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.372e-05/1.091, allocations: 50.88 kB / 0.8681 GB, free: 212.8 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003885/1.095, allocations: 4.619 MB / 0.8726 GB, free: 209.1 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/1.095, allocations: 2.5 kB / 0.8727 GB, free: 209.1 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004622/1.1, allocations: 2.551 MB / 0.8751 GB, free: 208 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005133/1.1, allocations: 312.4 kB / 0.8754 GB, free: 207.8 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001534/1.1, allocations: 29.95 kB / 0.8755 GB, free: 207.8 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007288/1.101, allocations: 41.84 kB / 0.8755 GB, free: 207.8 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002029/1.101, allocations: 94.94 kB / 0.8756 GB, free: 207.8 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.464e-05/1.101, allocations: 50.38 kB / 0.8756 GB, free: 207.7 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.000655/1.102, allocations: 0.5705 MB / 0.8762 GB, free: 207.5 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.3e-07/1.102, allocations: 3.938 kB / 0.8762 GB, free: 207.5 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001583/1.104, allocations: 0.6772 MB / 0.8769 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.001107/1.105, allocations: 0.8155 MB / 0.8777 GB, free: 207.2 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.003284/1.108, allocations: 1.764 MB / 0.8794 GB, free: 206.5 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/1.108, allocations: 1.375 kB / 0.8794 GB, free: 206.5 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001897/1.11, allocations: 1.295 MB / 0.8807 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.001678/1.112, allocations: 429.1 kB / 0.8811 GB, free: 205.6 MB / 0.67 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10369:11-10369: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:10369:11-10369: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.004285/1.116, allocations: 2.824 MB / 0.8838 GB, free: 204.3 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004628/1.116, allocations: 1.122 MB / 0.8849 GB, free: 203.6 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0007078/1.117, allocations: 261.2 kB / 0.8852 GB, free: 203.5 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002946/1.117, allocations: 116.6 kB / 0.8853 GB, free: 203.5 MB / 0.67 GB Notification: Performance of SimCode: time 5.01e-07/1.117, allocations: 0 / 0.8853 GB, free: 203.5 MB / 0.67 GB Notification: Performance of Templates: time 0.03274/1.15, allocations: 30.15 MB / 0.9147 GB, free: 178.4 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