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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 78.17 kB / 19.76 MB, free: 2.031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001396/0.001396, allocations: 158.2 kB / 23.01 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.326/1.326, allocations: 177.2 MB / 203.4 MB, free: 8.957 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.718/0.718, allocations: 79.61 MB / 339.4 MB, free: 11 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Processes.Tests.Pump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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=1000,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") [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002486/0.002486, allocations: 86.75 kB / 0.4924 GB, free: 25.99 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.118, allocations: 74.58 MB / 0.5652 GB, free: 5.984 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.07184/0.1898, allocations: 60.84 MB / 0.6246 GB, free: 8.926 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02925/0.219, allocations: 24.38 MB / 0.6484 GB, free: 476 kB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001037/0.2201, allocations: 63.44 kB / 0.6485 GB, free: 412 kB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001299/0.2214, allocations: 460.8 kB / 0.6489 GB, free: 15.95 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.00324/0.2246, allocations: 1.274 MB / 0.6502 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.004057/0.2287, allocations: 1.633 MB / 0.6518 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.00244/0.2311, allocations: 1.958 MB / 0.6537 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004084/0.2315, allocations: 207.9 kB / 0.6539 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.04803/0.2796, allocations: 20.5 MB / 0.6739 GB, free: 6.18 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001378/0.2809, allocations: 0.8051 MB / 0.6747 GB, free: 5.371 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000235/0.2812, allocations: 120 kB / 0.6748 GB, free: 5.254 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.5295/0.8106, allocations: 126.6 MB / 0.7985 GB, free: 15.04 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0005932/0.8112, allocations: 326.7 kB / 0.7988 GB, free: 14.79 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0007901/0.812, allocations: 0.572 MB / 0.7993 GB, free: 14.38 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.004853/0.8169, allocations: 2.782 MB / 0.802 GB, free: 11.97 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.8169, allocations: 0 / 0.802 GB, free: 11.97 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.413e-06/0.8169, allocations: 0 / 0.802 GB, free: 11.97 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 2.315e-05/0.8169, allocations: 0 / 0.802 GB, free: 11.97 MB / 0.6231 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.004087/0.821, allocations: 1.998 MB / 0.804 GB, free: 9.969 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.821, allocations: 9.469 kB / 0.804 GB, free: 9.961 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01032/0.8313, allocations: 1.806 MB / 0.8058 GB, free: 8.152 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001801/0.8331, allocations: 0.9469 MB / 0.8067 GB, free: 7.234 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002922/0.8334, allocations: 347 kB / 0.807 GB, free: 6.832 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002248/0.8337, allocations: 107.9 kB / 0.8071 GB, free: 6.727 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003709/0.8374, allocations: 2.302 MB / 0.8094 GB, free: 4.359 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.125e-05/0.8374, allocations: 7.562 kB / 0.8094 GB, free: 4.355 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001415/0.8375, allocations: 40 kB / 0.8094 GB, free: 4.316 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.72e-05/0.8376, allocations: 41.98 kB / 0.8095 GB, free: 4.273 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004224/0.8418, allocations: 2.352 MB / 0.8118 GB, free: 1.934 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01105/0.8529, allocations: 5.99 MB / 0.8176 GB, free: 11.98 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003128/0.856, allocations: 1.366 MB / 0.8189 GB, free: 10.6 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001799/0.8578, allocations: 0.8946 MB / 0.8198 GB, free: 9.703 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008541/0.8587, allocations: 230.8 kB / 0.82 GB, free: 9.488 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.311e-05/0.8587, allocations: 55.5 kB / 0.8201 GB, free: 9.422 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=131): time 3.496e-06/0.8587, allocations: 0 / 0.8201 GB, free: 9.422 MB / 0.6387 GB Notification: Performance of matching and sorting (n=134): time 0.01224/0.871, allocations: 5.124 MB / 0.8251 GB, free: 4.293 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.796e-05/0.871, allocations: 94.05 kB / 0.8252 GB, free: 4.184 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007223/0.8718, allocations: 0.6291 MB / 0.8258 GB, free: 3.547 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001427/0.8719, allocations: 51.34 kB / 0.8258 GB, free: 3.492 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003486/0.8722, allocations: 465.7 kB / 0.8263 GB, free: 3.031 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004495/0.8727, allocations: 485.5 kB / 0.8268 GB, free: 2.566 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005261/0.8732, allocations: 330.6 kB / 0.8271 GB, free: 2.238 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001654/0.8734, allocations: 353.9 kB / 0.8274 GB, free: 1.887 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001581/0.875, allocations: 0.7209 MB / 0.8281 GB, free: 1.168 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001816/0.8768, allocations: 0.8624 MB / 0.829 GB, free: 280 kB / 0.6387 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.00386/0.8806, allocations: 1.685 MB / 0.8306 GB, free: 14.57 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.8806, allocations: 0 / 0.8306 GB, free: 14.57 MB / 0.6544 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.005421/0.8861, allocations: 2.322 MB / 0.8329 GB, free: 12.27 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.12e-05/0.8861, allocations: 8.656 kB / 0.8329 GB, free: 12.26 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02967/0.9158, allocations: 3.32 MB / 0.8361 GB, free: 8.965 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02506/0.9408, allocations: 1.658 MB / 0.8377 GB, free: 7.312 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001571/0.9424, allocations: 286.1 kB / 0.838 GB, free: 7.043 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003966/0.9464, allocations: 2.978 MB / 0.8409 GB, free: 3.957 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001506/0.9479, allocations: 67.91 kB / 0.841 GB, free: 3.891 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002703/0.9481, allocations: 107.8 kB / 0.8411 GB, free: 3.785 MB / 0.6544 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 (107): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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,36)} Notification: Performance of prepare postOptimizeDAE: time 0.0006853/0.9488, allocations: 287 kB / 0.8414 GB, free: 3.508 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004444/0.9493, allocations: 115.2 kB / 0.8415 GB, free: 3.395 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005596/0.9549, allocations: 2.717 MB / 0.8441 GB, free: 0.6875 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-05/0.9549, allocations: 16 kB / 0.8441 GB, free: 0.6719 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/0.9549, allocations: 4 kB / 0.8441 GB, free: 0.668 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.473e-05/0.9549, allocations: 11.97 kB / 0.8442 GB, free: 0.6562 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006013/0.9609, allocations: 2.798 MB / 0.8469 GB, free: 13.86 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.003503/0.9644, allocations: 1.6 MB / 0.8484 GB, free: 12.27 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001573/0.966, allocations: 245.6 kB / 0.8487 GB, free: 12.04 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007817/0.9668, allocations: 290.4 kB / 0.849 GB, free: 11.75 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001379/0.9669, allocations: 43.94 kB / 0.849 GB, free: 11.71 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005242/0.9721, allocations: 4.312 MB / 0.8532 GB, free: 7.219 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.9722, allocations: 4.031 kB / 0.8532 GB, free: 7.215 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005651/0.9778, allocations: 2.706 MB / 0.8559 GB, free: 4.5 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005695/0.9784, allocations: 231 kB / 0.8561 GB, free: 4.273 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002038/0.9786, allocations: 35.88 kB / 0.8561 GB, free: 4.238 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001153/0.9797, allocations: 60.77 kB / 0.8562 GB, free: 4.18 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002303/0.98, allocations: 100.8 kB / 0.8563 GB, free: 4.082 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001424/0.9801, allocations: 51.94 kB / 0.8563 GB, free: 4.031 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.000688/0.9808, allocations: 0.5228 MB / 0.8568 GB, free: 3.496 MB / 0.67 GB Notification: Performance of sort global known variables: time 8e-08/0.9808, allocations: 0 / 0.8568 GB, free: 3.496 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001572/0.9824, allocations: 495.5 kB / 0.8573 GB, free: 3.012 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 (103): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0008894/0.9833, allocations: 0.5432 MB / 0.8578 GB, free: 2.52 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.004228/0.9875, allocations: 1.824 MB / 0.8596 GB, free: 0.7031 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.9875, allocations: 0 / 0.8596 GB, free: 0.7031 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.002375/0.9899, allocations: 1.159 MB / 0.8607 GB, free: 15.54 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001524/0.9914, allocations: 335.6 kB / 0.8611 GB, free: 15.23 MB / 0.6856 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10545:11-10545: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:10545:11-10545: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.005631/0.997, allocations: 2.96 MB / 0.864 GB, free: 12.27 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006024/0.9976, allocations: 0.5592 MB / 0.8645 GB, free: 11.68 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001176/0.9988, allocations: 324.2 kB / 0.8648 GB, free: 11.36 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005612/0.9994, allocations: 160.3 kB / 0.865 GB, free: 11.2 MB / 0.6856 GB Notification: Performance of SimCode: time 8.72e-07/0.9994, allocations: 3.938 kB / 0.865 GB, free: 11.2 MB / 0.6856 GB Notification: Performance of Templates: time 0.05911/1.058, allocations: 39.12 MB / 0.9032 GB, free: 4.637 MB / 0.7169 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.makefile [Timeout 660] (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 ida -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.pipe 2>&1) [Timeout 1200] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.462965340004303]