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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001811/0.001811, allocations: 214.2 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.448/1.448, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.8127/0.8127, allocations: 94.62 MB / 407 MB, free: 8.844 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002536/0.002536, allocations: 93.02 kB / 0.5549 GB, free: 38.39 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1299, allocations: 73.04 MB / 0.6263 GB, free: 164 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.07441/0.2043, allocations: 60.82 MB / 0.6857 GB, free: 3.137 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.03003/0.2343, allocations: 24.38 MB / 0.7095 GB, free: 10.68 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001298/0.2356, allocations: 59.44 kB / 0.7095 GB, free: 10.62 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001584/0.2372, allocations: 464.7 kB / 0.71 GB, free: 10.16 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.00387/0.2411, allocations: 1.278 MB / 0.7112 GB, free: 8.875 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004706/0.2458, allocations: 1.636 MB / 0.7128 GB, free: 7.238 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0028/0.2486, allocations: 1.95 MB / 0.7147 GB, free: 5.277 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004475/0.249, allocations: 207.9 kB / 0.7149 GB, free: 5.066 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.04601/0.295, allocations: 20.45 MB / 0.7349 GB, free: 456 kB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001577/0.2966, allocations: 0.8013 MB / 0.7357 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003523/0.2969, allocations: 120 kB / 0.7358 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.5424/0.8393, allocations: 126.2 MB / 0.859 GB, free: 3.07 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0007506/0.8401, allocations: 327.2 kB / 0.8593 GB, free: 2.82 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001019/0.8411, allocations: 0.5701 MB / 0.8599 GB, free: 2.418 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.007579/0.8487, allocations: 2.793 MB / 0.8626 GB, free: 15.99 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 9.758e-06/0.8487, allocations: 0 / 0.8626 GB, free: 15.99 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.735e-06/0.8487, allocations: 0 / 0.8626 GB, free: 15.99 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 4.903e-05/0.8487, allocations: 1.531 kB / 0.8626 GB, free: 15.99 MB / 0.6231 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.005272/0.854, allocations: 2.001 MB / 0.8646 GB, free: 14 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 5.731e-05/0.8541, allocations: 8.031 kB / 0.8646 GB, free: 13.99 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002074/0.8543, allocations: 153.5 kB / 0.8647 GB, free: 13.83 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01032/0.8646, allocations: 1.802 MB / 0.8665 GB, free: 12.03 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002159/0.8668, allocations: 0.9396 MB / 0.8674 GB, free: 11.11 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003227/0.8671, allocations: 354.6 kB / 0.8677 GB, free: 10.71 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002777/0.8674, allocations: 103.9 kB / 0.8678 GB, free: 10.61 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003802/0.8712, allocations: 2.304 MB / 0.8701 GB, free: 8.234 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.6e-05/0.8712, allocations: 4 kB / 0.8701 GB, free: 8.23 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001326/0.8713, allocations: 44.67 kB / 0.8701 GB, free: 8.191 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.976e-05/0.8714, allocations: 42 kB / 0.8702 GB, free: 8.152 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004317/0.8757, allocations: 2.348 MB / 0.8725 GB, free: 5.809 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01212/0.8878, allocations: 6.149 MB / 0.8785 GB, free: 15.69 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003164/0.891, allocations: 1.37 MB / 0.8798 GB, free: 14.31 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001778/0.8928, allocations: 0.9023 MB / 0.8807 GB, free: 13.41 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008784/0.8936, allocations: 229.4 kB / 0.8809 GB, free: 13.2 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.965e-05/0.8937, allocations: 51.55 kB / 0.881 GB, free: 13.14 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=131): time 4.078e-06/0.8937, allocations: 2.25 kB / 0.881 GB, free: 13.14 MB / 0.6387 GB Notification: Performance of matching and sorting (n=134): time 0.01234/0.906, allocations: 5.136 MB / 0.886 GB, free: 7.996 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.339e-05/0.9061, allocations: 90.11 kB / 0.8861 GB, free: 7.891 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000952/0.9071, allocations: 0.769 MB / 0.8868 GB, free: 7.102 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001402/0.9072, allocations: 54.8 kB / 0.8869 GB, free: 7.043 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003815/0.9076, allocations: 445.9 kB / 0.8873 GB, free: 6.602 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004727/0.908, allocations: 492.1 kB / 0.8878 GB, free: 6.125 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005405/0.9086, allocations: 318.7 kB / 0.8881 GB, free: 5.809 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001663/0.9088, allocations: 353.9 kB / 0.8884 GB, free: 5.457 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001548/0.9103, allocations: 0.7209 MB / 0.8891 GB, free: 4.738 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001816/0.9121, allocations: 0.8745 MB / 0.89 GB, free: 3.836 MB / 0.6387 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.003702/0.9158, allocations: 1.677 MB / 0.8916 GB, free: 2.141 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.9158, allocations: 0 / 0.8916 GB, free: 2.141 MB / 0.6387 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.005426/0.9212, allocations: 2.335 MB / 0.8939 GB, free: 15.82 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.9213, allocations: 8 kB / 0.8939 GB, free: 15.81 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02855/0.9498, allocations: 3.319 MB / 0.8971 GB, free: 12.52 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02422/0.974, allocations: 1.657 MB / 0.8987 GB, free: 10.87 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001752/0.9758, allocations: 290.5 kB / 0.899 GB, free: 10.59 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005461/0.9813, allocations: 2.988 MB / 0.9019 GB, free: 7.473 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002558/0.9838, allocations: 75.89 kB / 0.902 GB, free: 7.398 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005009/0.9843, allocations: 107.8 kB / 0.9021 GB, free: 7.293 MB / 0.6544 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 (107): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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,36)} Notification: Performance of prepare postOptimizeDAE: time 0.001117/0.9854, allocations: 282.9 kB / 0.9024 GB, free: 7.02 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008476/0.9863, allocations: 131.2 kB / 0.9025 GB, free: 6.891 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009515/0.9958, allocations: 2.724 MB / 0.9052 GB, free: 4.176 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.406e-05/0.9958, allocations: 17.41 kB / 0.9052 GB, free: 4.16 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.729e-05/0.9958, allocations: 8 kB / 0.9052 GB, free: 4.152 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-05/0.9959, allocations: 7.969 kB / 0.9052 GB, free: 4.145 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006936/1.003, allocations: 2.912 MB / 0.9081 GB, free: 1.234 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.003698/1.006, allocations: 1.6 MB / 0.9096 GB, free: 15.64 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001638/1.008, allocations: 242 kB / 0.9098 GB, free: 15.41 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008188/1.009, allocations: 294.6 kB / 0.9101 GB, free: 15.12 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001602/1.009, allocations: 49.41 kB / 0.9102 GB, free: 15.07 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005912/1.015, allocations: 4.363 MB / 0.9144 GB, free: 10.52 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/1.015, allocations: 0 / 0.9144 GB, free: 10.52 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006334/1.021, allocations: 2.723 MB / 0.9171 GB, free: 7.785 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000793/1.022, allocations: 243 kB / 0.9173 GB, free: 7.547 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003226/1.022, allocations: 35.89 kB / 0.9174 GB, free: 7.512 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001314/1.024, allocations: 57.27 kB / 0.9174 GB, free: 7.457 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000232/1.024, allocations: 100.8 kB / 0.9175 GB, free: 7.359 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001398/1.024, allocations: 51.92 kB / 0.9176 GB, free: 7.309 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0009584/1.025, allocations: 0.6164 MB / 0.9182 GB, free: 6.684 MB / 0.67 GB Notification: Performance of sort global known variables: time 7e-08/1.025, allocations: 0 / 0.9182 GB, free: 6.684 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001947/1.027, allocations: 0.4994 MB / 0.9186 GB, free: 6.184 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 (103): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.007071/1.034, allocations: 3.71 MB / 0.9223 GB, free: 2.523 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.004359/1.038, allocations: 1.82 MB / 0.924 GB, free: 0.7148 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/1.038, allocations: 0 / 0.924 GB, free: 0.7148 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.002383/1.041, allocations: 1.16 MB / 0.9252 GB, free: 15.55 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002083/1.043, allocations: 423.5 kB / 0.9256 GB, free: 15.16 MB / 0.6856 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10546:11-10546: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:10546:11-10546: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.06593/1.109, allocations: 14.76 MB / 0.94 GB, free: 352 kB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009727/1.11, allocations: 0.543 MB / 0.9405 GB, free: 15.77 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.002044/1.112, allocations: 349.2 kB / 0.9409 GB, free: 15.43 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001185/1.113, allocations: 0.5538 MB / 0.9414 GB, free: 14.87 MB / 0.7012 GB Notification: Performance of SimCode: time 1.232e-06/1.113, allocations: 0 / 0.9414 GB, free: 14.87 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.136/1.249, allocations: 55.93 MB / 0.996 GB, free: 7.656 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.37/18.62, allocations: 11.22 kB / 0.996 GB, free: 7.648 MB / 0.7481 GB " [Timeout remaining time 641] (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 --stepSize=0.03 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Processes_Tests_Pump.fmu > ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.pipe 2>&1) [Timeout 1260.0] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 22.402128668036312]