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.001996/0.001996, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.002741/0.002741, allocations: 215.4 kB / 22.25 MB, free: 5.082 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.538/1.538, allocations: 230.6 MB / 256 MB, free: 8.012 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.8812/0.8812, allocations: 94.56 MB / 407 MB, free: 9.211 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.002542/0.002542, allocations: 82.83 kB / 0.5549 GB, free: 38.72 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1858/0.1884, allocations: 73.05 MB / 0.6263 GB, free: 0.4922 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.09605/0.2844, allocations: 68.12 MB / 0.6928 GB, free: 12.14 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.03925/0.3237, allocations: 27.12 MB / 0.7193 GB, free: 0.9375 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001829/0.3255, allocations: 59.44 kB / 0.7194 GB, free: 0.8789 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002278/0.3278, allocations: 0.5082 MB / 0.7198 GB, free: 376 kB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.005579/0.3333, allocations: 1.301 MB / 0.7211 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.006432/0.3398, allocations: 1.662 MB / 0.7227 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.003908/0.3437, allocations: 1.962 MB / 0.7247 GB, free: 11.42 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007351/0.3444, allocations: 211.9 kB / 0.7249 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.05829/0.4027, allocations: 20.5 MB / 0.7449 GB, free: 6.539 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002023/0.4047, allocations: 0.8638 MB / 0.7457 GB, free: 5.672 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0006141/0.4053, allocations: 120 kB / 0.7458 GB, free: 5.555 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.739/1.144, allocations: 126.7 MB / 0.8696 GB, free: 15.5 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0008243/1.145, allocations: 335.2 kB / 0.8699 GB, free: 15.24 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.001085/1.146, allocations: 0.6853 MB / 0.8705 GB, free: 14.77 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.008465/1.155, allocations: 2.902 MB / 0.8734 GB, free: 12.23 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/1.155, allocations: 4 kB / 0.8734 GB, free: 12.23 MB / 0.6387 GB Notification: Performance of FrontEnd: time 2.033e-06/1.155, allocations: 0 / 0.8734 GB, free: 12.23 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 3.41e-05/1.155, allocations: 0 / 0.8734 GB, free: 12.23 MB / 0.6387 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.005196/1.16, allocations: 2.008 MB / 0.8753 GB, free: 10.23 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 5.858e-05/1.16, allocations: 8.031 kB / 0.8754 GB, free: 10.22 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002287/1.16, allocations: 154.9 kB / 0.8755 GB, free: 10.06 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003751/1.161, allocations: 154.8 kB / 0.8756 GB, free: 9.914 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0017/1.162, allocations: 0.7991 MB / 0.8764 GB, free: 9.145 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002965/1.163, allocations: 351 kB / 0.8768 GB, free: 8.742 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001982/1.163, allocations: 103.9 kB / 0.8769 GB, free: 8.641 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002869/1.166, allocations: 1.461 MB / 0.8783 GB, free: 7.137 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.301e-05/1.166, allocations: 7.656 kB / 0.8783 GB, free: 7.133 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001154/1.166, allocations: 39.91 kB / 0.8783 GB, free: 7.098 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-05/1.166, allocations: 40.52 kB / 0.8784 GB, free: 7.062 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003308/1.169, allocations: 1.66 MB / 0.88 GB, free: 5.406 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008808/1.178, allocations: 5.137 MB / 0.885 GB, free: 160 kB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002802/1.181, allocations: 1.216 MB / 0.8862 GB, free: 14.94 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001506/1.182, allocations: 0.7404 MB / 0.8869 GB, free: 14.2 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001575/1.184, allocations: 398.7 kB / 0.8873 GB, free: 13.83 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.031e-05/1.184, allocations: 43.56 kB / 0.8873 GB, free: 13.78 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=131): time 3.186e-06/1.184, allocations: 0 / 0.8873 GB, free: 13.78 MB / 0.6544 GB Notification: Performance of matching and sorting (n=134): time 0.01018/1.194, allocations: 4.192 MB / 0.8914 GB, free: 9.617 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.603e-05/1.194, allocations: 93.39 kB / 0.8915 GB, free: 9.512 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001119/1.195, allocations: 0.7696 MB / 0.8923 GB, free: 8.719 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0001032/1.195, allocations: 45.7 kB / 0.8923 GB, free: 8.668 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004137/1.196, allocations: 445.9 kB / 0.8927 GB, free: 8.227 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.000461/1.196, allocations: 494.5 kB / 0.8932 GB, free: 7.754 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003726/1.197, allocations: 226.9 kB / 0.8934 GB, free: 7.527 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001857/1.197, allocations: 345.9 kB / 0.8938 GB, free: 7.184 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001245/1.198, allocations: 0.5782 MB / 0.8943 GB, free: 6.609 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001406/1.2, allocations: 0.7023 MB / 0.895 GB, free: 5.875 MB / 0.6544 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.002981/1.203, allocations: 1.364 MB / 0.8963 GB, free: 4.496 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/1.203, allocations: 0 / 0.8963 GB, free: 4.496 MB / 0.6544 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004286/1.207, allocations: 1.848 MB / 0.8982 GB, free: 2.656 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.276e-05/1.207, allocations: 8 kB / 0.8982 GB, free: 2.648 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.819e-05/1.207, allocations: 8 kB / 0.8982 GB, free: 2.641 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002569/1.209, allocations: 0.6104 MB / 0.8988 GB, free: 2.031 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009636/1.21, allocations: 209 kB / 0.899 GB, free: 1.836 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003324/1.214, allocations: 2.678 MB / 0.9016 GB, free: 15.03 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009962/1.215, allocations: 51.98 kB / 0.9016 GB, free: 14.98 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001291/1.215, allocations: 63.95 kB / 0.9017 GB, free: 14.92 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.000666/1.216, allocations: 277.9 kB / 0.902 GB, free: 14.65 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002981/1.216, allocations: 125.5 kB / 0.9021 GB, free: 14.53 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004644/1.221, allocations: 2.312 MB / 0.9043 GB, free: 12.22 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.6e-05/1.221, allocations: 14.16 kB / 0.9043 GB, free: 12.21 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/1.221, allocations: 4 kB / 0.9043 GB, free: 12.2 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.621e-05/1.221, allocations: 7.984 kB / 0.9044 GB, free: 12.2 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005898/1.226, allocations: 2.951 MB / 0.9072 GB, free: 9.242 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.192e-05/1.226, allocations: 11.98 kB / 0.9073 GB, free: 9.23 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001118/1.228, allocations: 202.3 kB / 0.9074 GB, free: 9.043 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008587/1.228, allocations: 292.9 kB / 0.9077 GB, free: 8.754 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001498/1.229, allocations: 47.94 kB / 0.9078 GB, free: 8.707 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005755/1.234, allocations: 4.415 MB / 0.9121 GB, free: 4.102 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/1.234, allocations: 3.375 kB / 0.9121 GB, free: 4.102 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006561/1.241, allocations: 2.553 MB / 0.9146 GB, free: 1.535 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001017/1.242, allocations: 242.9 kB / 0.9148 GB, free: 1.297 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003284/1.242, allocations: 28 kB / 0.9148 GB, free: 1.27 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009887/1.243, allocations: 39.97 kB / 0.9149 GB, free: 1.23 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002625/1.244, allocations: 105.1 kB / 0.915 GB, free: 1.129 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001298/1.244, allocations: 54.36 kB / 0.915 GB, free: 1.078 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.001015/1.245, allocations: 0.5841 MB / 0.9156 GB, free: 496 kB / 0.67 GB Notification: Performance of sort global known variables: time 7e-08/1.245, allocations: 0 / 0.9156 GB, free: 496 kB / 0.67 GB Notification: Performance of remove unused functions: time 0.002431/1.247, allocations: 0.6815 MB / 0.9163 GB, free: 15.8 MB / 0.6856 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.008208/1.255, allocations: 3.843 MB / 0.92 GB, free: 12.03 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.004049/1.259, allocations: 1.695 MB / 0.9217 GB, free: 10.31 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 8.637e-06/1.259, allocations: 4 kB / 0.9217 GB, free: 10.31 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.002478/1.262, allocations: 1.246 MB / 0.9229 GB, free: 9.027 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002425/1.264, allocations: 412.7 kB / 0.9233 GB, free: 8.645 MB / 0.6856 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10487:11-10487: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:10487:11-10487: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.02455/1.289, allocations: 11.57 MB / 0.9346 GB, free: 13.01 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00113/1.29, allocations: 1.128 MB / 0.9357 GB, free: 11.85 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001194/1.291, allocations: 261.4 kB / 0.9359 GB, free: 11.59 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009543/1.292, allocations: 495.2 kB / 0.9364 GB, free: 11.11 MB / 0.7012 GB Notification: Performance of SimCode: time 1.583e-06/1.292, allocations: 0 / 0.9364 GB, free: 11.11 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1139/1.406, allocations: 43.26 MB / 0.9787 GB, free: 296 kB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.18/19.59, allocations: 10.22 kB / 0.9787 GB, free: 292 kB / 0.7325 GB " [Timeout remaining time 640] (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: 23.684290091041476]