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: "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Pump,fileNamePrefix="ThermofluidStream_ThermofluidStream_Processes_Tests_Pump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Pump,fileNamePrefix="ThermofluidStream_ThermofluidStream_Processes_Tests_Pump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001208/0.001208, allocations: 190.6 kB / 16.25 MB, free: 6.621 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.215/1.215, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.5737/0.5737, allocations: 91.2 MB / 381.3 MB, free: 9.543 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 81.59 kB / 459.9 MB, free: 23.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09878/0.1002, allocations: 67.7 MB / 0.5152 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.07578/0.176, allocations: 67.81 MB / 0.5815 GB, free: 6.371 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.2265/0.4026, allocations: 26.71 MB / 0.6075 GB, free: 5.898 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009758/0.4036, allocations: 49 kB / 0.6076 GB, free: 5.895 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001027/0.4046, allocations: 457 kB / 0.608 GB, free: 5.895 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002479/0.4071, allocations: 1.141 MB / 0.6091 GB, free: 5.883 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003273/0.4104, allocations: 1.504 MB / 0.6106 GB, free: 5.863 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001481/0.4119, allocations: 1.886 MB / 0.6124 GB, free: 5.859 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003742/0.4123, allocations: 353.1 kB / 0.6128 GB, free: 5.777 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03285/0.4451, allocations: 19.97 MB / 0.6323 GB, free: 0.6211 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001266/0.4464, allocations: 0.8578 MB / 0.6331 GB, free: 416 kB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001579/0.4466, allocations: 120 kB / 0.6332 GB, free: 416 kB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2104/0.657, allocations: 127.9 MB / 0.7581 GB, free: 9.871 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0006369/0.6577, allocations: 332.5 kB / 0.7584 GB, free: 9.559 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001187/0.6589, allocations: 0.6868 MB / 0.7591 GB, free: 8.883 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.005307/0.6642, allocations: 2.835 MB / 0.7619 GB, free: 6.188 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.6642, allocations: 4 kB / 0.7619 GB, free: 6.184 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.333e-06/0.6642, allocations: 0 / 0.7619 GB, free: 6.184 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.358e-05/0.6643, allocations: 0 / 0.7619 GB, free: 6.184 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.004086/0.6684, allocations: 2.006 MB / 0.7638 GB, free: 4.148 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.6684, allocations: 8.031 kB / 0.7638 GB, free: 4.141 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001933/0.6686, allocations: 160.3 kB / 0.764 GB, free: 3.977 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002857/0.6689, allocations: 145.7 kB / 0.7641 GB, free: 3.836 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001072/0.67, allocations: 0.7904 MB / 0.7649 GB, free: 3.023 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000175/0.6702, allocations: 218.5 kB / 0.7651 GB, free: 2.781 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000162/0.6703, allocations: 99.91 kB / 0.7652 GB, free: 2.684 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002403/0.6727, allocations: 1.457 MB / 0.7666 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.651e-05/0.6728, allocations: 4 kB / 0.7666 GB, free: 1.184 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001006/0.6729, allocations: 40 kB / 0.7667 GB, free: 1.145 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.564e-05/0.6729, allocations: 38 kB / 0.7667 GB, free: 1.109 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002952/0.6759, allocations: 1.644 MB / 0.7683 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007111/0.683, allocations: 5.208 MB / 0.7734 GB, free: 10.07 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00252/0.6856, allocations: 1.263 MB / 0.7746 GB, free: 8.793 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001337/0.6869, allocations: 0.8018 MB / 0.7754 GB, free: 7.988 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002928/0.6898, allocations: 4.211 MB / 0.7795 GB, free: 2.848 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.59e-05/0.6899, allocations: 47.56 kB / 0.7796 GB, free: 2.793 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=131): time 2.975e-06/0.6899, allocations: 3.938 kB / 0.7796 GB, free: 2.789 MB / 0.5919 GB Notification: Performance of matching and sorting (n=134): time 0.008839/0.6987, allocations: 4.586 MB / 0.7841 GB, free: 14.06 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.794e-05/0.6988, allocations: 94.05 kB / 0.7841 GB, free: 13.95 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007931/0.6996, allocations: 0.7448 MB / 0.7849 GB, free: 13.18 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 9.167e-05/0.6997, allocations: 53.7 kB / 0.7849 GB, free: 13.12 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002907/0.7, allocations: 429.4 kB / 0.7853 GB, free: 12.7 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003326/0.7003, allocations: 469.1 kB / 0.7858 GB, free: 12.24 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003401/0.7007, allocations: 222.8 kB / 0.786 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001152/0.7008, allocations: 349.9 kB / 0.7863 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001149/0.702, allocations: 0.5647 MB / 0.7869 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001231/0.7032, allocations: 0.7139 MB / 0.7876 GB, free: 10.36 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.002568/0.7058, allocations: 1.418 MB / 0.789 GB, free: 8.895 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.7058, allocations: 4 kB / 0.789 GB, free: 8.891 MB / 0.6075 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003544/0.7094, allocations: 1.857 MB / 0.7908 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.7094, allocations: 4 kB / 0.7908 GB, free: 7.012 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.39e-05/0.7094, allocations: 12 kB / 0.7908 GB, free: 7 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002399/0.7118, allocations: 0.6134 MB / 0.7914 GB, free: 6.383 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009158/0.7127, allocations: 211.6 kB / 0.7916 GB, free: 6.176 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002772/0.7155, allocations: 2.784 MB / 0.7943 GB, free: 3.23 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008839/0.7164, allocations: 55.88 kB / 0.7944 GB, free: 3.176 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/0.7166, allocations: 59.95 kB / 0.7944 GB, free: 3.117 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.0005018/0.7171, allocations: 277.7 kB / 0.7947 GB, free: 2.836 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000314/0.7174, allocations: 126.4 kB / 0.7948 GB, free: 2.711 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004365/0.7218, allocations: 2.3 MB / 0.7971 GB, free: 380 kB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.248e-05/0.7218, allocations: 12 kB / 0.7971 GB, free: 368 kB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.328e-05/0.7218, allocations: 11.94 kB / 0.7971 GB, free: 356 kB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.17e-05/0.7218, allocations: 7.984 kB / 0.7971 GB, free: 348 kB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004772/0.7266, allocations: 2.973 MB / 0.8 GB, free: 13.33 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.242e-05/0.7267, allocations: 8 kB / 0.8 GB, free: 13.32 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001022/0.7277, allocations: 199.7 kB / 0.8002 GB, free: 13.12 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007304/0.7284, allocations: 285.3 kB / 0.8005 GB, free: 12.84 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001143/0.7285, allocations: 55.83 kB / 0.8005 GB, free: 12.79 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004561/0.7331, allocations: 4.618 MB / 0.805 GB, free: 7.898 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.7331, allocations: 0 / 0.805 GB, free: 7.898 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004815/0.738, allocations: 2.552 MB / 0.8075 GB, free: 5.32 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005036/0.7385, allocations: 311.4 kB / 0.8078 GB, free: 4.996 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002133/0.7387, allocations: 31.94 kB / 0.8078 GB, free: 4.965 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008267/0.7395, allocations: 51.8 kB / 0.8079 GB, free: 4.914 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001944/0.7397, allocations: 92.86 kB / 0.808 GB, free: 4.82 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/0.7398, allocations: 51.95 kB / 0.808 GB, free: 4.77 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.000688/0.7405, allocations: 0.5717 MB / 0.8086 GB, free: 4.188 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7405, allocations: 0 / 0.8086 GB, free: 4.188 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001618/0.7422, allocations: 0.6713 MB / 0.8092 GB, free: 3.516 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.006463/0.7486, allocations: 3.834 MB / 0.813 GB, free: 15.69 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.00404/0.7527, allocations: 1.983 MB / 0.8149 GB, free: 13.67 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/0.7527, allocations: 8 kB / 0.8149 GB, free: 13.66 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.002088/0.7548, allocations: 1.286 MB / 0.8162 GB, free: 12.32 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001858/0.7567, allocations: 430.8 kB / 0.8166 GB, free: 11.92 MB / 0.6387 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10264:11-10264: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:10264:11-10264: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.2076/0.9643, allocations: 12.55 MB / 0.8288 GB, free: 258.3 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006401/0.965, allocations: 1.123 MB / 0.8299 GB, free: 257.6 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001081/0.9661, allocations: 254.8 kB / 0.8302 GB, free: 257.5 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005861/0.9667, allocations: 479.2 kB / 0.8306 GB, free: 257.5 MB / 0.6387 GB Notification: Performance of SimCode: time 6.71e-07/0.9667, allocations: 0 / 0.8306 GB, free: 257.5 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3593/1.326, allocations: 41.41 MB / 0.8711 GB, free: 237.4 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001936/1.326, allocations: 221.4 kB / 0.8713 GB, free: 237.1 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.849/4.175, allocations: 4 kB / 0.8713 GB, free: 237.1 MB / 0.6387 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Processes.Tests.Pump_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Processes_Tests_Pump_fmu --startTime=0 --stopTime=30 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Processes_Tests_Pump.fmu > 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