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.005248/0.005248, allocations: 102.2 kB / 15.73 MB, free: 5.516 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.00132/0.00132, allocations: 202 kB / 16.68 MB, free: 5.445 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.425/1.425, allocations: 222.9 MB / 240.4 MB, free: 14.94 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7352/0.7352, allocations: 91.19 MB / 381.7 MB, free: 7.52 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003288/0.003288, allocations: 83.86 kB / 0.5164 GB, free: 4.605 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3823/0.3856, allocations: 67.67 MB / 0.5825 GB, free: 13.47 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.08016/0.4658, allocations: 67.11 MB / 0.648 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.03513/0.501, allocations: 26.74 MB / 0.6741 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001155/0.5022, allocations: 43.69 kB / 0.6741 GB, free: 15.91 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001414/0.5036, allocations: 0.5043 MB / 0.6746 GB, free: 15.4 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.003801/0.5075, allocations: 1.258 MB / 0.6759 GB, free: 14.13 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.004853/0.5124, allocations: 1.633 MB / 0.6775 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002934/0.5154, allocations: 1.88 MB / 0.6793 GB, free: 10.61 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006427/0.516, allocations: 355.3 kB / 0.6796 GB, free: 10.25 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.05297/0.569, allocations: 20.52 MB / 0.6997 GB, free: 5.543 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001541/0.5706, allocations: 0.8404 MB / 0.7005 GB, free: 4.699 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0002933/0.5709, allocations: 120 kB / 0.7006 GB, free: 4.582 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.5723/1.143, allocations: 127.7 MB / 0.8254 GB, free: 2.555 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004675/1.144, allocations: 325.3 kB / 0.8257 GB, free: 2.305 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0008001/1.145, allocations: 0.6834 MB / 0.8263 GB, free: 1.836 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.005136/1.15, allocations: 2.884 MB / 0.8291 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/1.15, allocations: 4 kB / 0.8291 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.372e-06/1.15, allocations: 0 / 0.8291 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.402e-05/1.15, allocations: 0 / 0.8291 GB, free: 15.29 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.004653/1.154, allocations: 2.058 MB / 0.8312 GB, free: 13.22 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/1.155, allocations: 12.03 kB / 0.8312 GB, free: 13.21 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002096/1.155, allocations: 152.3 kB / 0.8313 GB, free: 13.05 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003056/1.155, allocations: 161.1 kB / 0.8315 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001448/1.156, allocations: 0.856 MB / 0.8323 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003119/1.157, allocations: 214.5 kB / 0.8325 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001981/1.157, allocations: 113.8 kB / 0.8326 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002831/1.16, allocations: 1.45 MB / 0.834 GB, free: 10.21 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.905e-05/1.16, allocations: 4 kB / 0.834 GB, free: 10.21 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002034/1.16, allocations: 40 kB / 0.8341 GB, free: 10.17 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.346e-05/1.16, allocations: 41.98 kB / 0.8341 GB, free: 10.13 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003428/1.164, allocations: 1.634 MB / 0.8357 GB, free: 8.508 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00897/1.173, allocations: 5.194 MB / 0.8408 GB, free: 3.191 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002955/1.176, allocations: 1.285 MB / 0.842 GB, free: 1.906 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001585/1.177, allocations: 0.7892 MB / 0.8428 GB, free: 1.109 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004127/1.181, allocations: 4.202 MB / 0.8469 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.113e-05/1.181, allocations: 48.88 kB / 0.847 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=131): time 3.557e-06/1.182, allocations: 4 kB / 0.847 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of matching and sorting (n=134): time 0.01061/1.192, allocations: 4.625 MB / 0.8515 GB, free: 7.215 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.083e-05/1.192, allocations: 90.11 kB / 0.8516 GB, free: 7.109 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001014/1.193, allocations: 0.7447 MB / 0.8523 GB, free: 6.34 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001048/1.193, allocations: 54.5 kB / 0.8523 GB, free: 6.285 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003762/1.194, allocations: 441.8 kB / 0.8528 GB, free: 5.848 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004186/1.194, allocations: 478.6 kB / 0.8532 GB, free: 5.387 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003857/1.195, allocations: 234.8 kB / 0.8534 GB, free: 5.152 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001828/1.195, allocations: 349.9 kB / 0.8538 GB, free: 4.805 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001394/1.196, allocations: 0.5626 MB / 0.8543 GB, free: 4.246 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001489/1.198, allocations: 0.6984 MB / 0.855 GB, free: 3.52 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.002975/1.201, allocations: 1.426 MB / 0.8564 GB, free: 2.055 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/1.201, allocations: 0 / 0.8564 GB, free: 2.055 MB / 0.6075 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004089/1.205, allocations: 1.857 MB / 0.8582 GB, free: 216 kB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.831e-05/1.205, allocations: 10.5 kB / 0.8582 GB, free: 208 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.876e-05/1.205, allocations: 16.03 kB / 0.8582 GB, free: 196 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002483/1.207, allocations: 0.6114 MB / 0.8588 GB, free: 15.58 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001/1.208, allocations: 206.5 kB / 0.859 GB, free: 15.39 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003295/1.212, allocations: 2.788 MB / 0.8618 GB, free: 12.45 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009432/1.213, allocations: 55.92 kB / 0.8618 GB, free: 12.39 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001257/1.213, allocations: 55.95 kB / 0.8619 GB, free: 12.34 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.0005092/1.213, allocations: 275.5 kB / 0.8621 GB, free: 12.07 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002678/1.214, allocations: 131.2 kB / 0.8623 GB, free: 11.94 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004947/1.219, allocations: 2.31 MB / 0.8645 GB, free: 9.629 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.582e-05/1.219, allocations: 12.12 kB / 0.8645 GB, free: 9.617 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.09e-05/1.219, allocations: 8 kB / 0.8645 GB, free: 9.609 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.447e-05/1.219, allocations: 10.78 kB / 0.8645 GB, free: 9.602 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005724/1.225, allocations: 2.96 MB / 0.8674 GB, free: 6.629 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.838e-05/1.225, allocations: 17.84 kB / 0.8674 GB, free: 6.613 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/1.226, allocations: 205.3 kB / 0.8676 GB, free: 6.422 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000791/1.227, allocations: 293 kB / 0.8679 GB, free: 6.133 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001161/1.227, allocations: 43.95 kB / 0.868 GB, free: 6.09 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005738/1.232, allocations: 4.616 MB / 0.8725 GB, free: 1.223 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/1.232, allocations: 4.031 kB / 0.8725 GB, free: 1.219 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00553/1.238, allocations: 2.559 MB / 0.875 GB, free: 14.65 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006927/1.239, allocations: 312.1 kB / 0.8753 GB, free: 14.32 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001815/1.239, allocations: 25.64 kB / 0.8753 GB, free: 14.3 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007368/1.24, allocations: 47.95 kB / 0.8753 GB, free: 14.25 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002907/1.24, allocations: 92.8 kB / 0.8754 GB, free: 14.16 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001334/1.24, allocations: 52.06 kB / 0.8755 GB, free: 14.11 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0008296/1.241, allocations: 0.5717 MB / 0.876 GB, free: 13.53 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.5e-07/1.241, allocations: 3.844 kB / 0.876 GB, free: 13.53 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001882/1.243, allocations: 0.6815 MB / 0.8767 GB, free: 12.85 MB / 0.6387 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.007505/1.25, allocations: 3.844 MB / 0.8805 GB, free: 9.051 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.004143/1.255, allocations: 1.763 MB / 0.8822 GB, free: 7.262 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/1.255, allocations: 0 / 0.8822 GB, free: 7.262 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.002617/1.257, allocations: 1.295 MB / 0.8834 GB, free: 5.941 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002063/1.259, allocations: 420.1 kB / 0.8839 GB, free: 5.547 MB / 0.6387 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10357:11-10357: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:10357:11-10357: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.0222/1.281, allocations: 11.51 MB / 0.8951 GB, free: 9.934 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008686/1.282, allocations: 1.131 MB / 0.8962 GB, free: 8.773 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001174/1.284, allocations: 253.3 kB / 0.8964 GB, free: 8.523 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007304/1.284, allocations: 475.2 kB / 0.8969 GB, free: 8.059 MB / 0.6544 GB Notification: Performance of SimCode: time 1.283e-06/1.284, allocations: 0 / 0.8969 GB, free: 8.059 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0988/1.383, allocations: 41.93 MB / 0.9378 GB, free: 14.57 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.13/16.51, allocations: 0 / 0.9378 GB, free: 14.57 MB / 0.7012 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 & python3 -m fmpy simulate --output-file ThermofluidStream_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_ThermofluidStream_Processes_Tests_Pump.fmu > ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.pipe 2>&1) diffSimulationResults("ThermofluidStream_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_ThermofluidStream.Processes.Tests.Pump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches