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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001614/0.001614, allocations: 107.6 kB / 16.45 MB, free: 6.508 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001668/0.001668, allocations: 200.5 kB / 19.41 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.55/1.55, allocations: 225.6 MB / 247.8 MB, free: 13.96 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo): time 0.8331/0.8331, allocations: 94.61 MB / 397.3 MB, free: 296 kB / 302.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-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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.0025/0.0025, allocations: 85.97 kB / 0.5416 GB, free: 42.36 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1463, allocations: 71.85 MB / 0.6118 GB, free: 10.09 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.08661/0.2329, allocations: 67.47 MB / 0.6777 GB, free: 6.379 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.03504/0.2679, allocations: 26.9 MB / 0.7039 GB, free: 11.4 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00141/0.2693, allocations: 39.75 kB / 0.704 GB, free: 11.36 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001793/0.2711, allocations: 0.5121 MB / 0.7045 GB, free: 10.84 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004257/0.2754, allocations: 1.301 MB / 0.7057 GB, free: 9.535 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.005015/0.2804, allocations: 1.638 MB / 0.7073 GB, free: 7.891 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.003467/0.2839, allocations: 1.946 MB / 0.7092 GB, free: 5.934 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004419/0.2843, allocations: 239.5 kB / 0.7095 GB, free: 5.688 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.04802/0.3323, allocations: 20.6 MB / 0.7296 GB, free: 0.8984 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00164/0.334, allocations: 0.8638 MB / 0.7304 GB, free: 32 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0004202/0.3344, allocations: 120 kB / 0.7305 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.6278/0.9622, allocations: 128 MB / 0.8556 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0006128/0.9628, allocations: 335.3 kB / 0.8559 GB, free: 15.68 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001167/0.964, allocations: 0.6838 MB / 0.8565 GB, free: 15.22 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.006223/0.9702, allocations: 2.904 MB / 0.8594 GB, free: 12.68 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.9702, allocations: 0 / 0.8594 GB, free: 12.68 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.533e-06/0.9702, allocations: 0 / 0.8594 GB, free: 12.68 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 2.101e-05/0.9702, allocations: 5.859 kB / 0.8594 GB, free: 12.68 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.004208/0.9744, allocations: 2.066 MB / 0.8614 GB, free: 10.59 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.9745, allocations: 8.031 kB / 0.8614 GB, free: 10.59 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001887/0.9746, allocations: 163.2 kB / 0.8616 GB, free: 10.43 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002941/0.9749, allocations: 157.1 kB / 0.8617 GB, free: 10.27 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001591/0.9765, allocations: 0.8867 MB / 0.8626 GB, free: 9.391 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001999/0.9767, allocations: 214.2 kB / 0.8628 GB, free: 9.156 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001965/0.9769, allocations: 111.9 kB / 0.8629 GB, free: 9.047 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002586/0.9795, allocations: 1.438 MB / 0.8643 GB, free: 7.566 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.97e-05/0.9795, allocations: 3.953 kB / 0.8643 GB, free: 7.562 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.854e-05/0.9796, allocations: 39.28 kB / 0.8643 GB, free: 7.527 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.644e-05/0.9797, allocations: 53.98 kB / 0.8644 GB, free: 7.477 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003212/0.9829, allocations: 1.619 MB / 0.866 GB, free: 5.863 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008058/0.991, allocations: 5.199 MB / 0.871 GB, free: 0.5391 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002747/0.9937, allocations: 1.208 MB / 0.8722 GB, free: 15.33 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001455/0.9952, allocations: 0.7319 MB / 0.8729 GB, free: 14.59 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00386/0.999, allocations: 4.198 MB / 0.877 GB, free: 9.469 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.684e-05/0.9991, allocations: 51.55 kB / 0.8771 GB, free: 9.414 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=131): time 3.486e-06/0.9991, allocations: 0 / 0.8771 GB, free: 9.414 MB / 0.6387 GB Notification: Performance of matching and sorting (n=134): time 0.01011/1.009, allocations: 4.619 MB / 0.8816 GB, free: 4.707 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.233e-05/1.009, allocations: 94.33 kB / 0.8817 GB, free: 4.602 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001082/1.01, allocations: 0.7618 MB / 0.8824 GB, free: 3.816 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 8.649e-05/1.01, allocations: 45.7 kB / 0.8825 GB, free: 3.766 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003723/1.011, allocations: 453.9 kB / 0.8829 GB, free: 3.316 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003993/1.011, allocations: 478.3 kB / 0.8834 GB, free: 2.855 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000399/1.012, allocations: 226.9 kB / 0.8836 GB, free: 2.629 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0002475/1.012, allocations: 357.9 kB / 0.8839 GB, free: 2.273 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001194/1.013, allocations: 0.5608 MB / 0.8845 GB, free: 1.715 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001439/1.014, allocations: 0.6996 MB / 0.8852 GB, free: 0.9883 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.003058/1.018, allocations: 1.424 MB / 0.8865 GB, free: 15.53 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/1.018, allocations: 0 / 0.8865 GB, free: 15.53 MB / 0.6544 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004107/1.022, allocations: 1.845 MB / 0.8883 GB, free: 13.7 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/1.022, allocations: 5.094 kB / 0.8883 GB, free: 13.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.092e-05/1.022, allocations: 15.98 kB / 0.8884 GB, free: 13.68 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002653/1.024, allocations: 0.6097 MB / 0.889 GB, free: 13.07 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009989/1.025, allocations: 203 kB / 0.8892 GB, free: 12.88 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00339/1.029, allocations: 2.796 MB / 0.8919 GB, free: 9.941 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007567/1.029, allocations: 53.06 kB / 0.8919 GB, free: 9.891 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002402/1.03, allocations: 59.95 kB / 0.892 GB, free: 9.832 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 (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.0005053/1.03, allocations: 282.2 kB / 0.8923 GB, free: 9.559 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002572/1.03, allocations: 127.2 kB / 0.8924 GB, free: 9.434 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004978/1.035, allocations: 2.299 MB / 0.8946 GB, free: 7.137 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.318e-05/1.035, allocations: 12 kB / 0.8946 GB, free: 7.125 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/1.035, allocations: 8 kB / 0.8946 GB, free: 7.117 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/1.035, allocations: 3.984 kB / 0.8947 GB, free: 7.113 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005818/1.041, allocations: 2.965 MB / 0.8975 GB, free: 4.137 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.436e-05/1.041, allocations: 12 kB / 0.8976 GB, free: 4.125 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001098/1.042, allocations: 201.9 kB / 0.8977 GB, free: 3.938 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007993/1.043, allocations: 293.2 kB / 0.898 GB, free: 3.648 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001003/1.043, allocations: 43.95 kB / 0.8981 GB, free: 3.605 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005785/1.049, allocations: 4.622 MB / 0.9026 GB, free: 14.73 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/1.049, allocations: 0 / 0.9026 GB, free: 14.73 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005859/1.055, allocations: 2.549 MB / 0.9051 GB, free: 12.17 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006743/1.056, allocations: 312.1 kB / 0.9054 GB, free: 11.85 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002214/1.056, allocations: 25.22 kB / 0.9054 GB, free: 11.82 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008876/1.057, allocations: 47.95 kB / 0.9054 GB, free: 11.78 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/1.057, allocations: 90.36 kB / 0.9055 GB, free: 11.69 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001035/1.057, allocations: 55.94 kB / 0.9056 GB, free: 11.64 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0009789/1.058, allocations: 0.5841 MB / 0.9062 GB, free: 11.04 MB / 0.67 GB Notification: Performance of sort global known variables: time 9e-08/1.058, allocations: 0 / 0.9062 GB, free: 11.04 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.002337/1.06, allocations: 0.6865 MB / 0.9068 GB, free: 10.36 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.007651/1.068, allocations: 3.831 MB / 0.9106 GB, free: 6.598 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.004047/1.072, allocations: 1.675 MB / 0.9122 GB, free: 4.902 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 6.683e-06/1.072, allocations: 4 kB / 0.9122 GB, free: 4.898 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.002641/1.075, allocations: 1.239 MB / 0.9134 GB, free: 3.625 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002122/1.077, allocations: 429.1 kB / 0.9138 GB, free: 3.242 MB / 0.67 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10410:11-10410: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_2/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10410:11-10410: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.02336/1.1, allocations: 11.55 MB / 0.9251 GB, free: 7.609 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009565/1.101, allocations: 1.124 MB / 0.9262 GB, free: 6.457 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001119/1.102, allocations: 261.5 kB / 0.9264 GB, free: 6.199 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008356/1.103, allocations: 491.2 kB / 0.9269 GB, free: 5.719 MB / 0.6856 GB Notification: Performance of SimCode: time 1.342e-06/1.103, allocations: 3.938 kB / 0.9269 GB, free: 5.715 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1084/1.211, allocations: 42.37 MB / 0.9683 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.87/17.08, allocations: 15.16 kB / 0.9683 GB, free: 11.79 MB / 0.7325 GB " [Timeout remaining time 643] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Processes_Tests_Pump_fmu --startTime=0 --stopTime=30 --stepSize=0.03 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Processes_Tests_Pump.fmu > ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Processes.Tests.Pump_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_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: 21.000544492155313]