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.004648/0.004652, allocations: 101.7 kB / 15.88 MB, free: 6.328 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.001103/0.001103, allocations: 195.1 kB / 16.79 MB, free: 6.254 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.311/1.311, allocations: 222.9 MB / 240.5 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6725/0.6725, allocations: 89.52 MB / 380.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001765/0.001766, allocations: 83.25 kB / 458.2 MB, free: 23.98 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1233/0.1251, allocations: 67.3 MB / 0.5132 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.0652/0.1903, allocations: 69.64 MB / 0.5812 GB, free: 7.035 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.3042/0.4945, allocations: 27.03 MB / 0.6076 GB, free: 6.723 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001277/0.4959, allocations: 16.97 kB / 0.6076 GB, free: 6.723 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001346/0.4972, allocations: 447.7 kB / 0.6081 GB, free: 6.723 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003546/0.5008, allocations: 1.093 MB / 0.6091 GB, free: 6.711 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00424/0.5051, allocations: 1.471 MB / 0.6106 GB, free: 6.695 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002744/0.5078, allocations: 2.135 MB / 0.6126 GB, free: 6.691 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004701/0.5083, allocations: 304.8 kB / 0.6129 GB, free: 6.637 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.04841/0.5567, allocations: 19.37 MB / 0.6319 GB, free: 1.465 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001427/0.5582, allocations: 0.7959 MB / 0.6326 GB, free: 1.172 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002/0.5584, allocations: 78.69 kB / 0.6327 GB, free: 1.172 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2926/0.851, allocations: 127.3 MB / 0.757 GB, free: 12.33 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0006256/0.8517, allocations: 277.1 kB / 0.7573 GB, free: 12.07 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001032/0.8527, allocations: 0.6129 MB / 0.7579 GB, free: 11.46 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.00338/0.8561, allocations: 1.984 MB / 0.7598 GB, free: 9.594 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.8561, allocations: 4 kB / 0.7599 GB, free: 9.59 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.012e-06/0.8561, allocations: 0 / 0.7599 GB, free: 9.59 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.936e-05/0.8561, allocations: 0 / 0.7599 GB, free: 9.59 MB / 0.5762 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.003958/0.8601, allocations: 1.889 MB / 0.7617 GB, free: 7.664 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.8601, allocations: 12.03 kB / 0.7617 GB, free: 7.652 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002719/0.8604, allocations: 127.4 kB / 0.7618 GB, free: 7.527 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008159/0.8612, allocations: 0.6379 MB / 0.7625 GB, free: 6.855 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001799/0.8614, allocations: 221.1 kB / 0.7627 GB, free: 6.613 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001702/0.8616, allocations: 103.9 kB / 0.7628 GB, free: 6.512 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002449/0.8641, allocations: 1.443 MB / 0.7642 GB, free: 5.031 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.553e-05/0.8641, allocations: 0 / 0.7642 GB, free: 5.031 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001094/0.8642, allocations: 40 kB / 0.7642 GB, free: 4.992 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.314e-05/0.8643, allocations: 53.92 kB / 0.7643 GB, free: 4.941 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002981/0.8673, allocations: 1.628 MB / 0.7659 GB, free: 3.312 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007279/0.8746, allocations: 5.185 MB / 0.7709 GB, free: 13.95 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002593/0.8772, allocations: 1.266 MB / 0.7722 GB, free: 12.67 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001373/0.8786, allocations: 0.792 MB / 0.7729 GB, free: 11.88 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002968/0.8816, allocations: 4.2 MB / 0.777 GB, free: 6.746 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.381e-05/0.8816, allocations: 47.5 kB / 0.7771 GB, free: 6.691 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=131): time 3.437e-06/0.8816, allocations: 0 / 0.7771 GB, free: 6.691 MB / 0.5919 GB Notification: Performance of matching and sorting (n=134): time 0.009215/0.8908, allocations: 4.546 MB / 0.7815 GB, free: 2.008 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.594e-05/0.8909, allocations: 94.05 kB / 0.7816 GB, free: 1.895 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007083/0.8916, allocations: 0.6296 MB / 0.7822 GB, free: 1.254 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 9.205e-05/0.8917, allocations: 45.7 kB / 0.7823 GB, free: 1.203 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002529/0.892, allocations: 377.5 kB / 0.7826 GB, free: 0.8281 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003295/0.8923, allocations: 457.3 kB / 0.7831 GB, free: 392 kB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003598/0.8927, allocations: 226.9 kB / 0.7833 GB, free: 160 kB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001398/0.8928, allocations: 361.8 kB / 0.7836 GB, free: 15.8 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0012/0.894, allocations: 0.5647 MB / 0.7842 GB, free: 15.23 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001317/0.8954, allocations: 0.6984 MB / 0.7849 GB, free: 14.5 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.002765/0.8981, allocations: 1.421 MB / 0.7862 GB, free: 13.03 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.8982, allocations: 0 / 0.7862 GB, free: 13.03 MB / 0.6075 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003806/0.902, allocations: 1.844 MB / 0.788 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/0.902, allocations: 8 kB / 0.788 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.797e-05/0.9021, allocations: 8 kB / 0.7881 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00245/0.9045, allocations: 0.6081 MB / 0.7886 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00105/0.9056, allocations: 211.6 kB / 0.7889 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002804/0.9084, allocations: 2.683 MB / 0.7915 GB, free: 7.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009643/0.9094, allocations: 59.88 kB / 0.7915 GB, free: 7.441 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001323/0.9095, allocations: 59.95 kB / 0.7916 GB, free: 7.383 MB / 0.6075 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.0005069/0.91, allocations: 269.5 kB / 0.7918 GB, free: 7.109 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002559/0.9103, allocations: 106.7 kB / 0.7919 GB, free: 7.004 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004349/0.9147, allocations: 2.304 MB / 0.7942 GB, free: 4.656 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.062e-05/0.9147, allocations: 12.94 kB / 0.7942 GB, free: 4.645 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.125e-06/0.9147, allocations: 4 kB / 0.7942 GB, free: 4.641 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.9147, allocations: 7.969 kB / 0.7942 GB, free: 4.633 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004914/0.9196, allocations: 2.925 MB / 0.7971 GB, free: 1.668 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.583e-05/0.9197, allocations: 8 kB / 0.7971 GB, free: 1.66 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001073/0.9208, allocations: 199.7 kB / 0.7973 GB, free: 1.465 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007708/0.9216, allocations: 289.2 kB / 0.7975 GB, free: 1.176 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001087/0.9217, allocations: 48.69 kB / 0.7976 GB, free: 1.129 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004535/0.9262, allocations: 4.242 MB / 0.8017 GB, free: 12.63 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.213e-06/0.9262, allocations: 7.969 kB / 0.8017 GB, free: 12.62 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005007/0.9313, allocations: 2.555 MB / 0.8042 GB, free: 10.04 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005246/0.9318, allocations: 287.6 kB / 0.8045 GB, free: 9.738 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001926/0.932, allocations: 28 kB / 0.8045 GB, free: 9.711 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007859/0.9328, allocations: 55.8 kB / 0.8046 GB, free: 9.656 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002091/0.933, allocations: 92.86 kB / 0.8047 GB, free: 9.566 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001014/0.9331, allocations: 51.94 kB / 0.8047 GB, free: 9.516 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0005837/0.9337, allocations: 499.2 kB / 0.8052 GB, free: 9.035 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.31e-07/0.9337, allocations: 0 / 0.8052 GB, free: 9.035 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001686/0.9354, allocations: 0.6712 MB / 0.8059 GB, free: 8.363 MB / 0.6231 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.00138/0.9368, allocations: 0.8215 MB / 0.8067 GB, free: 7.59 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.003617/0.9404, allocations: 1.775 MB / 0.8084 GB, free: 5.777 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.9405, allocations: 0 / 0.8084 GB, free: 5.777 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.002219/0.9427, allocations: 1.283 MB / 0.8097 GB, free: 4.438 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001864/0.9446, allocations: 375.6 kB / 0.81 GB, free: 4.074 MB / 0.6231 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10228:11-10228: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:10228:11-10228: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.005194/0.9498, allocations: 3.15 MB / 0.8131 GB, free: 0.9062 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006275/0.9504, allocations: 1.079 MB / 0.8141 GB, free: 15.8 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004982/0.9509, allocations: 131.3 kB / 0.8143 GB, free: 15.67 MB / 0.6387 GB Notification: Performance of SimCode: time 1.774e-06/0.9509, allocations: 0 / 0.8143 GB, free: 15.67 MB / 0.6387 GB Notification: Performance of Templates: time 0.2378/1.189, allocations: 31.29 MB / 0.8448 GB, free: 257.5 MB / 0.6387 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