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) 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_dev_ThermofluidStream_Processes_Tests_Pump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Pump,fileNamePrefix="ThermofluidStream_dev_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.001743/0.001743, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002111/0.002111, allocations: 195.7 kB / 16.53 MB, free: 6.664 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.475/1.475, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7415/0.7415, allocations: 93.71 MB / 384.1 MB, free: 7 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00245/0.00245, allocations: 84.39 kB / 463.5 MB, free: 22.02 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1433, allocations: 68.26 MB / 0.5193 GB, free: 6.938 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.07951/0.2228, allocations: 67.13 MB / 0.5849 GB, free: 3.57 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.3064/0.5293, allocations: 26.74 MB / 0.611 GB, free: 5.867 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001363/0.5307, allocations: 44.34 kB / 0.611 GB, free: 5.867 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001516/0.5323, allocations: 0.5055 MB / 0.6115 GB, free: 5.867 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003999/0.5363, allocations: 1.278 MB / 0.6128 GB, free: 5.848 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004897/0.5412, allocations: 1.632 MB / 0.6143 GB, free: 5.836 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002475/0.5437, allocations: 1.938 MB / 0.6162 GB, free: 5.781 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005157/0.5443, allocations: 350.3 kB / 0.6166 GB, free: 5.707 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.04586/0.5901, allocations: 20.54 MB / 0.6366 GB, free: 15.4 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001715/0.5919, allocations: 0.8401 MB / 0.6375 GB, free: 15.08 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002364/0.5921, allocations: 119.5 kB / 0.6376 GB, free: 15.08 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3118/0.904, allocations: 127.7 MB / 0.7623 GB, free: 7.141 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000747/0.9047, allocations: 335 kB / 0.7626 GB, free: 6.824 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001258/0.906, allocations: 0.6879 MB / 0.7633 GB, free: 6.145 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.006235/0.9123, allocations: 2.849 MB / 0.7661 GB, free: 3.438 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.9123, allocations: 0 / 0.7661 GB, free: 3.438 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.513e-06/0.9123, allocations: 4 kB / 0.7661 GB, free: 3.434 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.578e-05/0.9123, allocations: 0 / 0.7661 GB, free: 3.434 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.0045/0.9168, allocations: 2.023 MB / 0.7681 GB, free: 1.387 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/0.9169, allocations: 8.031 kB / 0.7681 GB, free: 1.379 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002049/0.9171, allocations: 156.3 kB / 0.7682 GB, free: 1.219 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003532/0.9175, allocations: 154.3 kB / 0.7684 GB, free: 1.066 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001393/0.9189, allocations: 0.8057 MB / 0.7691 GB, free: 244 kB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002352/0.9191, allocations: 214.5 kB / 0.7694 GB, free: 0 / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000207/0.9193, allocations: 102.6 kB / 0.7694 GB, free: 15.9 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0027/0.922, allocations: 1.446 MB / 0.7709 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.202e-05/0.9221, allocations: 7.844 kB / 0.7709 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001163/0.9222, allocations: 47.92 kB / 0.7709 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.05e-05/0.9223, allocations: 38 kB / 0.771 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003287/0.9256, allocations: 1.64 MB / 0.7726 GB, free: 12.68 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008447/0.934, allocations: 5.222 MB / 0.7777 GB, free: 7.273 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002918/0.937, allocations: 1.272 MB / 0.7789 GB, free: 5.988 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001482/0.9385, allocations: 0.8003 MB / 0.7797 GB, free: 5.18 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003862/0.9423, allocations: 4.194 MB / 0.7838 GB, free: 56 kB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.677e-05/0.9424, allocations: 47.56 kB / 0.7838 GB, free: 0 / 0.5919 GB Notification: Performance of pre-optimization done (n=131): time 3.106e-06/0.9424, allocations: 0 / 0.7838 GB, free: 0 / 0.5919 GB Notification: Performance of matching and sorting (n=134): time 0.01018/0.9526, allocations: 4.603 MB / 0.7883 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.725e-05/0.9527, allocations: 94.11 kB / 0.7884 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001003/0.9537, allocations: 0.7618 MB / 0.7891 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 9.259e-05/0.9538, allocations: 49.7 kB / 0.7892 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003809/0.9542, allocations: 452.9 kB / 0.7896 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004121/0.9546, allocations: 461.5 kB / 0.7901 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003838/0.955, allocations: 226.8 kB / 0.7903 GB, free: 9.18 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001754/0.9552, allocations: 357.9 kB / 0.7906 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00123/0.9565, allocations: 0.5647 MB / 0.7912 GB, free: 8.262 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00144/0.9579, allocations: 0.6984 MB / 0.7919 GB, free: 7.527 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.002929/0.9608, allocations: 1.42 MB / 0.7932 GB, free: 6.059 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.9609, allocations: 0 / 0.7932 GB, free: 6.059 MB / 0.6075 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003971/0.9648, allocations: 1.852 MB / 0.7951 GB, free: 4.195 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.72e-05/0.9649, allocations: 12.12 kB / 0.7951 GB, free: 4.184 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.048e-05/0.9649, allocations: 12 kB / 0.7951 GB, free: 4.172 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002477/0.9674, allocations: 0.6172 MB / 0.7957 GB, free: 3.551 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009326/0.9683, allocations: 211.7 kB / 0.7959 GB, free: 3.344 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00315/0.9715, allocations: 2.781 MB / 0.7986 GB, free: 404 kB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008319/0.9723, allocations: 55.86 kB / 0.7986 GB, free: 348 kB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/0.9725, allocations: 59.95 kB / 0.7987 GB, free: 288 kB / 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.0005135/0.973, allocations: 269.6 kB / 0.799 GB, free: 8 kB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002775/0.9733, allocations: 126.7 kB / 0.7991 GB, free: 15.88 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004579/0.9779, allocations: 2.319 MB / 0.8013 GB, free: 13.52 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.321e-05/0.9779, allocations: 12 kB / 0.8014 GB, free: 13.51 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/0.9779, allocations: 7.984 kB / 0.8014 GB, free: 13.5 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/0.9779, allocations: 7.922 kB / 0.8014 GB, free: 13.49 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005294/0.9832, allocations: 2.985 MB / 0.8043 GB, free: 10.48 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.493e-05/0.9833, allocations: 8 kB / 0.8043 GB, free: 10.47 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00107/0.9843, allocations: 199.7 kB / 0.8045 GB, free: 10.27 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007762/0.9851, allocations: 289.3 kB / 0.8048 GB, free: 9.984 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/0.9852, allocations: 51.89 kB / 0.8048 GB, free: 9.934 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005278/0.9905, allocations: 4.616 MB / 0.8093 GB, free: 5.047 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.9906, allocations: 3.938 kB / 0.8093 GB, free: 5.043 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005236/0.9958, allocations: 2.559 MB / 0.8118 GB, free: 2.457 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005251/0.9963, allocations: 311.4 kB / 0.8121 GB, free: 2.133 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001788/0.9965, allocations: 27.91 kB / 0.8121 GB, free: 2.105 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007552/0.9973, allocations: 47.95 kB / 0.8122 GB, free: 2.059 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002004/0.9975, allocations: 96.89 kB / 0.8123 GB, free: 1.965 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/0.9976, allocations: 47.95 kB / 0.8123 GB, free: 1.918 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0007951/0.9984, allocations: 0.5841 MB / 0.8129 GB, free: 1.324 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.6e-07/0.9984, allocations: 0 / 0.8129 GB, free: 1.324 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001724/1, allocations: 0.6791 MB / 0.8136 GB, free: 0.6445 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.00709/1.007, allocations: 3.815 MB / 0.8173 GB, free: 12.83 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.004513/1.012, allocations: 2.004 MB / 0.8192 GB, free: 10.78 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/1.012, allocations: 0 / 0.8192 GB, free: 10.78 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.002435/1.014, allocations: 1.29 MB / 0.8205 GB, free: 9.445 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002079/1.016, allocations: 434.2 kB / 0.8209 GB, free: 9.035 MB / 0.6387 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10354:11-10354: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:10354:11-10354: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.2579/1.274, allocations: 12.24 MB / 0.8329 GB, free: 255.1 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007734/1.275, allocations: 1.127 MB / 0.834 GB, free: 254.4 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.00104/1.276, allocations: 261.3 kB / 0.8342 GB, free: 254.4 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005936/1.277, allocations: 489.8 kB / 0.8347 GB, free: 254.4 MB / 0.6387 GB Notification: Performance of SimCode: time 1.022e-06/1.277, allocations: 0 / 0.8347 GB, free: 254.4 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0782/1.355, allocations: 41.75 MB / 0.8755 GB, free: 232.8 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.87/16.22, allocations: 0 / 0.8755 GB, free: 232.8 MB / 0.6387 GB (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 & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump_res.csv --start-time 0 --stop-time 30 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.03 ThermofluidStream_dev_ThermofluidStream_Processes_Tests_Pump.fmu > ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump_res.csv","/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) Reference file matches