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.001812/0.001813, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002239/0.002239, allocations: 194.2 kB / 16.53 MB, free: 6.664 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.717/1.717, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.74/0.74, allocations: 91.2 MB / 381.6 MB, free: 9.398 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001699/0.001699, allocations: 77.78 kB / 460.4 MB, free: 23.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1363, allocations: 67.7 MB / 0.5157 GB, free: 10.08 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.06921/0.2056, allocations: 67.09 MB / 0.5813 GB, free: 6.746 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.2869/0.4926, allocations: 26.72 MB / 0.6073 GB, free: 5.938 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001053/0.4937, allocations: 41.16 kB / 0.6074 GB, free: 5.938 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001399/0.4951, allocations: 0.4996 MB / 0.6079 GB, free: 5.938 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003635/0.4988, allocations: 1.258 MB / 0.6091 GB, free: 5.926 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004821/0.5036, allocations: 1.636 MB / 0.6107 GB, free: 5.91 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002516/0.5061, allocations: 1.884 MB / 0.6125 GB, free: 5.902 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005183/0.5067, allocations: 351.2 kB / 0.6129 GB, free: 5.832 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.04596/0.5526, allocations: 20.53 MB / 0.6329 GB, free: 304 kB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001384/0.554, allocations: 0.8471 MB / 0.6337 GB, free: 0 / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001886/0.5542, allocations: 119 kB / 0.6339 GB, free: 0 / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2823/0.8366, allocations: 127.7 MB / 0.7586 GB, free: 9.395 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005256/0.8371, allocations: 319.1 kB / 0.7589 GB, free: 9.094 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001029/0.8382, allocations: 0.6905 MB / 0.7596 GB, free: 8.414 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.00467/0.8429, allocations: 2.826 MB / 0.7624 GB, free: 5.727 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.8429, allocations: 4 kB / 0.7624 GB, free: 5.723 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.132e-06/0.8429, allocations: 0 / 0.7624 GB, free: 5.723 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.335e-05/0.8429, allocations: 0 / 0.7624 GB, free: 5.723 MB / 0.5762 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.00377/0.8467, allocations: 2.009 MB / 0.7643 GB, free: 3.688 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.225e-05/0.8467, allocations: 8.031 kB / 0.7643 GB, free: 3.68 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001733/0.8469, allocations: 152.3 kB / 0.7645 GB, free: 3.523 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002656/0.8472, allocations: 147.4 kB / 0.7646 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009912/0.8482, allocations: 0.7915 MB / 0.7654 GB, free: 2.562 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001561/0.8484, allocations: 224.6 kB / 0.7656 GB, free: 2.316 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001579/0.8485, allocations: 99.91 kB / 0.7657 GB, free: 2.219 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002192/0.8507, allocations: 1.446 MB / 0.7671 GB, free: 0.7305 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.532e-05/0.8508, allocations: 4 kB / 0.7671 GB, free: 0.7266 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.997e-05/0.8509, allocations: 42.81 kB / 0.7671 GB, free: 0.6875 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.246e-05/0.8509, allocations: 38 kB / 0.7672 GB, free: 0.6523 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002734/0.8536, allocations: 1.636 MB / 0.7688 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006517/0.8602, allocations: 5.226 MB / 0.7739 GB, free: 9.602 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00239/0.8626, allocations: 1.266 MB / 0.7751 GB, free: 8.32 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00126/0.8638, allocations: 0.792 MB / 0.7759 GB, free: 7.523 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002549/0.8664, allocations: 4.205 MB / 0.78 GB, free: 2.391 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.2e-05/0.8665, allocations: 51.56 kB / 0.7801 GB, free: 2.332 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=131): time 2.464e-06/0.8665, allocations: 0 / 0.7801 GB, free: 2.332 MB / 0.5919 GB Notification: Performance of matching and sorting (n=134): time 0.008402/0.8749, allocations: 4.593 MB / 0.7845 GB, free: 13.6 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.8749, allocations: 98.09 kB / 0.7846 GB, free: 13.49 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006999/0.8756, allocations: 0.7409 MB / 0.7854 GB, free: 12.72 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.786e-05/0.8757, allocations: 49.64 kB / 0.7854 GB, free: 12.67 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003393/0.8761, allocations: 440.6 kB / 0.7858 GB, free: 12.23 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002765/0.8763, allocations: 460.8 kB / 0.7863 GB, free: 11.79 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003062/0.8767, allocations: 230.8 kB / 0.7865 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001015/0.8768, allocations: 357.9 kB / 0.7868 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001078/0.8778, allocations: 0.5656 MB / 0.7874 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001291/0.8791, allocations: 0.7023 MB / 0.7881 GB, free: 9.898 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.002558/0.8817, allocations: 1.421 MB / 0.7894 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.8817, allocations: 0 / 0.7894 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003429/0.8852, allocations: 1.849 MB / 0.7913 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.8852, allocations: 8 kB / 0.7913 GB, free: 6.559 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.246e-05/0.8852, allocations: 11.94 kB / 0.7913 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002196/0.8874, allocations: 0.6135 MB / 0.7919 GB, free: 5.93 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008341/0.8883, allocations: 213.2 kB / 0.7921 GB, free: 5.723 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00234/0.8906, allocations: 2.782 MB / 0.7948 GB, free: 2.777 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006766/0.8913, allocations: 55.88 kB / 0.7948 GB, free: 2.723 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.876e-05/0.8914, allocations: 59.95 kB / 0.7949 GB, free: 2.664 MB / 0.6075 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.0003628/0.8918, allocations: 274.6 kB / 0.7952 GB, free: 2.387 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002202/0.892, allocations: 122.6 kB / 0.7953 GB, free: 2.266 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003938/0.896, allocations: 2.307 MB / 0.7975 GB, free: 15.92 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.089e-05/0.896, allocations: 16 kB / 0.7975 GB, free: 15.9 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.896, allocations: 4 kB / 0.7976 GB, free: 15.9 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.207e-05/0.896, allocations: 7.984 kB / 0.7976 GB, free: 15.89 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004415/0.9004, allocations: 2.971 MB / 0.8005 GB, free: 12.88 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.206e-05/0.9005, allocations: 12.5 kB / 0.8005 GB, free: 12.87 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/0.9015, allocations: 203.6 kB / 0.8007 GB, free: 12.67 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000651/0.9022, allocations: 289.2 kB / 0.8009 GB, free: 12.38 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.242e-05/0.9023, allocations: 45.08 kB / 0.801 GB, free: 12.34 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004189/0.9065, allocations: 4.616 MB / 0.8055 GB, free: 7.445 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.9065, allocations: 11.88 kB / 0.8055 GB, free: 7.434 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004339/0.9108, allocations: 2.556 MB / 0.808 GB, free: 4.855 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004826/0.9113, allocations: 307.5 kB / 0.8083 GB, free: 4.535 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001579/0.9115, allocations: 31.84 kB / 0.8083 GB, free: 4.504 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006616/0.9121, allocations: 43.95 kB / 0.8084 GB, free: 4.461 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001539/0.9123, allocations: 88.86 kB / 0.8085 GB, free: 4.371 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.668e-05/0.9124, allocations: 55.95 kB / 0.8085 GB, free: 4.316 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0005758/0.913, allocations: 0.5677 MB / 0.8091 GB, free: 3.738 MB / 0.6231 GB Notification: Performance of sort global known variables: time 3.21e-07/0.913, allocations: 0 / 0.8091 GB, free: 3.738 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.00126/0.9142, allocations: 0.6752 MB / 0.8097 GB, free: 3.062 MB / 0.6231 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.005563/0.9198, allocations: 3.828 MB / 0.8135 GB, free: 15.24 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.003625/0.9235, allocations: 1.989 MB / 0.8154 GB, free: 13.21 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.9235, allocations: 8 kB / 0.8154 GB, free: 13.2 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001929/0.9254, allocations: 1.275 MB / 0.8167 GB, free: 11.86 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001687/0.9271, allocations: 442.8 kB / 0.8171 GB, free: 11.45 MB / 0.6387 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10354:11-10354: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:10354:11-10354: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.2129/1.14, allocations: 12.15 MB / 0.8289 GB, free: 257.9 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009042/1.141, allocations: 1.121 MB / 0.83 GB, free: 257.2 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.00127/1.142, allocations: 258.9 kB / 0.8303 GB, free: 257.2 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007738/1.143, allocations: 480 kB / 0.8307 GB, free: 257.2 MB / 0.6387 GB Notification: Performance of SimCode: time 1.012e-06/1.143, allocations: 0 / 0.8307 GB, free: 257.2 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.227/3.37, allocations: 41.53 MB / 0.8713 GB, free: 237.5 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.34/20.71, allocations: 11.94 kB / 0.8713 GB, free: 237.5 MB / 0.6387 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 & /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 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Processes_Tests_Pump.fmu > ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.pipe 2>&1) 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) Reference file matches