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.001572/0.001572, allocations: 108 kB / 15.99 MB, free: 6.363 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.001574/0.001575, allocations: 191.5 kB / 16.91 MB, free: 6.195 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.409/1.409, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8536/0.8536, allocations: 93.7 MB / 384.4 MB, free: 5.461 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00238/0.00238, allocations: 79.88 kB / 463.5 MB, free: 6.492 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1447/0.1471, allocations: 68.27 MB / 0.5194 GB, free: 2.145 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.3007/0.4479, allocations: 67.82 MB / 0.5856 GB, free: 1.551 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03283/0.4808, allocations: 26.74 MB / 0.6117 GB, free: 13.98 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00203/0.4828, allocations: 56.69 kB / 0.6118 GB, free: 13.96 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001678/0.4845, allocations: 447.5 kB / 0.6122 GB, free: 13.6 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004712/0.4893, allocations: 1.17 MB / 0.6133 GB, free: 12.66 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005187/0.4945, allocations: 1.497 MB / 0.6148 GB, free: 11.67 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.00313/0.4977, allocations: 1.926 MB / 0.6167 GB, free: 10.55 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007705/0.4985, allocations: 360.8 kB / 0.617 GB, free: 10.39 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.04948/0.548, allocations: 19.99 MB / 0.6365 GB, free: 7.52 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001708/0.5497, allocations: 0.8522 MB / 0.6374 GB, free: 6.664 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006002/0.5503, allocations: 123.9 kB / 0.6375 GB, free: 6.543 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.5797/1.13, allocations: 127.9 MB / 0.7623 GB, free: 110.3 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0007749/1.131, allocations: 331.8 kB / 0.7627 GB, free: 110.3 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001274/1.132, allocations: 0.6931 MB / 0.7633 GB, free: 110.3 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.004917/1.137, allocations: 2.092 MB / 0.7654 GB, free: 110.2 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/1.137, allocations: 4.938 kB / 0.7654 GB, free: 110.2 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.954e-06/1.137, allocations: 0 / 0.7654 GB, free: 110.2 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.435e-05/1.137, allocations: 0 / 0.7654 GB, free: 110.2 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.005551/1.143, allocations: 2.027 MB / 0.7674 GB, free: 109.4 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/1.143, allocations: 13.25 kB / 0.7674 GB, free: 109.4 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004072/1.143, allocations: 146.6 kB / 0.7675 GB, free: 109.3 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001403/1.145, allocations: 0.8146 MB / 0.7683 GB, free: 108.9 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001753/1.145, allocations: 220.8 kB / 0.7685 GB, free: 108.8 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000206/1.145, allocations: 101.8 kB / 0.7686 GB, free: 108.8 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002691/1.148, allocations: 1.444 MB / 0.77 GB, free: 108.6 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.216e-05/1.148, allocations: 3.891 kB / 0.77 GB, free: 108.6 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001114/1.148, allocations: 40 kB / 0.7701 GB, free: 108.6 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.711e-05/1.148, allocations: 45.09 kB / 0.7701 GB, free: 108.6 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003029/1.151, allocations: 1.631 MB / 0.7717 GB, free: 108.6 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007627/1.159, allocations: 5.221 MB / 0.7768 GB, free: 106.1 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002422/1.161, allocations: 1.274 MB / 0.7781 GB, free: 105.9 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001264/1.162, allocations: 0.7991 MB / 0.7788 GB, free: 105.8 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002188/1.165, allocations: 4.201 MB / 0.7829 GB, free: 100.9 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.232e-05/1.165, allocations: 53.19 kB / 0.783 GB, free: 100.9 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=131): time 5.551e-06/1.165, allocations: 1.734 kB / 0.783 GB, free: 100.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=134): time 0.008715/1.173, allocations: 4.602 MB / 0.7875 GB, free: 97.34 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/1.173, allocations: 95.73 kB / 0.7876 GB, free: 97.23 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007786/1.174, allocations: 0.7565 MB / 0.7883 GB, free: 96.63 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001124/1.174, allocations: 50.08 kB / 0.7884 GB, free: 96.59 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002297/1.175, allocations: 448 kB / 0.7888 GB, free: 96.35 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002501/1.175, allocations: 467.3 kB / 0.7892 GB, free: 95.96 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000309/1.175, allocations: 221.8 kB / 0.7894 GB, free: 95.81 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.226e-05/1.175, allocations: 354.2 kB / 0.7898 GB, free: 95.48 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001028/1.176, allocations: 0.5596 MB / 0.7903 GB, free: 95.12 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001141/1.177, allocations: 0.7015 MB / 0.791 GB, free: 94.61 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.0024/1.18, allocations: 1.426 MB / 0.7924 GB, free: 93.65 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.151e-06/1.18, allocations: 4.5 kB / 0.7924 GB, free: 93.64 MB / 0.5762 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003424/1.183, allocations: 1.855 MB / 0.7942 GB, free: 92.37 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.589e-05/1.183, allocations: 11.09 kB / 0.7942 GB, free: 92.36 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.127e-05/1.183, allocations: 12 kB / 0.7942 GB, free: 92.35 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002333/1.186, allocations: 0.6055 MB / 0.7948 GB, free: 91.84 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00101/1.187, allocations: 210.6 kB / 0.795 GB, free: 91.65 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002266/1.189, allocations: 2.783 MB / 0.7978 GB, free: 89.09 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00125/1.19, allocations: 54.69 kB / 0.7978 GB, free: 89.05 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001534/1.19, allocations: 65.58 kB / 0.7979 GB, free: 89.01 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.0005964/1.191, allocations: 287.1 kB / 0.7981 GB, free: 88.81 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002854/1.191, allocations: 118.5 kB / 0.7983 GB, free: 88.69 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003928/1.195, allocations: 2.304 MB / 0.8005 GB, free: 87.12 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/1.195, allocations: 12 kB / 0.8005 GB, free: 87.11 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/1.195, allocations: 8.25 kB / 0.8005 GB, free: 87.11 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.354e-05/1.195, allocations: 6 kB / 0.8005 GB, free: 87.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004512/1.2, allocations: 2.977 MB / 0.8034 GB, free: 84.17 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.61e-05/1.2, allocations: 11.98 kB / 0.8034 GB, free: 84.16 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001027/1.201, allocations: 200 kB / 0.8036 GB, free: 83.97 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006781/1.202, allocations: 295.4 kB / 0.8039 GB, free: 83.68 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001062/1.202, allocations: 51.94 kB / 0.804 GB, free: 83.63 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003678/1.205, allocations: 4.608 MB / 0.8085 GB, free: 78.78 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.91e-06/1.205, allocations: 2.547 kB / 0.8085 GB, free: 78.78 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004562/1.21, allocations: 2.558 MB / 0.811 GB, free: 76.21 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006287/1.211, allocations: 308.6 kB / 0.8113 GB, free: 75.89 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002036/1.211, allocations: 31.92 kB / 0.8113 GB, free: 75.86 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008197/1.212, allocations: 47.88 kB / 0.8113 GB, free: 75.82 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001888/1.212, allocations: 99.05 kB / 0.8114 GB, free: 75.72 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/1.212, allocations: 53.25 kB / 0.8115 GB, free: 75.67 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000601/1.213, allocations: 0.5841 MB / 0.8121 GB, free: 75.08 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.8e-07/1.213, allocations: 0 / 0.8121 GB, free: 75.08 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002039/1.215, allocations: 0.6752 MB / 0.8127 GB, free: 74.4 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.001572/1.216, allocations: 0.8176 MB / 0.8135 GB, free: 73.68 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003876/1.22, allocations: 2.004 MB / 0.8155 GB, free: 71.66 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/1.22, allocations: 0 / 0.8155 GB, free: 71.66 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001901/1.222, allocations: 1.278 MB / 0.8167 GB, free: 70.35 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002102/1.224, allocations: 432.5 kB / 0.8171 GB, free: 69.98 MB / 0.5762 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10264:11-10264: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:10264:11-10264: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.004816/1.229, allocations: 3.328 MB / 0.8204 GB, free: 66.69 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004147/1.229, allocations: 1.135 MB / 0.8215 GB, free: 65.52 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005224/1.23, allocations: 139.3 kB / 0.8216 GB, free: 65.39 MB / 0.5762 GB Notification: Performance of SimCode: time 5.41e-07/1.23, allocations: 0 / 0.8216 GB, free: 65.39 MB / 0.5762 GB Notification: Performance of Templates: time 0.03465/1.265, allocations: 33.6 MB / 0.8544 GB, free: 32.23 MB / 0.5762 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 -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