Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_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_dev_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.001934/0.001934, allocations: 110.5 kB / 16.41 MB, free: 6.516 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.002138/0.002138, allocations: 181.2 kB / 17.34 MB, free: 5.738 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.448/1.448, allocations: 222.9 MB / 241 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7591/0.7591, allocations: 97.64 MB / 388.8 MB, free: 1.453 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002404/0.002404, allocations: 83.41 kB / 0.5268 GB, free: 38.78 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09694/0.09935, allocations: 69.24 MB / 0.5944 GB, free: 0.582 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.07993/0.1793, allocations: 67.25 MB / 0.6601 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.03242/0.2117, allocations: 26.78 MB / 0.6862 GB, free: 2.223 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009983/0.2127, allocations: 43.69 kB / 0.6863 GB, free: 2.18 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001409/0.2141, allocations: 0.516 MB / 0.6868 GB, free: 1.66 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.003502/0.2176, allocations: 1.297 MB / 0.6881 GB, free: 364 kB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.004215/0.2218, allocations: 1.641 MB / 0.6897 GB, free: 14.71 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.002571/0.2244, allocations: 1.942 MB / 0.6916 GB, free: 12.76 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004602/0.2249, allocations: 239.5 kB / 0.6918 GB, free: 12.52 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.04587/0.2707, allocations: 20.6 MB / 0.7119 GB, free: 7.723 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001374/0.2721, allocations: 0.8404 MB / 0.7127 GB, free: 6.879 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002571/0.2724, allocations: 120 kB / 0.7128 GB, free: 6.762 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.5048/0.7771, allocations: 128 MB / 0.8378 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0004961/0.7776, allocations: 333.2 kB / 0.8381 GB, free: 10.85 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0007078/0.7783, allocations: 0.692 MB / 0.8388 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.004271/0.7826, allocations: 2.894 MB / 0.8417 GB, free: 8.215 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.7826, allocations: 4 kB / 0.8417 GB, free: 8.211 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.813e-06/0.7826, allocations: 3.562 kB / 0.8417 GB, free: 8.211 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.15e-05/0.7826, allocations: 0 / 0.8417 GB, free: 8.211 MB / 0.5919 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.003613/0.7862, allocations: 2.077 MB / 0.8437 GB, free: 6.113 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.7863, allocations: 8.031 kB / 0.8437 GB, free: 6.105 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000267/0.7865, allocations: 157.3 kB / 0.8438 GB, free: 5.953 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001154/0.7877, allocations: 0.8791 MB / 0.8447 GB, free: 5.078 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001266/0.7878, allocations: 218.4 kB / 0.8449 GB, free: 4.832 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001609/0.788, allocations: 103.8 kB / 0.845 GB, free: 4.734 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002105/0.7901, allocations: 1.445 MB / 0.8464 GB, free: 3.254 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.997e-05/0.7901, allocations: 4 kB / 0.8464 GB, free: 3.25 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001067/0.7902, allocations: 36 kB / 0.8465 GB, free: 3.215 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.041e-05/0.7903, allocations: 45.98 kB / 0.8465 GB, free: 3.168 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002632/0.7929, allocations: 1.631 MB / 0.8481 GB, free: 1.551 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007771/0.8007, allocations: 5.201 MB / 0.8532 GB, free: 12.22 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002834/0.8035, allocations: 1.207 MB / 0.8544 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00153/0.805, allocations: 0.7373 MB / 0.8551 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003641/0.8087, allocations: 4.196 MB / 0.8592 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.374e-05/0.8087, allocations: 46.75 kB / 0.8592 GB, free: 5.102 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=131): time 3.306e-06/0.8087, allocations: 0 / 0.8592 GB, free: 5.102 MB / 0.6075 GB Notification: Performance of matching and sorting (n=134): time 0.01044/0.8192, allocations: 4.624 MB / 0.8637 GB, free: 400 kB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.704e-05/0.8192, allocations: 94.11 kB / 0.8638 GB, free: 288 kB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001014/0.8202, allocations: 0.7564 MB / 0.8646 GB, free: 15.5 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001343/0.8204, allocations: 53.7 kB / 0.8646 GB, free: 15.45 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004022/0.8208, allocations: 450.5 kB / 0.865 GB, free: 15 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004435/0.8212, allocations: 489 kB / 0.8655 GB, free: 14.53 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003984/0.8216, allocations: 226.9 kB / 0.8657 GB, free: 14.3 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.000176/0.8218, allocations: 349.9 kB / 0.8661 GB, free: 13.96 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001346/0.8231, allocations: 0.5658 MB / 0.8666 GB, free: 13.39 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001514/0.8247, allocations: 0.7022 MB / 0.8673 GB, free: 12.67 MB / 0.6231 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.003099/0.8278, allocations: 1.414 MB / 0.8687 GB, free: 11.21 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.012e-06/0.8278, allocations: 3.938 kB / 0.8687 GB, free: 11.21 MB / 0.6231 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004303/0.8321, allocations: 1.839 MB / 0.8705 GB, free: 9.383 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.8321, allocations: 10.5 kB / 0.8705 GB, free: 9.375 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.956e-05/0.8321, allocations: 8 kB / 0.8705 GB, free: 9.367 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002678/0.8348, allocations: 0.6136 MB / 0.8711 GB, free: 8.754 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001078/0.8359, allocations: 205.7 kB / 0.8713 GB, free: 8.562 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00331/0.8392, allocations: 2.784 MB / 0.874 GB, free: 5.633 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009643/0.8402, allocations: 60.92 kB / 0.8741 GB, free: 5.574 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001231/0.8403, allocations: 58.2 kB / 0.8741 GB, free: 5.52 MB / 0.6231 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.0005598/0.8408, allocations: 281.6 kB / 0.8744 GB, free: 5.246 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002912/0.8411, allocations: 125.8 kB / 0.8745 GB, free: 5.125 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005086/0.8462, allocations: 2.3 MB / 0.8768 GB, free: 2.824 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.562e-05/0.8462, allocations: 12 kB / 0.8768 GB, free: 2.812 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-05/0.8462, allocations: 4 kB / 0.8768 GB, free: 2.809 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.505e-05/0.8463, allocations: 8.719 kB / 0.8768 GB, free: 2.801 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005834/0.8521, allocations: 2.965 MB / 0.8797 GB, free: 15.83 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.933e-05/0.8521, allocations: 8 kB / 0.8797 GB, free: 15.82 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001179/0.8533, allocations: 199.2 kB / 0.8799 GB, free: 15.63 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008281/0.8541, allocations: 293.3 kB / 0.8802 GB, free: 15.34 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001239/0.8542, allocations: 49.03 kB / 0.8802 GB, free: 15.29 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005693/0.8599, allocations: 4.612 MB / 0.8847 GB, free: 10.43 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.382e-06/0.8599, allocations: 8.016 kB / 0.8847 GB, free: 10.43 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005722/0.8657, allocations: 2.546 MB / 0.8872 GB, free: 7.871 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006252/0.8663, allocations: 320 kB / 0.8875 GB, free: 7.539 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000196/0.8665, allocations: 27.91 kB / 0.8875 GB, free: 7.516 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008035/0.8673, allocations: 39.97 kB / 0.8876 GB, free: 7.477 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002173/0.8675, allocations: 100.8 kB / 0.8877 GB, free: 7.379 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001029/0.8676, allocations: 47.95 kB / 0.8877 GB, free: 7.332 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.000821/0.8684, allocations: 0.5841 MB / 0.8883 GB, free: 6.738 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8684, allocations: 0 / 0.8883 GB, free: 6.738 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001728/0.8702, allocations: 0.6815 MB / 0.8889 GB, free: 6.055 MB / 0.6387 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.001449/0.8716, allocations: 0.8336 MB / 0.8898 GB, free: 5.309 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.003942/0.8756, allocations: 1.675 MB / 0.8914 GB, free: 3.609 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.8756, allocations: 0 / 0.8914 GB, free: 3.609 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.002522/0.8781, allocations: 1.236 MB / 0.8926 GB, free: 2.336 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002055/0.8801, allocations: 427.6 kB / 0.893 GB, free: 1.949 MB / 0.6387 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10395:11-10395: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:10395:11-10395: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.005781/0.8859, allocations: 2.902 MB / 0.8958 GB, free: 15.05 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008285/0.8867, allocations: 1.13 MB / 0.8969 GB, free: 13.89 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0008796/0.8876, allocations: 257.4 kB / 0.8972 GB, free: 13.64 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003713/0.888, allocations: 123.3 kB / 0.8973 GB, free: 13.52 MB / 0.6544 GB Notification: Performance of SimCode: time 7.11e-07/0.888, allocations: 1.641 kB / 0.8973 GB, free: 13.52 MB / 0.6544 GB Notification: Performance of Templates: time 0.05091/0.9389, allocations: 30.37 MB / 0.927 GB, free: 15.48 MB / 0.6856 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.sim & ./ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump -abortSlowSimulation -alarm=1200 -s gbode -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Processes.Tests.Pump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches