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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.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=2000,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=2000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001525/0.001525, allocations: 110.4 kB / 16.42 MB, free: 6.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001786/0.001786, allocations: 185.5 kB / 17.35 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 222.9 MB / 241.1 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6957/0.6957, allocations: 91.18 MB / 382.4 MB, free: 7.531 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 71.89 kB / 0.5175 GB, free: 4.113 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.2766, allocations: 67.68 MB / 0.5836 GB, free: 13.99 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.06544/0.3421, allocations: 67.12 MB / 0.6492 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02827/0.3703, allocations: 26.73 MB / 0.6753 GB, free: 15.99 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009352/0.3713, allocations: 39.69 kB / 0.6753 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001349/0.3727, allocations: 0.5121 MB / 0.6758 GB, free: 15.44 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.003444/0.3762, allocations: 1.278 MB / 0.677 GB, free: 14.16 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.004115/0.3803, allocations: 1.626 MB / 0.6786 GB, free: 12.53 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002249/0.3826, allocations: 1.892 MB / 0.6805 GB, free: 10.62 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005522/0.3831, allocations: 351.3 kB / 0.6808 GB, free: 10.27 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.04768/0.4308, allocations: 20.54 MB / 0.7009 GB, free: 5.535 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001319/0.4322, allocations: 0.8403 MB / 0.7017 GB, free: 4.691 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0003526/0.4325, allocations: 120 kB / 0.7018 GB, free: 4.574 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.5355/0.968, allocations: 127.7 MB / 0.8266 GB, free: 2.633 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005557/0.9686, allocations: 329 kB / 0.8269 GB, free: 2.379 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001194/0.9698, allocations: 0.6824 MB / 0.8275 GB, free: 1.91 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.005357/0.9752, allocations: 2.871 MB / 0.8303 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.9752, allocations: 3.562 kB / 0.8303 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.753e-06/0.9752, allocations: 0 / 0.8303 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 5.246e-05/0.9753, allocations: 0 / 0.8303 GB, free: 15.48 MB / 0.5919 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.004902/0.9802, allocations: 1.999 MB / 0.8323 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.9802, allocations: 8.031 kB / 0.8323 GB, free: 13.51 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003792/0.9806, allocations: 148.5 kB / 0.8324 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001531/0.9822, allocations: 0.8595 MB / 0.8333 GB, free: 12.51 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000183/0.9824, allocations: 218.4 kB / 0.8335 GB, free: 12.27 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002086/0.9826, allocations: 99.91 kB / 0.8336 GB, free: 12.17 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002799/0.9854, allocations: 1.443 MB / 0.835 GB, free: 10.69 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.129e-05/0.9854, allocations: 11.28 kB / 0.835 GB, free: 10.68 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001181/0.9855, allocations: 39.91 kB / 0.835 GB, free: 10.65 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.301e-05/0.9856, allocations: 45.98 kB / 0.8351 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003226/0.9888, allocations: 1.631 MB / 0.8367 GB, free: 8.984 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007963/0.9968, allocations: 5.194 MB / 0.8418 GB, free: 3.652 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002773/0.9996, allocations: 1.263 MB / 0.843 GB, free: 2.383 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00147/1.001, allocations: 0.8017 MB / 0.8438 GB, free: 1.578 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003047/1.004, allocations: 4.201 MB / 0.8479 GB, free: 12.45 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.038e-05/1.004, allocations: 47.55 kB / 0.8479 GB, free: 12.39 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=131): time 3.677e-06/1.004, allocations: 0 / 0.8479 GB, free: 12.39 MB / 0.6075 GB Notification: Performance of matching and sorting (n=134): time 0.009735/1.014, allocations: 4.608 MB / 0.8524 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.297e-05/1.014, allocations: 90.11 kB / 0.8525 GB, free: 7.594 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000876/1.015, allocations: 0.738 MB / 0.8532 GB, free: 6.832 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001088/1.015, allocations: 49.7 kB / 0.8533 GB, free: 6.777 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003041/1.015, allocations: 443.9 kB / 0.8537 GB, free: 6.344 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003453/1.016, allocations: 460 kB / 0.8541 GB, free: 5.898 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003672/1.016, allocations: 230.5 kB / 0.8544 GB, free: 5.672 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001318/1.016, allocations: 353.9 kB / 0.8547 GB, free: 5.32 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001259/1.017, allocations: 0.5608 MB / 0.8552 GB, free: 4.762 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001392/1.019, allocations: 0.7026 MB / 0.8559 GB, free: 4.035 MB / 0.6075 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.002857/1.022, allocations: 1.418 MB / 0.8573 GB, free: 2.578 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/1.022, allocations: 0 / 0.8573 GB, free: 2.578 MB / 0.6075 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003907/1.026, allocations: 1.866 MB / 0.8591 GB, free: 0.7266 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/1.026, allocations: 7.984 kB / 0.8591 GB, free: 0.7188 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.168e-05/1.026, allocations: 12 kB / 0.8592 GB, free: 0.707 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002574/1.028, allocations: 0.6104 MB / 0.8597 GB, free: 96 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001091/1.029, allocations: 209 kB / 0.8599 GB, free: 15.9 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002904/1.032, allocations: 2.778 MB / 0.8627 GB, free: 12.96 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009545/1.033, allocations: 52.69 kB / 0.8627 GB, free: 12.91 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001681/1.034, allocations: 55.95 kB / 0.8628 GB, free: 12.86 MB / 0.6231 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.0005809/1.034, allocations: 284.1 kB / 0.863 GB, free: 12.58 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003361/1.034, allocations: 114.6 kB / 0.8631 GB, free: 12.47 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004684/1.039, allocations: 2.321 MB / 0.8654 GB, free: 10.15 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.222e-05/1.039, allocations: 7.984 kB / 0.8654 GB, free: 10.14 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-05/1.039, allocations: 8 kB / 0.8654 GB, free: 10.14 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005683/1.04, allocations: 304.9 kB / 0.8657 GB, free: 9.82 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002376/1.04, allocations: 31.94 kB / 0.8657 GB, free: 9.789 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007893/1.041, allocations: 35.97 kB / 0.8658 GB, free: 9.754 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002003/1.041, allocations: 108.8 kB / 0.8659 GB, free: 9.648 MB / 0.6231 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004774/1.046, allocations: 1.867 MB / 0.8677 GB, free: 7.801 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004582/1.05, allocations: 2.439 MB / 0.8701 GB, free: 5.352 MB / 0.6231 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00127/1.052, allocations: 0.6363 MB / 0.8707 GB, free: 4.715 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.000725/1.052, allocations: 0.5678 MB / 0.8713 GB, free: 4.137 MB / 0.6231 GB Notification: Performance of Backend: time 3.61e-07/1.052, allocations: 1.969 kB / 0.8713 GB, free: 4.137 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.004751/1.057, allocations: 2.067 MB / 0.8733 GB, free: 2.109 MB / 0.6231 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10371:11-10371: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/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10371:11-10371: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.004711/1.062, allocations: 3.234 MB / 0.8764 GB, free: 14.83 MB / 0.6387 GB Notification: Performance of Templates: time 0.04798/1.11, allocations: 32.87 MB / 0.9085 GB, free: 14.3 MB / 0.67 GB make -j1 -f ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.makefile (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) diffSimulationResults("ThermofluidStream_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_ThermofluidStream.Processes.Tests.Pump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches