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.007356/0.007355, allocations: 100.5 kB / 15.73 MB, free: 6 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.001667/0.001667, allocations: 191.4 kB / 16.67 MB, free: 5.926 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.482/1.482, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6765/0.6765, allocations: 91.18 MB / 381.7 MB, free: 9.34 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001624/0.001624, allocations: 83.88 kB / 0.5168 GB, free: 9 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1222, allocations: 67.68 MB / 0.5829 GB, free: 5.238 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.3566/0.4788, allocations: 67.1 MB / 0.6485 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02907/0.5079, allocations: 26.73 MB / 0.6746 GB, free: 8.492 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001384/0.5093, allocations: 37.88 kB / 0.6746 GB, free: 8.477 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001791/0.5111, allocations: 0.5028 MB / 0.6751 GB, free: 8.051 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.004099/0.5153, allocations: 1.286 MB / 0.6764 GB, free: 7 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.004624/0.52, allocations: 1.65 MB / 0.678 GB, free: 5.859 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002636/0.5226, allocations: 1.885 MB / 0.6798 GB, free: 4.742 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006076/0.5232, allocations: 359.7 kB / 0.6802 GB, free: 4.559 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.05395/0.5772, allocations: 20.53 MB / 0.7002 GB, free: 260 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001675/0.5789, allocations: 0.8404 MB / 0.701 GB, free: 15.41 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0004765/0.5794, allocations: 120 kB / 0.7011 GB, free: 15.29 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3129/0.8923, allocations: 127.7 MB / 0.8259 GB, free: 13.97 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.000605/0.893, allocations: 330.8 kB / 0.8262 GB, free: 13.64 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.0008949/0.8939, allocations: 0.6802 MB / 0.8269 GB, free: 12.96 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.005321/0.8992, allocations: 2.875 MB / 0.8297 GB, free: 10.08 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.8992, allocations: 4 kB / 0.8297 GB, free: 10.07 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.834e-06/0.8993, allocations: 0 / 0.8297 GB, free: 10.07 MB / 0.67 GB Notification: Performance of Transformations before backend: time 1.313e-05/0.8993, allocations: 4 kB / 0.8297 GB, free: 10.07 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.003772/0.9031, allocations: 2.002 MB / 0.8316 GB, free: 8.016 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.9031, allocations: 8.031 kB / 0.8316 GB, free: 8.008 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002654/0.9034, allocations: 151.1 kB / 0.8318 GB, free: 7.859 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001187/0.9046, allocations: 0.8567 MB / 0.8326 GB, free: 6.957 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001756/0.9047, allocations: 210.5 kB / 0.8328 GB, free: 6.723 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001694/0.9049, allocations: 99.91 kB / 0.8329 GB, free: 6.625 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002385/0.9073, allocations: 1.45 MB / 0.8343 GB, free: 5.129 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.864e-05/0.9074, allocations: 4 kB / 0.8343 GB, free: 5.125 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001029/0.9075, allocations: 39.98 kB / 0.8344 GB, free: 5.086 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.75e-05/0.9075, allocations: 44.94 kB / 0.8344 GB, free: 5.047 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003021/0.9106, allocations: 1.632 MB / 0.836 GB, free: 3.414 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2675/1.178, allocations: 5.179 MB / 0.8411 GB, free: 229.8 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00267/1.181, allocations: 1.272 MB / 0.8423 GB, free: 229.3 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001389/1.182, allocations: 0.7933 MB / 0.8431 GB, free: 229 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002095/1.184, allocations: 4.201 MB / 0.8472 GB, free: 224.2 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.866e-05/1.184, allocations: 48.06 kB / 0.8472 GB, free: 224.2 MB / 0.67 GB Notification: Performance of pre-optimization done (n=131): time 3.958e-06/1.184, allocations: 5.719 kB / 0.8472 GB, free: 224.2 MB / 0.67 GB Notification: Performance of matching and sorting (n=134): time 0.008534/1.193, allocations: 4.604 MB / 0.8517 GB, free: 221.9 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.135e-05/1.193, allocations: 95.23 kB / 0.8518 GB, free: 221.9 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006731/1.194, allocations: 0.7399 MB / 0.8526 GB, free: 221.5 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 7.102e-05/1.194, allocations: 54.45 kB / 0.8526 GB, free: 221.5 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002325/1.194, allocations: 430 kB / 0.853 GB, free: 221.1 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002446/1.194, allocations: 461.7 kB / 0.8535 GB, free: 220.8 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003461/1.194, allocations: 227.1 kB / 0.8537 GB, free: 220.7 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 7.674e-05/1.195, allocations: 357.1 kB / 0.854 GB, free: 220.4 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001084/1.196, allocations: 0.5667 MB / 0.8546 GB, free: 220.2 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001181/1.197, allocations: 0.6984 MB / 0.8552 GB, free: 219.8 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.002394/1.199, allocations: 1.421 MB / 0.8566 GB, free: 219.1 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/1.199, allocations: 0 / 0.8566 GB, free: 219.1 MB / 0.67 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003528/1.203, allocations: 1.849 MB / 0.8584 GB, free: 218.4 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/1.203, allocations: 12.69 kB / 0.8585 GB, free: 218.4 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.088e-05/1.203, allocations: 13.28 kB / 0.8585 GB, free: 218.4 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002521/1.205, allocations: 0.6063 MB / 0.8591 GB, free: 218.3 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009614/1.206, allocations: 204.9 kB / 0.8593 GB, free: 218.3 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002514/1.209, allocations: 2.791 MB / 0.862 GB, free: 216 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008854/1.21, allocations: 55.42 kB / 0.862 GB, free: 216 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001294/1.21, allocations: 58.91 kB / 0.8621 GB, free: 215.9 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.0005002/1.21, allocations: 279.6 kB / 0.8624 GB, free: 215.7 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002537/1.211, allocations: 119.4 kB / 0.8625 GB, free: 215.7 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00474/1.215, allocations: 2.306 MB / 0.8647 GB, free: 214.7 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.561e-05/1.215, allocations: 13.44 kB / 0.8647 GB, free: 214.7 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.367e-06/1.216, allocations: 8.875 kB / 0.8647 GB, free: 214.7 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.567e-05/1.216, allocations: 6 kB / 0.8647 GB, free: 214.7 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005042/1.221, allocations: 2.963 MB / 0.8676 GB, free: 213.4 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.733e-05/1.221, allocations: 13.39 kB / 0.8677 GB, free: 213.4 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/1.222, allocations: 204.5 kB / 0.8678 GB, free: 213.4 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007245/1.222, allocations: 283.9 kB / 0.8681 GB, free: 213.3 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001076/1.223, allocations: 50.58 kB / 0.8682 GB, free: 213.3 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004058/1.227, allocations: 4.611 MB / 0.8727 GB, free: 209.6 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/1.227, allocations: 5.641 kB / 0.8727 GB, free: 209.6 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004925/1.232, allocations: 2.554 MB / 0.8752 GB, free: 208.5 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005013/1.232, allocations: 313.6 kB / 0.8755 GB, free: 208.3 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000153/1.232, allocations: 30.83 kB / 0.8755 GB, free: 208.3 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007118/1.233, allocations: 41.88 kB / 0.8755 GB, free: 208.3 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002157/1.233, allocations: 93.03 kB / 0.8756 GB, free: 208.2 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001127/1.233, allocations: 50 kB / 0.8757 GB, free: 208.2 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0007572/1.234, allocations: 0.5721 MB / 0.8762 GB, free: 208 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.162e-06/1.234, allocations: 4 kB / 0.8762 GB, free: 208 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001754/1.236, allocations: 0.6732 MB / 0.8769 GB, free: 207.9 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.001221/1.237, allocations: 0.8103 MB / 0.8777 GB, free: 207.6 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.003646/1.241, allocations: 1.773 MB / 0.8794 GB, free: 206.9 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/1.241, allocations: 1.25 kB / 0.8794 GB, free: 206.9 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.002139/1.243, allocations: 1.285 MB / 0.8807 GB, free: 206.2 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001673/1.245, allocations: 435.4 kB / 0.8811 GB, free: 206 MB / 0.67 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10371:11-10371: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:10371:11-10371: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.004537/1.249, allocations: 2.826 MB / 0.8838 GB, free: 204.8 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000541/1.25, allocations: 1.12 MB / 0.8849 GB, free: 204 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0007802/1.25, allocations: 259.1 kB / 0.8852 GB, free: 203.9 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003179/1.251, allocations: 117.1 kB / 0.8853 GB, free: 203.9 MB / 0.67 GB Notification: Performance of SimCode: time 6.01e-07/1.251, allocations: 3.938 kB / 0.8853 GB, free: 203.9 MB / 0.67 GB Notification: Performance of Templates: time 0.03806/1.289, allocations: 30.16 MB / 0.9148 GB, free: 179 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