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.0008963/0.0008963, allocations: 92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 177 kB / 16.92 MB, free: 6.652 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.34/1.34, allocations: 223.3 MB / 241 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6509/0.6509, allocations: 89.65 MB / 381.7 MB, free: 11.27 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003532/0.0003532, allocations: 15.78 kB / 461.3 MB, free: 24.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1149, allocations: 68.83 MB / 0.5177 GB, free: 11.3 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.3165/0.4314, allocations: 68.3 MB / 0.5844 GB, free: 6.766 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.024/0.4555, allocations: 26.67 MB / 0.6105 GB, free: 6.348 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001768/0.4573, allocations: 17.78 kB / 0.6105 GB, free: 6.348 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00171/0.459, allocations: 440.3 kB / 0.6109 GB, free: 6.344 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003812/0.4628, allocations: 1.097 MB / 0.612 GB, free: 6.148 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004061/0.4669, allocations: 1.469 MB / 0.6134 GB, free: 5.902 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002504/0.4694, allocations: 2.138 MB / 0.6155 GB, free: 5.484 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005693/0.47, allocations: 301.3 kB / 0.6158 GB, free: 5.406 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0375/0.5075, allocations: 19.33 MB / 0.6347 GB, free: 12.02 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001254/0.5088, allocations: 0.7591 MB / 0.6354 GB, free: 11.6 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001477/0.509, allocations: 59.84 kB / 0.6355 GB, free: 11.6 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2546/0.7636, allocations: 127.3 MB / 0.7598 GB, free: 208 kB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0005958/0.7642, allocations: 252.8 kB / 0.76 GB, free: 15.97 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001261/0.7655, allocations: 0.6093 MB / 0.7606 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003946/0.7694, allocations: 1.96 MB / 0.7625 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.7695, allocations: 0 / 0.7625 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.623e-06/0.7695, allocations: 0 / 0.7625 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.36e-05/0.7695, allocations: 0 / 0.7625 GB, free: 13.52 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.004162/0.7737, allocations: 1.678 MB / 0.7642 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.7738, allocations: 8.031 kB / 0.7642 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003761/0.7741, allocations: 127.4 kB / 0.7643 GB, free: 11.66 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001067/0.7752, allocations: 0.6404 MB / 0.7649 GB, free: 11 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002055/0.7754, allocations: 222.6 kB / 0.7651 GB, free: 10.75 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002504/0.7757, allocations: 107.8 kB / 0.7652 GB, free: 10.64 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002771/0.7785, allocations: 1.454 MB / 0.7667 GB, free: 9.148 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.547e-05/0.7785, allocations: 4 kB / 0.7667 GB, free: 9.145 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001259/0.7787, allocations: 40 kB / 0.7667 GB, free: 9.105 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-05/0.7787, allocations: 41.98 kB / 0.7667 GB, free: 9.066 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003283/0.782, allocations: 1.652 MB / 0.7683 GB, free: 7.414 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008202/0.7902, allocations: 5.181 MB / 0.7734 GB, free: 2.039 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00276/0.793, allocations: 1.293 MB / 0.7747 GB, free: 0.7344 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001501/0.7946, allocations: 0.8037 MB / 0.7755 GB, free: 15.92 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003299/0.7979, allocations: 4.207 MB / 0.7796 GB, free: 10.79 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.269e-05/0.7979, allocations: 43.56 kB / 0.7796 GB, free: 10.73 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=131): time 3.607e-06/0.798, allocations: 0 / 0.7796 GB, free: 10.73 MB / 0.5919 GB Notification: Performance of matching and sorting (n=134): time 0.009948/0.8079, allocations: 4.593 MB / 0.7841 GB, free: 5.992 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.086e-05/0.808, allocations: 94.11 kB / 0.7842 GB, free: 5.883 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007896/0.8088, allocations: 0.6257 MB / 0.7848 GB, free: 5.246 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001052/0.8089, allocations: 53.7 kB / 0.7848 GB, free: 5.188 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002976/0.8092, allocations: 373.5 kB / 0.7852 GB, free: 4.816 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003597/0.8096, allocations: 459.8 kB / 0.7856 GB, free: 4.371 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/0.8098, allocations: 97.66 kB / 0.7857 GB, free: 4.27 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001272/0.8099, allocations: 349.9 kB / 0.7861 GB, free: 3.922 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/0.8111, allocations: 0.5765 MB / 0.7866 GB, free: 3.348 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00133/0.8125, allocations: 0.7101 MB / 0.7873 GB, free: 2.602 MB / 0.5919 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.002845/0.8153, allocations: 1.444 MB / 0.7887 GB, free: 1.109 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.8154, allocations: 3.938 kB / 0.7887 GB, free: 1.105 MB / 0.5919 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003998/0.8194, allocations: 1.861 MB / 0.7906 GB, free: 15.23 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.8194, allocations: 8 kB / 0.7906 GB, free: 15.23 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.728e-05/0.8194, allocations: 19.98 kB / 0.7906 GB, free: 15.21 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002457/0.8219, allocations: 0.5875 MB / 0.7912 GB, free: 14.61 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009971/0.8229, allocations: 210.9 kB / 0.7914 GB, free: 14.41 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003025/0.826, allocations: 2.699 MB / 0.794 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009214/0.8269, allocations: 63.77 kB / 0.7941 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001659/0.8271, allocations: 59.95 kB / 0.7941 GB, free: 11.43 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.0005318/0.8276, allocations: 269.7 kB / 0.7944 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002524/0.8279, allocations: 106.7 kB / 0.7945 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004781/0.8327, allocations: 2.322 MB / 0.7967 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.738e-05/0.8327, allocations: 12 kB / 0.7967 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.567e-05/0.8327, allocations: 7.938 kB / 0.7968 GB, free: 8.66 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.518e-05/0.8327, allocations: 7.984 kB / 0.7968 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005437/0.8382, allocations: 2.935 MB / 0.7996 GB, free: 5.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.942e-05/0.8383, allocations: 20.05 kB / 0.7996 GB, free: 5.66 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001098/0.8394, allocations: 203.6 kB / 0.7998 GB, free: 5.461 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008257/0.8402, allocations: 285.2 kB / 0.8001 GB, free: 5.176 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001385/0.8404, allocations: 47.89 kB / 0.8002 GB, free: 5.129 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00493/0.8453, allocations: 4.25 MB / 0.8043 GB, free: 0.6211 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.8453, allocations: 0 / 0.8043 GB, free: 0.6211 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2365/1.082, allocations: 2.569 MB / 0.8068 GB, free: 230.7 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006866/1.083, allocations: 324.6 kB / 0.8071 GB, free: 230.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002627/1.083, allocations: 23.09 kB / 0.8071 GB, free: 230.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009484/1.084, allocations: 52.91 kB / 0.8072 GB, free: 230.6 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002872/1.084, allocations: 98.89 kB / 0.8073 GB, free: 230.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000178/1.084, allocations: 52.66 kB / 0.8073 GB, free: 230.6 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0009952/1.085, allocations: 0.4932 MB / 0.8078 GB, free: 230.5 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.7e-07/1.085, allocations: 0 / 0.8078 GB, free: 230.5 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.002044/1.087, allocations: 0.6691 MB / 0.8085 GB, free: 230.5 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.001743/1.089, allocations: 0.8254 MB / 0.8093 GB, free: 230.3 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003747/1.093, allocations: 1.792 MB / 0.811 GB, free: 230.1 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/1.093, allocations: 3.094 kB / 0.811 GB, free: 230.1 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001993/1.095, allocations: 1.281 MB / 0.8123 GB, free: 229.4 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00221/1.097, allocations: 385.6 kB / 0.8127 GB, free: 229.3 MB / 0.6075 GB [/var/lib/jenkins1/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/jenkins1/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.00498/1.102, allocations: 3.352 MB / 0.8159 GB, free: 227.8 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006269/1.103, allocations: 1.081 MB / 0.817 GB, free: 227.1 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004726/1.103, allocations: 131.1 kB / 0.8171 GB, free: 227.1 MB / 0.6075 GB Notification: Performance of SimCode: time 9.42e-07/1.103, allocations: 0 / 0.8171 GB, free: 227.1 MB / 0.6075 GB Notification: Performance of Templates: time 0.03966/1.143, allocations: 31.18 MB / 0.8476 GB, free: 208.8 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches