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.001376/0.001376, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001484/0.001484, allocations: 216.5 kB / 22.99 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.429/1.429, allocations: 230.6 MB / 256.8 MB, free: 7.816 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.8037/0.8037, allocations: 100.9 MB / 414.1 MB, free: 2.875 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.002566/0.002566, allocations: 90.48 kB / 0.5653 GB, free: 35.05 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1338, allocations: 74.61 MB / 0.6382 GB, free: 5.875 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.07305/0.2068, allocations: 60.84 MB / 0.6976 GB, free: 8.824 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02971/0.2365, allocations: 24.38 MB / 0.7214 GB, free: 376 kB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001109/0.2377, allocations: 59.44 kB / 0.7214 GB, free: 316 kB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001407/0.2391, allocations: 460.7 kB / 0.7219 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0037/0.2428, allocations: 1.27 MB / 0.7231 GB, free: 14.58 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00419/0.247, allocations: 1.63 MB / 0.7247 GB, free: 12.94 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002497/0.2495, allocations: 1.954 MB / 0.7266 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004/0.2499, allocations: 215.8 kB / 0.7268 GB, free: 10.76 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.04456/0.2944, allocations: 20.44 MB / 0.7468 GB, free: 6.148 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001467/0.2959, allocations: 0.8051 MB / 0.7476 GB, free: 5.34 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002637/0.2961, allocations: 120 kB / 0.7477 GB, free: 5.223 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.5645/0.8607, allocations: 126.2 MB / 0.8709 GB, free: 0.9922 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0007092/0.8614, allocations: 336.7 kB / 0.8712 GB, free: 0.7344 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.000857/0.8622, allocations: 0.5657 MB / 0.8718 GB, free: 344 kB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.005818/0.868, allocations: 2.782 MB / 0.8745 GB, free: 13.92 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.8681, allocations: 0 / 0.8745 GB, free: 13.92 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.853e-06/0.8681, allocations: 0 / 0.8745 GB, free: 13.92 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 2.18e-05/0.8681, allocations: 0 / 0.8745 GB, free: 13.92 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.004453/0.8725, allocations: 2.001 MB / 0.8765 GB, free: 11.91 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.8726, allocations: 9.469 kB / 0.8765 GB, free: 11.91 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01014/0.8827, allocations: 1.798 MB / 0.8782 GB, free: 10.11 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002002/0.8847, allocations: 0.949 MB / 0.8791 GB, free: 9.188 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003267/0.885, allocations: 354.9 kB / 0.8795 GB, free: 8.777 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002512/0.8853, allocations: 99.95 kB / 0.8796 GB, free: 8.68 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003782/0.8891, allocations: 2.305 MB / 0.8818 GB, free: 6.309 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.317e-05/0.8891, allocations: 7.656 kB / 0.8818 GB, free: 6.305 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001335/0.8892, allocations: 40 kB / 0.8819 GB, free: 6.266 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.917e-05/0.8893, allocations: 42 kB / 0.8819 GB, free: 6.223 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004178/0.8935, allocations: 2.349 MB / 0.8842 GB, free: 3.887 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01205/0.9055, allocations: 5.994 MB / 0.8901 GB, free: 13.94 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003223/0.9088, allocations: 1.368 MB / 0.8914 GB, free: 12.56 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001783/0.9105, allocations: 0.8984 MB / 0.8923 GB, free: 11.67 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000911/0.9115, allocations: 239.7 kB / 0.8925 GB, free: 11.45 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.72e-05/0.9115, allocations: 49.98 kB / 0.8926 GB, free: 11.39 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=131): time 4.087e-06/0.9115, allocations: 0 / 0.8926 GB, free: 11.39 MB / 0.6544 GB Notification: Performance of matching and sorting (n=134): time 0.01232/0.9238, allocations: 5.12 MB / 0.8976 GB, free: 6.262 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.97e-05/0.9239, allocations: 101.1 kB / 0.8976 GB, free: 6.148 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007897/0.9247, allocations: 0.6222 MB / 0.8983 GB, free: 5.516 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0001411/0.9248, allocations: 49.7 kB / 0.8983 GB, free: 5.461 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003709/0.9252, allocations: 457.7 kB / 0.8987 GB, free: 5.008 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004708/0.9257, allocations: 491.9 kB / 0.8992 GB, free: 4.535 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005311/0.9262, allocations: 322.7 kB / 0.8995 GB, free: 4.215 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001816/0.9264, allocations: 353.9 kB / 0.8999 GB, free: 3.863 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001574/0.928, allocations: 0.7287 MB / 0.9006 GB, free: 3.137 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001774/0.9297, allocations: 0.861 MB / 0.9014 GB, free: 2.246 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.003737/0.9335, allocations: 1.692 MB / 0.9031 GB, free: 0.5391 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.9335, allocations: 0 / 0.9031 GB, free: 0.5391 MB / 0.6544 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.005381/0.9389, allocations: 2.324 MB / 0.9053 GB, free: 14.23 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.601e-05/0.9389, allocations: 7.984 kB / 0.9053 GB, free: 14.22 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02893/0.9678, allocations: 3.316 MB / 0.9086 GB, free: 10.93 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02415/0.992, allocations: 1.65 MB / 0.9102 GB, free: 9.277 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001703/0.9937, allocations: 289.2 kB / 0.9105 GB, free: 9.004 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004053/0.9977, allocations: 2.97 MB / 0.9134 GB, free: 5.926 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001638/0.9994, allocations: 71.91 kB / 0.9134 GB, free: 5.855 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002368/0.9996, allocations: 111.8 kB / 0.9135 GB, free: 5.746 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 (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.0006926/1, allocations: 270.8 kB / 0.9138 GB, free: 5.48 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003883/1.001, allocations: 115.2 kB / 0.9139 GB, free: 5.367 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005622/1.006, allocations: 2.737 MB / 0.9166 GB, free: 2.641 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.752e-05/1.006, allocations: 12 kB / 0.9166 GB, free: 2.629 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.388e-06/1.006, allocations: 4 kB / 0.9166 GB, free: 2.625 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.203e-05/1.006, allocations: 3.984 kB / 0.9166 GB, free: 2.621 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00619/1.013, allocations: 2.806 MB / 0.9193 GB, free: 15.82 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.003489/1.016, allocations: 1.601 MB / 0.9209 GB, free: 14.22 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00157/1.018, allocations: 242.4 kB / 0.9211 GB, free: 14 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007621/1.018, allocations: 281.3 kB / 0.9214 GB, free: 13.71 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00013/1.018, allocations: 49.03 kB / 0.9214 GB, free: 13.67 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005229/1.024, allocations: 4.326 MB / 0.9257 GB, free: 9.172 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/1.024, allocations: 3.797 kB / 0.9257 GB, free: 9.172 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005884/1.03, allocations: 2.696 MB / 0.9283 GB, free: 6.465 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007421/1.03, allocations: 231.2 kB / 0.9285 GB, free: 6.238 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002089/1.031, allocations: 31.89 kB / 0.9286 GB, free: 6.207 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00116/1.032, allocations: 67.81 kB / 0.9286 GB, free: 6.141 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002555/1.032, allocations: 104.8 kB / 0.9287 GB, free: 6.039 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001195/1.032, allocations: 51.94 kB / 0.9288 GB, free: 5.988 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0007114/1.033, allocations: 0.522 MB / 0.9293 GB, free: 5.457 MB / 0.6856 GB Notification: Performance of sort global known variables: time 7.1e-08/1.033, allocations: 0 / 0.9293 GB, free: 5.457 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.001752/1.035, allocations: 499.5 kB / 0.9298 GB, free: 4.969 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 (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.0009746/1.036, allocations: 0.5316 MB / 0.9303 GB, free: 4.496 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.004322/1.04, allocations: 1.822 MB / 0.9321 GB, free: 2.684 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 6.692e-06/1.04, allocations: 0 / 0.9321 GB, free: 2.684 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.002434/1.042, allocations: 1.172 MB / 0.9332 GB, free: 1.512 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00171/1.044, allocations: 335.1 kB / 0.9335 GB, free: 1.211 MB / 0.6856 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10546:11-10546: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:10546:11-10546: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.005913/1.05, allocations: 3.005 MB / 0.9365 GB, free: 14.19 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006004/1.051, allocations: 0.5431 MB / 0.937 GB, free: 13.61 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007453/1.051, allocations: 183.2 kB / 0.9372 GB, free: 13.43 MB / 0.7012 GB Notification: Performance of SimCode: time 1.413e-06/1.051, allocations: 0 / 0.9372 GB, free: 13.43 MB / 0.7012 GB Notification: Performance of Templates: time 0.05421/1.105, allocations: 38.61 MB / 0.9749 GB, free: 7.023 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/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: 11.322513302322477]