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.001542/0.001542, allocations: 106.3 kB / 16.36 MB, free: 6.34 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.001643/0.001643, allocations: 198.2 kB / 17.3 MB, free: 5.879 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.301/1.301, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6376/0.6376, allocations: 89.49 MB / 380.6 MB, free: 8.734 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 75.88 kB / 459.7 MB, free: 10.61 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1061, allocations: 67.31 MB / 0.5146 GB, free: 7.219 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.2305/0.3367, allocations: 66.94 MB / 0.58 GB, free: 8.492 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02604/0.3628, allocations: 26.69 MB / 0.606 GB, free: 5.254 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001201/0.364, allocations: 18.44 kB / 0.6061 GB, free: 5.246 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001321/0.3653, allocations: 0.4951 MB / 0.6065 GB, free: 4.828 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003612/0.369, allocations: 1.219 MB / 0.6077 GB, free: 3.836 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004513/0.3736, allocations: 1.639 MB / 0.6093 GB, free: 2.703 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002493/0.3761, allocations: 1.791 MB / 0.6111 GB, free: 1.652 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004961/0.3766, allocations: 347.8 kB / 0.6114 GB, free: 1.5 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.04816/0.4247, allocations: 20.47 MB / 0.6314 GB, free: 15.78 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001382/0.4262, allocations: 0.8173 MB / 0.6322 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002414/0.4264, allocations: 120 kB / 0.6323 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.508/0.9345, allocations: 127.7 MB / 0.7571 GB, free: 120 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005509/0.935, allocations: 316.5 kB / 0.7574 GB, free: 120 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0009459/0.936, allocations: 0.6495 MB / 0.758 GB, free: 120 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.005293/0.9413, allocations: 2.756 MB / 0.7607 GB, free: 119.9 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.9413, allocations: 0 / 0.7607 GB, free: 119.9 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.432e-06/0.9413, allocations: 1 kB / 0.7607 GB, free: 119.9 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.755e-05/0.9414, allocations: 0 / 0.7607 GB, free: 119.9 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.004065/0.9454, allocations: 1.892 MB / 0.7625 GB, free: 119.2 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.718e-05/0.9455, allocations: 12.45 kB / 0.7625 GB, free: 119.2 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002969/0.9458, allocations: 129.8 kB / 0.7627 GB, free: 119.1 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009474/0.9467, allocations: 0.6421 MB / 0.7633 GB, free: 118.8 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001475/0.9469, allocations: 212.7 kB / 0.7635 GB, free: 118.7 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001893/0.9471, allocations: 106.7 kB / 0.7636 GB, free: 118.7 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002588/0.9497, allocations: 1.445 MB / 0.765 GB, free: 118.5 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.199e-05/0.9497, allocations: 7.078 kB / 0.765 GB, free: 118.5 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001105/0.9498, allocations: 38.84 kB / 0.7651 GB, free: 118.5 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.554e-05/0.9499, allocations: 45.33 kB / 0.7651 GB, free: 118.5 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003237/0.9531, allocations: 1.627 MB / 0.7667 GB, free: 118.5 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007144/0.9603, allocations: 5.154 MB / 0.7717 GB, free: 116.4 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002477/0.9628, allocations: 1.279 MB / 0.773 GB, free: 116.4 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001347/0.9642, allocations: 0.7958 MB / 0.7737 GB, free: 116.4 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002055/0.9662, allocations: 4.202 MB / 0.7778 GB, free: 111.6 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.757e-05/0.9663, allocations: 49.59 kB / 0.7779 GB, free: 111.5 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=131): time 3.526e-06/0.9663, allocations: 5.188 kB / 0.7779 GB, free: 111.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=134): time 0.008543/0.9748, allocations: 4.539 MB / 0.7823 GB, free: 110.4 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.825e-05/0.9749, allocations: 93.67 kB / 0.7824 GB, free: 110.3 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006233/0.9755, allocations: 0.6312 MB / 0.783 GB, free: 110.2 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 8.933e-05/0.9756, allocations: 50.39 kB / 0.7831 GB, free: 110.2 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000179/0.9758, allocations: 373 kB / 0.7834 GB, free: 110 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002312/0.976, allocations: 462.1 kB / 0.7839 GB, free: 109.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000325/0.9764, allocations: 227.8 kB / 0.7841 GB, free: 109.7 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.161e-05/0.9764, allocations: 353.3 kB / 0.7844 GB, free: 109.4 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001037/0.9775, allocations: 0.5619 MB / 0.785 GB, free: 109.4 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001122/0.9786, allocations: 0.7032 MB / 0.7857 GB, free: 109.3 MB / 0.5762 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.002336/0.981, allocations: 1.42 MB / 0.7871 GB, free: 108.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.981, allocations: 0 / 0.7871 GB, free: 108.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003231/0.9842, allocations: 1.846 MB / 0.7889 GB, free: 107.4 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.9842, allocations: 4.766 kB / 0.7889 GB, free: 107.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.619e-05/0.9843, allocations: 15.94 kB / 0.7889 GB, free: 107.4 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00224/0.9865, allocations: 0.609 MB / 0.7895 GB, free: 106.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009044/0.9874, allocations: 204.1 kB / 0.7897 GB, free: 106.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002061/0.9895, allocations: 2.788 MB / 0.7924 GB, free: 104.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008787/0.9904, allocations: 48.97 kB / 0.7924 GB, free: 104.1 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001157/0.9905, allocations: 54.14 kB / 0.7925 GB, free: 104.1 MB / 0.5762 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.0004499/0.991, allocations: 273.2 kB / 0.7928 GB, free: 103.9 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000217/0.9912, allocations: 112.3 kB / 0.7929 GB, free: 103.8 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003852/0.9951, allocations: 2.293 MB / 0.7951 GB, free: 101.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/0.9951, allocations: 16.59 kB / 0.7951 GB, free: 101.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.9951, allocations: 4.562 kB / 0.7951 GB, free: 101.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.139e-05/0.9951, allocations: 7.969 kB / 0.7951 GB, free: 101.8 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004385/0.9995, allocations: 2.921 MB / 0.798 GB, free: 98.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.061e-05/0.9995, allocations: 8 kB / 0.798 GB, free: 98.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009679/1.001, allocations: 201.7 kB / 0.7982 GB, free: 98.71 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006221/1.001, allocations: 288.7 kB / 0.7985 GB, free: 98.43 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.727e-05/1.001, allocations: 52.62 kB / 0.7985 GB, free: 98.38 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003623/1.005, allocations: 4.613 MB / 0.803 GB, free: 93.53 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/1.005, allocations: 1.531 kB / 0.803 GB, free: 93.53 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0041/1.009, allocations: 2.545 MB / 0.8055 GB, free: 90.97 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005241/1.01, allocations: 291.7 kB / 0.8058 GB, free: 90.66 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00017/1.01, allocations: 28.88 kB / 0.8058 GB, free: 90.64 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000733/1.01, allocations: 43.97 kB / 0.8058 GB, free: 90.59 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000158/1.011, allocations: 97.41 kB / 0.8059 GB, free: 90.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.429e-05/1.011, allocations: 56.52 kB / 0.806 GB, free: 90.45 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004602/1.011, allocations: 0.4912 MB / 0.8065 GB, free: 89.96 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.8e-07/1.011, allocations: 0 / 0.8065 GB, free: 89.96 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001729/1.013, allocations: 0.6712 MB / 0.8071 GB, free: 89.29 MB / 0.5762 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.001187/1.014, allocations: 0.8198 MB / 0.8079 GB, free: 88.56 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002965/1.017, allocations: 1.774 MB / 0.8097 GB, free: 86.77 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/1.017, allocations: 0 / 0.8097 GB, free: 86.77 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001774/1.019, allocations: 1.286 MB / 0.8109 GB, free: 85.45 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0016/1.021, allocations: 407.5 kB / 0.8113 GB, free: 85.11 MB / 0.5762 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10355:11-10355: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:10355:11-10355: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.003949/1.024, allocations: 2.687 MB / 0.8139 GB, free: 82.47 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003866/1.025, allocations: 1.079 MB / 0.815 GB, free: 81.36 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0007228/1.026, allocations: 242.1 kB / 0.8152 GB, free: 81.14 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002841/1.026, allocations: 115.3 kB / 0.8153 GB, free: 81.03 MB / 0.5762 GB Notification: Performance of SimCode: time 5.41e-07/1.026, allocations: 0 / 0.8153 GB, free: 81.03 MB / 0.5762 GB Notification: Performance of Templates: time 0.03487/1.061, allocations: 29.64 MB / 0.8443 GB, free: 51.91 MB / 0.5762 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 -s gbode -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