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.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.001909/0.001909, allocations: 113 kB / 18.94 MB, free: 2.934 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.002652/0.002652, allocations: 208.3 kB / 22.25 MB, free: 5.086 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.521/1.521, allocations: 230.6 MB / 256 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.8029/0.8029, allocations: 94.55 MB / 407 MB, free: 9.227 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/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_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_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.002901/0.002901, allocations: 87.45 kB / 0.5554 GB, free: 38.47 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1195, allocations: 73.05 MB / 0.6268 GB, free: 12 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.08615/0.2057, allocations: 68.12 MB / 0.6933 GB, free: 11.66 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.03635/0.242, allocations: 27.12 MB / 0.7198 GB, free: 476 kB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001334/0.2434, allocations: 59.44 kB / 0.7198 GB, free: 416 kB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.00166/0.245, allocations: 0.52 MB / 0.7203 GB, free: 15.88 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.004021/0.2491, allocations: 1.297 MB / 0.7216 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.004698/0.2538, allocations: 1.663 MB / 0.7232 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.003007/0.2568, allocations: 1.958 MB / 0.7251 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005385/0.2573, allocations: 211.9 kB / 0.7253 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.04927/0.3066, allocations: 20.5 MB / 0.7454 GB, free: 6.055 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001688/0.3083, allocations: 0.8637 MB / 0.7462 GB, free: 5.188 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0004516/0.3087, allocations: 124 kB / 0.7463 GB, free: 5.066 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.5529/0.8616, allocations: 126.7 MB / 0.87 GB, free: 14.98 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0007085/0.8623, allocations: 330 kB / 0.8704 GB, free: 14.73 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.001336/0.8637, allocations: 0.6887 MB / 0.871 GB, free: 14.26 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.006471/0.8702, allocations: 2.904 MB / 0.8739 GB, free: 11.72 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.8702, allocations: 0 / 0.8739 GB, free: 11.72 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.984e-06/0.8702, allocations: 0 / 0.8739 GB, free: 11.72 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 3.484e-05/0.8702, allocations: 0 / 0.8739 GB, free: 11.72 MB / 0.6387 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.004797/0.875, allocations: 1.995 MB / 0.8758 GB, free: 9.73 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.875, allocations: 12.03 kB / 0.8758 GB, free: 9.719 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003659/0.8754, allocations: 157.3 kB / 0.876 GB, free: 9.566 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00169/0.8771, allocations: 0.8015 MB / 0.8768 GB, free: 8.793 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000344/0.8774, allocations: 350 kB / 0.8771 GB, free: 8.395 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002105/0.8776, allocations: 108.8 kB / 0.8772 GB, free: 8.289 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00281/0.8805, allocations: 1.457 MB / 0.8786 GB, free: 6.793 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.569e-05/0.8805, allocations: 14.77 kB / 0.8786 GB, free: 6.781 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001089/0.8806, allocations: 36 kB / 0.8787 GB, free: 6.746 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-05/0.8807, allocations: 45.98 kB / 0.8787 GB, free: 6.703 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003452/0.8841, allocations: 1.653 MB / 0.8803 GB, free: 5.055 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009211/0.8933, allocations: 5.137 MB / 0.8853 GB, free: 15.81 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002896/0.8962, allocations: 1.217 MB / 0.8865 GB, free: 14.59 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001548/0.8978, allocations: 0.7336 MB / 0.8872 GB, free: 13.86 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001667/0.8994, allocations: 403.4 kB / 0.8876 GB, free: 13.48 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.014e-05/0.8995, allocations: 47.56 kB / 0.8877 GB, free: 13.43 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=131): time 3.346e-06/0.8995, allocations: 1.875 kB / 0.8877 GB, free: 13.43 MB / 0.6544 GB Notification: Performance of matching and sorting (n=134): time 0.01018/0.9097, allocations: 4.196 MB / 0.8918 GB, free: 9.266 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.336e-05/0.9097, allocations: 90.11 kB / 0.8919 GB, free: 9.16 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001049/0.9108, allocations: 0.764 MB / 0.8926 GB, free: 8.375 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0001327/0.9109, allocations: 45.7 kB / 0.8927 GB, free: 8.324 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003987/0.9113, allocations: 453.9 kB / 0.8931 GB, free: 7.875 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004574/0.9118, allocations: 482.9 kB / 0.8935 GB, free: 7.41 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003895/0.9122, allocations: 230.9 kB / 0.8938 GB, free: 7.18 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001821/0.9123, allocations: 349.9 kB / 0.8941 GB, free: 6.832 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001315/0.9137, allocations: 0.5686 MB / 0.8947 GB, free: 6.266 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001515/0.9152, allocations: 0.7061 MB / 0.8953 GB, free: 5.531 MB / 0.6544 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.003025/0.9182, allocations: 1.353 MB / 0.8967 GB, free: 4.156 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.9182, allocations: 3.938 kB / 0.8967 GB, free: 4.152 MB / 0.6544 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004255/0.9225, allocations: 1.85 MB / 0.8985 GB, free: 2.312 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/0.9225, allocations: 9.312 kB / 0.8985 GB, free: 2.305 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.096e-05/0.9225, allocations: 12 kB / 0.8985 GB, free: 2.293 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002615/0.9251, allocations: 0.607 MB / 0.8991 GB, free: 1.688 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/0.9262, allocations: 211.5 kB / 0.8993 GB, free: 1.492 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003314/0.9295, allocations: 2.687 MB / 0.9019 GB, free: 14.68 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000978/0.9305, allocations: 51.92 kB / 0.902 GB, free: 14.62 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001484/0.9306, allocations: 59.95 kB / 0.902 GB, free: 14.57 MB / 0.67 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.000562/0.9312, allocations: 280.6 kB / 0.9023 GB, free: 14.3 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002955/0.9315, allocations: 127.2 kB / 0.9024 GB, free: 14.17 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004919/0.9364, allocations: 2.304 MB / 0.9047 GB, free: 11.88 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.91e-05/0.9364, allocations: 16.41 kB / 0.9047 GB, free: 11.86 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.365e-06/0.9364, allocations: 4 kB / 0.9047 GB, free: 11.86 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-05/0.9365, allocations: 11.97 kB / 0.9047 GB, free: 11.85 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005939/0.9424, allocations: 2.945 MB / 0.9076 GB, free: 8.895 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.006e-05/0.9424, allocations: 8 kB / 0.9076 GB, free: 8.887 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001117/0.9436, allocations: 205.5 kB / 0.9078 GB, free: 8.695 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008235/0.9444, allocations: 293 kB / 0.908 GB, free: 8.406 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001221/0.9445, allocations: 49.25 kB / 0.9081 GB, free: 8.359 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005626/0.9501, allocations: 4.403 MB / 0.9124 GB, free: 3.758 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.089e-05/0.9501, allocations: 3.984 kB / 0.9124 GB, free: 3.754 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00565/0.9558, allocations: 2.571 MB / 0.9149 GB, free: 1.176 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006398/0.9564, allocations: 242.1 kB / 0.9151 GB, free: 0.9414 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002047/0.9566, allocations: 24 kB / 0.9152 GB, free: 0.918 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000797/0.9574, allocations: 44.83 kB / 0.9152 GB, free: 0.875 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002148/0.9576, allocations: 100.8 kB / 0.9153 GB, free: 0.7734 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001143/0.9578, allocations: 55.94 kB / 0.9154 GB, free: 0.7188 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0008307/0.9586, allocations: 0.5802 MB / 0.9159 GB, free: 132 kB / 0.67 GB Notification: Performance of sort global known variables: time 9e-08/0.9586, allocations: 0 / 0.9159 GB, free: 132 kB / 0.67 GB Notification: Performance of remove unused functions: time 0.001841/0.9604, allocations: 0.6817 MB / 0.9166 GB, free: 15.44 MB / 0.6856 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.001555/0.962, allocations: 0.8289 MB / 0.9174 GB, free: 14.7 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.003981/0.966, allocations: 1.685 MB / 0.919 GB, free: 12.99 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 1.1e-05/0.966, allocations: 4 kB / 0.919 GB, free: 12.99 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.002559/0.9685, allocations: 1.244 MB / 0.9203 GB, free: 11.71 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002003/0.9705, allocations: 418.4 kB / 0.9207 GB, free: 11.33 MB / 0.6856 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.0061/0.9766, allocations: 2.904 MB / 0.9235 GB, free: 8.461 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008782/0.9775, allocations: 1.136 MB / 0.9246 GB, free: 7.297 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.00104/0.9786, allocations: 253.5 kB / 0.9249 GB, free: 7.047 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003845/0.9789, allocations: 123.3 kB / 0.925 GB, free: 6.926 MB / 0.6856 GB Notification: Performance of SimCode: time 1.112e-06/0.9789, allocations: 0 / 0.925 GB, free: 6.926 MB / 0.6856 GB Notification: Performance of Templates: time 0.0549/1.034, allocations: 31.16 MB / 0.9554 GB, free: 8.117 MB / 0.7169 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.makefile [Timeout 660] (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 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_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_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.579523325897753]