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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001556/0.001556, allocations: 105.9 kB / 18.67 MB, free: 3.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006966/0.006966, allocations: 194.2 kB / 21.93 MB, free: 5.598 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.533/1.533, allocations: 225.6 MB / 250.6 MB, free: 13.41 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo): time 0.8809/0.8809, allocations: 94.6 MB / 400.4 MB, free: 15.82 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-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=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: Performance of FrontEnd - loaded program: time 0.002401/0.002401, allocations: 89.02 kB / 0.5464 GB, free: 42.94 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1489/0.1513, allocations: 71.84 MB / 0.6166 GB, free: 8.613 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.0896/0.2409, allocations: 68.01 MB / 0.683 GB, free: 4.367 MB / 0.5138 GB Notification: Performance of NFInst.instExpressions: time 0.03896/0.2799, allocations: 27.12 MB / 0.7095 GB, free: 9.164 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00217/0.282, allocations: 43.75 kB / 0.7095 GB, free: 9.121 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002386/0.2844, allocations: 0.5082 MB / 0.71 GB, free: 8.609 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.005405/0.2898, allocations: 1.297 MB / 0.7113 GB, free: 7.305 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.006227/0.296, allocations: 1.641 MB / 0.7129 GB, free: 5.66 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.003848/0.2999, allocations: 1.942 MB / 0.7148 GB, free: 3.707 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007568/0.3007, allocations: 223.5 kB / 0.715 GB, free: 3.48 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0619/0.3626, allocations: 20.59 MB / 0.7351 GB, free: 14.7 MB / 0.5763 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002197/0.3647, allocations: 0.8676 MB / 0.7359 GB, free: 13.83 MB / 0.5763 GB Notification: Performance of NFPackage.collectConstants: time 0.001072/0.3658, allocations: 120 kB / 0.7361 GB, free: 13.71 MB / 0.5763 GB Notification: Performance of NFFlatten.collectFunctions: time 0.7317/1.098, allocations: 128 MB / 0.8611 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0008066/1.098, allocations: 327.2 kB / 0.8614 GB, free: 12.96 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.00178/1.1, allocations: 0.6868 MB / 0.8621 GB, free: 12.49 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.008661/1.109, allocations: 2.91 MB / 0.8649 GB, free: 9.945 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/1.109, allocations: 0 / 0.8649 GB, free: 9.945 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.104e-06/1.109, allocations: 0 / 0.8649 GB, free: 9.945 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 7.276e-05/1.109, allocations: 0 / 0.8649 GB, free: 9.945 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.006017/1.115, allocations: 2.083 MB / 0.8669 GB, free: 7.852 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/1.115, allocations: 8.031 kB / 0.8669 GB, free: 7.844 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004982/1.115, allocations: 157.3 kB / 0.8671 GB, free: 7.691 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001703/1.117, allocations: 0.8783 MB / 0.8679 GB, free: 6.82 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000226/1.117, allocations: 215.5 kB / 0.8682 GB, free: 6.582 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002063/1.118, allocations: 111.9 kB / 0.8683 GB, free: 6.473 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002765/1.12, allocations: 1.444 MB / 0.8697 GB, free: 4.988 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.013e-05/1.12, allocations: 3.375 kB / 0.8697 GB, free: 4.988 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000112/1.12, allocations: 39.28 kB / 0.8697 GB, free: 4.953 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.136e-05/1.121, allocations: 49.98 kB / 0.8698 GB, free: 4.906 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003292/1.124, allocations: 1.626 MB / 0.8713 GB, free: 3.289 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008497/1.132, allocations: 5.199 MB / 0.8764 GB, free: 13.96 MB / 0.6388 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002769/1.135, allocations: 1.209 MB / 0.8776 GB, free: 12.76 MB / 0.6388 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001459/1.137, allocations: 0.7312 MB / 0.8783 GB, free: 12.02 MB / 0.6388 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003876/1.14, allocations: 4.198 MB / 0.8824 GB, free: 6.898 MB / 0.6388 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.46e-05/1.14, allocations: 55.56 kB / 0.8825 GB, free: 6.836 MB / 0.6388 GB Notification: Performance of pre-optimization done (n=131): time 4.028e-06/1.14, allocations: 1.75 kB / 0.8825 GB, free: 6.836 MB / 0.6388 GB Notification: Performance of matching and sorting (n=134): time 0.01038/1.151, allocations: 4.613 MB / 0.887 GB, free: 2.137 MB / 0.6388 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.896e-05/1.151, allocations: 91.23 kB / 0.8871 GB, free: 2.031 MB / 0.6388 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00103/1.152, allocations: 0.7657 MB / 0.8878 GB, free: 1.242 MB / 0.6388 GB Notification: Performance of collectPreVariables (initialization): time 0.0001067/1.152, allocations: 45.7 kB / 0.8879 GB, free: 1.191 MB / 0.6388 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004047/1.152, allocations: 445.9 kB / 0.8883 GB, free: 0.75 MB / 0.6388 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004352/1.153, allocations: 492.8 kB / 0.8887 GB, free: 284 kB / 0.6388 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000382/1.153, allocations: 226.9 kB / 0.889 GB, free: 52 kB / 0.6388 GB Notification: Performance of setup shared object (initialization): time 0.000197/1.153, allocations: 352.7 kB / 0.8893 GB, free: 15.7 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00128/1.155, allocations: 0.5647 MB / 0.8899 GB, free: 15.14 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001418/1.156, allocations: 0.7023 MB / 0.8905 GB, free: 14.41 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.00296/1.159, allocations: 1.418 MB / 0.8919 GB, free: 12.95 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/1.159, allocations: 3.125 kB / 0.8919 GB, free: 12.95 MB / 0.6544 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004188/1.163, allocations: 1.844 MB / 0.8937 GB, free: 11.12 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/1.163, allocations: 8.969 kB / 0.8937 GB, free: 11.11 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.408e-05/1.163, allocations: 12 kB / 0.8937 GB, free: 11.1 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002533/1.166, allocations: 0.5992 MB / 0.8943 GB, free: 10.5 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009847/1.167, allocations: 212 kB / 0.8945 GB, free: 10.3 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003302/1.17, allocations: 2.788 MB / 0.8973 GB, free: 7.367 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009604/1.171, allocations: 51.92 kB / 0.8973 GB, free: 7.316 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001275/1.171, allocations: 59.95 kB / 0.8974 GB, free: 7.258 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 (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.0005951/1.172, allocations: 279.8 kB / 0.8976 GB, free: 6.984 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003377/1.172, allocations: 131.2 kB / 0.8978 GB, free: 6.855 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004713/1.177, allocations: 2.287 MB / 0.9 GB, free: 4.574 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.622e-05/1.177, allocations: 7.984 kB / 0.9 GB, free: 4.566 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-05/1.177, allocations: 19.05 kB / 0.9 GB, free: 4.551 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006384/1.178, allocations: 319.2 kB / 0.9003 GB, free: 4.223 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001586/1.178, allocations: 27.95 kB / 0.9003 GB, free: 4.195 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007007/1.178, allocations: 43.95 kB / 0.9004 GB, free: 4.152 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001931/1.179, allocations: 100.8 kB / 0.9005 GB, free: 4.051 MB / 0.6544 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00476/1.183, allocations: 1.869 MB / 0.9023 GB, free: 2.203 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004846/1.188, allocations: 2.44 MB / 0.9047 GB, free: 15.75 MB / 0.67 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001276/1.19, allocations: 0.5894 MB / 0.9053 GB, free: 15.16 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0008911/1.19, allocations: 0.588 MB / 0.9058 GB, free: 14.57 MB / 0.67 GB Notification: Performance of Backend: time 7.71e-07/1.19, allocations: 0 / 0.9058 GB, free: 14.57 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.005519/1.196, allocations: 1.998 MB / 0.9078 GB, free: 12.64 MB / 0.67 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10490:11-10490: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) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10490:11-10490: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) Notification: Performance of SimCode: time 0.005821/1.202, allocations: 3.315 MB / 0.911 GB, free: 9.301 MB / 0.67 GB Notification: Performance of Templates: time 0.05895/1.261, allocations: 33.73 MB / 0.944 GB, free: 7.926 MB / 0.7013 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_2/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: 8.012418192985933]