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.007646/0.007646, allocations: 99.34 kB / 15.73 MB, free: 6.059 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: 195.1 kB / 16.67 MB, free: 5.977 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.365/1.365, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7257/0.7257, allocations: 91.19 MB / 381.7 MB, free: 9.32 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001483, allocations: 83.88 kB / 0.5164 GB, free: 9.492 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1358, allocations: 67.69 MB / 0.5825 GB, free: 5.723 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.3906/0.5264, allocations: 67.09 MB / 0.648 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02984/0.5563, allocations: 26.74 MB / 0.6741 GB, free: 8.395 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001623/0.558, allocations: 38.5 kB / 0.6741 GB, free: 8.379 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001636/0.5596, allocations: 0.5036 MB / 0.6746 GB, free: 7.953 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.004577/0.5642, allocations: 1.293 MB / 0.6759 GB, free: 6.895 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.005102/0.5694, allocations: 1.634 MB / 0.6775 GB, free: 5.77 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.003002/0.5724, allocations: 1.9 MB / 0.6793 GB, free: 4.637 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000598/0.573, allocations: 343.6 kB / 0.6797 GB, free: 4.469 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.05542/0.6284, allocations: 20.54 MB / 0.6997 GB, free: 412 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001978/0.6305, allocations: 0.8289 MB / 0.7005 GB, free: 15.57 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0007346/0.6312, allocations: 120 kB / 0.7007 GB, free: 15.45 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3328/0.964, allocations: 127.7 MB / 0.8254 GB, free: 14.12 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.001035/0.9651, allocations: 326.8 kB / 0.8257 GB, free: 13.8 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.002112/0.9673, allocations: 0.6879 MB / 0.8264 GB, free: 13.11 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.009391/0.9767, allocations: 2.882 MB / 0.8292 GB, free: 10.22 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 1.179e-05/0.9767, allocations: 0 / 0.8292 GB, free: 10.22 MB / 0.67 GB Notification: Performance of FrontEnd: time 2.685e-06/0.9768, allocations: 3.938 kB / 0.8292 GB, free: 10.22 MB / 0.67 GB Notification: Performance of Transformations before backend: time 9.162e-05/0.9769, allocations: 0 / 0.8292 GB, free: 10.22 MB / 0.67 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.006271/0.9831, allocations: 2.061 MB / 0.8312 GB, free: 8.102 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 5.313e-05/0.9832, allocations: 8.031 kB / 0.8312 GB, free: 8.094 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002972/0.9835, allocations: 152.3 kB / 0.8314 GB, free: 7.938 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004154/0.9839, allocations: 163.8 kB / 0.8315 GB, free: 7.777 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001653/0.9856, allocations: 0.8575 MB / 0.8324 GB, free: 6.879 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002078/0.9858, allocations: 218.5 kB / 0.8326 GB, free: 6.637 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002229/0.9861, allocations: 103.9 kB / 0.8327 GB, free: 6.535 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002976/0.989, allocations: 1.442 MB / 0.8341 GB, free: 5.047 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.962e-05/0.9891, allocations: 4 kB / 0.8341 GB, free: 5.043 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001297/0.9892, allocations: 47.98 kB / 0.8341 GB, free: 4.996 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.467e-05/0.9893, allocations: 41.98 kB / 0.8342 GB, free: 4.957 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003396/0.9927, allocations: 1.636 MB / 0.8358 GB, free: 3.32 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3124/1.305, allocations: 5.186 MB / 0.8408 GB, free: 228.9 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003084/1.308, allocations: 1.264 MB / 0.8421 GB, free: 228.8 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001729/1.31, allocations: 0.7964 MB / 0.8428 GB, free: 228.4 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002468/1.312, allocations: 4.203 MB / 0.8469 GB, free: 223.6 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.24e-05/1.313, allocations: 49.59 kB / 0.847 GB, free: 223.6 MB / 0.67 GB Notification: Performance of pre-optimization done (n=131): time 4.098e-06/1.313, allocations: 0 / 0.847 GB, free: 223.6 MB / 0.67 GB Notification: Performance of matching and sorting (n=134): time 0.00961/1.322, allocations: 4.637 MB / 0.8515 GB, free: 221.4 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.277e-05/1.322, allocations: 89.36 kB / 0.8516 GB, free: 221.3 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007814/1.323, allocations: 0.74 MB / 0.8523 GB, free: 220.9 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 7.961e-05/1.323, allocations: 52.27 kB / 0.8524 GB, free: 220.9 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002572/1.323, allocations: 437.7 kB / 0.8528 GB, free: 220.6 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.000291/1.324, allocations: 486.8 kB / 0.8533 GB, free: 220.3 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003457/1.324, allocations: 232.2 kB / 0.8535 GB, free: 220.2 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 8.995e-05/1.324, allocations: 357.3 kB / 0.8538 GB, free: 219.8 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001151/1.325, allocations: 0.5626 MB / 0.8544 GB, free: 219.6 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001233/1.327, allocations: 0.7006 MB / 0.8551 GB, free: 219.3 MB / 0.67 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.002586/1.329, allocations: 1.419 MB / 0.8564 GB, free: 218.6 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/1.329, allocations: 6.125 kB / 0.8565 GB, free: 218.6 MB / 0.67 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003691/1.333, allocations: 1.856 MB / 0.8583 GB, free: 217.9 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/1.333, allocations: 8.781 kB / 0.8583 GB, free: 217.9 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.336e-05/1.333, allocations: 18.5 kB / 0.8583 GB, free: 217.9 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002593/1.336, allocations: 0.6079 MB / 0.8589 GB, free: 217.7 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001062/1.337, allocations: 209.5 kB / 0.8591 GB, free: 217.7 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002795/1.339, allocations: 2.786 MB / 0.8618 GB, free: 215.4 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00111/1.341, allocations: 56.38 kB / 0.8619 GB, free: 215.4 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001484/1.341, allocations: 58.67 kB / 0.8619 GB, free: 215.4 MB / 0.67 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.0006166/1.341, allocations: 275.6 kB / 0.8622 GB, free: 215.2 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003004/1.342, allocations: 124.7 kB / 0.8623 GB, free: 215.1 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005124/1.347, allocations: 2.309 MB / 0.8646 GB, free: 214.2 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.679e-05/1.347, allocations: 15.41 kB / 0.8646 GB, free: 214.2 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/1.347, allocations: 5.25 kB / 0.8646 GB, free: 214.2 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.8e-05/1.347, allocations: 6.609 kB / 0.8646 GB, free: 214.2 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005514/1.352, allocations: 2.956 MB / 0.8675 GB, free: 212.9 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.017e-05/1.352, allocations: 18.59 kB / 0.8675 GB, free: 212.9 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/1.354, allocations: 199.2 kB / 0.8677 GB, free: 212.9 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007702/1.354, allocations: 290.2 kB / 0.8679 GB, free: 212.8 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001094/1.354, allocations: 44.31 kB / 0.868 GB, free: 212.8 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00426/1.359, allocations: 4.624 MB / 0.8725 GB, free: 209.1 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/1.359, allocations: 0.6562 kB / 0.8725 GB, free: 209.1 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005501/1.364, allocations: 2.563 MB / 0.875 GB, free: 208 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007474/1.365, allocations: 317.4 kB / 0.8753 GB, free: 207.8 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002099/1.365, allocations: 30.98 kB / 0.8753 GB, free: 207.7 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007507/1.366, allocations: 40.39 kB / 0.8754 GB, free: 207.7 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002296/1.366, allocations: 99.53 kB / 0.8755 GB, free: 207.7 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001114/1.366, allocations: 51.44 kB / 0.8755 GB, free: 207.7 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0008041/1.367, allocations: 0.5721 MB / 0.8761 GB, free: 207.4 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.41e-07/1.367, allocations: 0 / 0.8761 GB, free: 207.4 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.00215/1.369, allocations: 0.6811 MB / 0.8767 GB, free: 207.4 MB / 0.67 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.006841/1.376, allocations: 3.845 MB / 0.8805 GB, free: 205.5 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.003769/1.38, allocations: 1.775 MB / 0.8822 GB, free: 204.8 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/1.38, allocations: 0 / 0.8822 GB, free: 204.8 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.002138/1.382, allocations: 1.293 MB / 0.8835 GB, free: 204.1 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002057/1.384, allocations: 418.3 kB / 0.8839 GB, free: 203.9 MB / 0.67 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10373:11-10373: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:10373:11-10373: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.01883/1.403, allocations: 11.52 MB / 0.8951 GB, free: 197.5 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005255/1.404, allocations: 1.118 MB / 0.8962 GB, free: 196.6 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0009689/1.405, allocations: 253.6 kB / 0.8965 GB, free: 196.5 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005668/1.405, allocations: 486.3 kB / 0.8969 GB, free: 196.1 MB / 0.67 GB Notification: Performance of SimCode: time 1.173e-06/1.405, allocations: 0 / 0.8969 GB, free: 196.1 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06344/1.469, allocations: 41.92 MB / 0.9379 GB, free: 154.4 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.72/16.18, allocations: 8 kB / 0.9379 GB, free: 154.4 MB / 0.67 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