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.0014/0.0014, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.001619/0.001619, allocations: 216.3 kB / 22.25 MB, free: 5.129 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.497/1.497, allocations: 230.6 MB / 256 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] 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.81/0.81, allocations: 100.3 MB / 412.7 MB, free: 3.652 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.0026/0.0026, allocations: 87.36 kB / 0.5638 GB, free: 35.74 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1155/0.1181, allocations: 74.46 MB / 0.6365 GB, free: 7.156 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.08304/0.2011, allocations: 68.11 MB / 0.703 GB, free: 2.809 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.03524/0.2363, allocations: 27.12 MB / 0.7295 GB, free: 7.602 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00107/0.2374, allocations: 63.44 kB / 0.7295 GB, free: 7.539 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001486/0.2389, allocations: 0.5121 MB / 0.73 GB, free: 7.023 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.003835/0.2427, allocations: 1.305 MB / 0.7313 GB, free: 5.711 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.004496/0.2472, allocations: 1.656 MB / 0.7329 GB, free: 4.051 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002834/0.2501, allocations: 1.954 MB / 0.7348 GB, free: 2.09 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005024/0.2506, allocations: 219.9 kB / 0.735 GB, free: 1.859 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.3284/0.5789, allocations: 20.47 MB / 0.755 GB, free: 18.94 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001558/0.5805, allocations: 0.8621 MB / 0.7559 GB, free: 18.94 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003153/0.5808, allocations: 121.3 kB / 0.756 GB, free: 18.94 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2692/0.85, allocations: 126.7 MB / 0.8797 GB, free: 15.34 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0008931/0.8509, allocations: 336.2 kB / 0.8801 GB, free: 15.08 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0014/0.8523, allocations: 0.6844 MB / 0.8807 GB, free: 14.61 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.006678/0.859, allocations: 2.908 MB / 0.8836 GB, free: 12.02 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 9.137e-06/0.859, allocations: 3.984 kB / 0.8836 GB, free: 12.01 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.884e-06/0.859, allocations: 0 / 0.8836 GB, free: 12.01 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.047e-05/0.8591, allocations: 0 / 0.8836 GB, free: 12.01 MB / 0.6544 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.005592/0.8647, allocations: 2 MB / 0.8855 GB, free: 10.01 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.8647, allocations: 9.469 kB / 0.8855 GB, free: 10 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004124/0.8651, allocations: 161.2 kB / 0.8857 GB, free: 9.848 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001762/0.8669, allocations: 0.7975 MB / 0.8865 GB, free: 9.074 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003266/0.8672, allocations: 347 kB / 0.8868 GB, free: 8.676 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002261/0.8674, allocations: 107.9 kB / 0.8869 GB, free: 8.57 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002935/0.8704, allocations: 1.46 MB / 0.8883 GB, free: 7.07 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.568e-05/0.8704, allocations: 7.422 kB / 0.8883 GB, free: 7.066 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001163/0.8705, allocations: 36 kB / 0.8884 GB, free: 7.031 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.806e-05/0.8706, allocations: 41.98 kB / 0.8884 GB, free: 6.992 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00358/0.8742, allocations: 1.665 MB / 0.89 GB, free: 5.336 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009396/0.8836, allocations: 5.15 MB / 0.8951 GB, free: 68 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003039/0.8866, allocations: 1.204 MB / 0.8962 GB, free: 14.86 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001603/0.8882, allocations: 0.7415 MB / 0.897 GB, free: 14.12 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001645/0.8899, allocations: 404.1 kB / 0.8973 GB, free: 13.74 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.333e-05/0.8899, allocations: 50.75 kB / 0.8974 GB, free: 13.69 MB / 0.67 GB Notification: Performance of pre-optimization done (n=131): time 3.867e-06/0.8899, allocations: 0 / 0.8974 GB, free: 13.69 MB / 0.67 GB Notification: Performance of matching and sorting (n=134): time 0.01071/0.9006, allocations: 4.183 MB / 0.9015 GB, free: 9.531 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.446e-05/0.9007, allocations: 90.11 kB / 0.9016 GB, free: 9.426 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001098/0.9018, allocations: 0.7618 MB / 0.9023 GB, free: 8.641 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001584/0.9019, allocations: 56.61 kB / 0.9024 GB, free: 8.582 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003991/0.9023, allocations: 449.9 kB / 0.9028 GB, free: 8.137 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004905/0.9028, allocations: 486.8 kB / 0.9033 GB, free: 7.668 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004163/0.9033, allocations: 222.9 kB / 0.9035 GB, free: 7.445 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001764/0.9034, allocations: 353.9 kB / 0.9038 GB, free: 7.094 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001342/0.9048, allocations: 0.574 MB / 0.9044 GB, free: 6.523 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001484/0.9063, allocations: 0.7023 MB / 0.9051 GB, free: 5.789 MB / 0.67 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.003088/0.9093, allocations: 1.363 MB / 0.9064 GB, free: 4.414 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/0.9094, allocations: 7.938 kB / 0.9064 GB, free: 4.406 MB / 0.67 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004367/0.9137, allocations: 1.848 MB / 0.9082 GB, free: 2.57 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/0.9137, allocations: 4 kB / 0.9082 GB, free: 2.566 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.666e-05/0.9138, allocations: 12 kB / 0.9082 GB, free: 2.555 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002713/0.9165, allocations: 0.6143 MB / 0.9088 GB, free: 1.945 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001095/0.9176, allocations: 205.7 kB / 0.909 GB, free: 1.754 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003335/0.9209, allocations: 2.689 MB / 0.9116 GB, free: 14.95 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009434/0.9219, allocations: 59.97 kB / 0.9117 GB, free: 14.89 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001641/0.922, allocations: 55.95 kB / 0.9117 GB, free: 14.83 MB / 0.6856 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.0005871/0.9226, allocations: 274.8 kB / 0.912 GB, free: 14.57 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003338/0.923, allocations: 127.2 kB / 0.9121 GB, free: 14.44 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005066/0.928, allocations: 2.308 MB / 0.9144 GB, free: 12.13 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.989e-05/0.928, allocations: 12 kB / 0.9144 GB, free: 12.12 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.387e-05/0.9281, allocations: 4 kB / 0.9144 GB, free: 12.12 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.893e-05/0.9281, allocations: 7.969 kB / 0.9144 GB, free: 12.11 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0061/0.9342, allocations: 2.941 MB / 0.9173 GB, free: 9.156 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.953e-05/0.9342, allocations: 8 kB / 0.9173 GB, free: 9.148 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001156/0.9354, allocations: 199.5 kB / 0.9175 GB, free: 8.961 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008327/0.9362, allocations: 295.2 kB / 0.9178 GB, free: 8.672 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001354/0.9363, allocations: 47.94 kB / 0.9178 GB, free: 8.625 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005692/0.942, allocations: 4.407 MB / 0.9221 GB, free: 4.016 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.942, allocations: 0 / 0.9221 GB, free: 4.016 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006005/0.948, allocations: 2.576 MB / 0.9246 GB, free: 1.441 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006551/0.9487, allocations: 235 kB / 0.9248 GB, free: 1.211 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002454/0.9489, allocations: 35.94 kB / 0.9249 GB, free: 1.176 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008297/0.9498, allocations: 43.8 kB / 0.9249 GB, free: 1.137 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002562/0.95, allocations: 103.9 kB / 0.925 GB, free: 1.035 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001188/0.9501, allocations: 51.94 kB / 0.9251 GB, free: 0.9844 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0009343/0.9511, allocations: 0.5802 MB / 0.9256 GB, free: 404 kB / 0.6856 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9511, allocations: 0 / 0.9256 GB, free: 404 kB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001888/0.953, allocations: 0.6815 MB / 0.9263 GB, free: 15.71 MB / 0.7012 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.00167/0.9546, allocations: 0.826 MB / 0.9271 GB, free: 14.96 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.00418/0.9588, allocations: 1.69 MB / 0.9288 GB, free: 13.25 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.9588, allocations: 0 / 0.9288 GB, free: 13.25 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.002554/0.9614, allocations: 1.241 MB / 0.93 GB, free: 11.97 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002203/0.9636, allocations: 420.2 kB / 0.9304 GB, free: 11.59 MB / 0.7012 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10487:11-10487: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10487:11-10487: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.00641/0.97, allocations: 2.901 MB / 0.9332 GB, free: 8.691 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009988/0.971, allocations: 1.124 MB / 0.9343 GB, free: 7.539 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001061/0.972, allocations: 269.4 kB / 0.9346 GB, free: 7.273 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004315/0.9725, allocations: 122.9 kB / 0.9347 GB, free: 7.156 MB / 0.7012 GB Notification: Performance of SimCode: time 9.12e-07/0.9725, allocations: 0 / 0.9347 GB, free: 7.156 MB / 0.7012 GB Notification: Performance of Templates: time 0.05566/1.028, allocations: 31.16 MB / 0.9651 GB, free: 8.34 MB / 0.7325 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 -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/jenkins/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.507833127398044]