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) 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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001756/0.001756, allocations: 108 kB / 15.6 MB, free: 132 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.002323/0.002323, allocations: 192.4 kB / 16.53 MB, free: 6.391 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.676/1.676, allocations: 222.9 MB / 240.2 MB, free: 4.242 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8871/0.8871, allocations: 93.71 MB / 384.1 MB, free: 6.945 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002467/0.002467, allocations: 85.61 kB / 463.5 MB, free: 21.91 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1668/0.1693, allocations: 68.26 MB / 0.5193 GB, free: 6.887 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.08856/0.2579, allocations: 67.12 MB / 0.5848 GB, free: 3.531 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.4148/0.6728, allocations: 26.74 MB / 0.611 GB, free: 5.887 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001453/0.6743, allocations: 41.22 kB / 0.611 GB, free: 5.887 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001808/0.6761, allocations: 0.5097 MB / 0.6115 GB, free: 5.883 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005093/0.6813, allocations: 1.276 MB / 0.6127 GB, free: 5.867 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006456/0.6877, allocations: 1.642 MB / 0.6143 GB, free: 5.848 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.003274/0.691, allocations: 1.932 MB / 0.6162 GB, free: 5.797 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005594/0.6916, allocations: 355.5 kB / 0.6166 GB, free: 5.719 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.05542/0.747, allocations: 20.54 MB / 0.6366 GB, free: 15.41 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00228/0.7494, allocations: 0.8401 MB / 0.6374 GB, free: 15.09 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003365/0.7497, allocations: 125.5 kB / 0.6376 GB, free: 15.08 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.325/1.075, allocations: 127.7 MB / 0.7623 GB, free: 7.117 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.001223/1.076, allocations: 330.1 kB / 0.7626 GB, free: 6.805 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.002212/1.078, allocations: 0.6862 MB / 0.7633 GB, free: 6.129 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.009028/1.087, allocations: 2.848 MB / 0.7661 GB, free: 3.422 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/1.087, allocations: 0 / 0.7661 GB, free: 3.422 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.334e-06/1.087, allocations: 0 / 0.7661 GB, free: 3.422 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.16e-05/1.087, allocations: 0 / 0.7661 GB, free: 3.422 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.006222/1.094, allocations: 2.024 MB / 0.768 GB, free: 1.371 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/1.094, allocations: 12.03 kB / 0.7681 GB, free: 1.359 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004451/1.094, allocations: 152.3 kB / 0.7682 GB, free: 1.203 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003597/1.095, allocations: 152 kB / 0.7683 GB, free: 1.055 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00148/1.096, allocations: 0.8109 MB / 0.7691 GB, free: 228 kB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002387/1.096, allocations: 221.8 kB / 0.7694 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003692/1.097, allocations: 99.91 kB / 0.7694 GB, free: 15.88 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003106/1.1, allocations: 1.453 MB / 0.7709 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.022e-05/1.1, allocations: 3.906 kB / 0.7709 GB, free: 14.39 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001151/1.1, allocations: 39.98 kB / 0.7709 GB, free: 14.35 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.812e-05/1.1, allocations: 45.98 kB / 0.771 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00363/1.104, allocations: 1.64 MB / 0.7726 GB, free: 12.66 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009043/1.113, allocations: 5.225 MB / 0.7777 GB, free: 7.254 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003276/1.116, allocations: 1.27 MB / 0.7789 GB, free: 5.973 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001624/1.118, allocations: 0.798 MB / 0.7797 GB, free: 5.168 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004416/1.122, allocations: 4.197 MB / 0.7838 GB, free: 40 kB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.351e-05/1.122, allocations: 56.31 kB / 0.7838 GB, free: 15.98 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=131): time 5.951e-06/1.122, allocations: 0 / 0.7838 GB, free: 15.98 MB / 0.6075 GB Notification: Performance of matching and sorting (n=134): time 0.01085/1.133, allocations: 4.594 MB / 0.7883 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.942e-05/1.133, allocations: 94.11 kB / 0.7884 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001082/1.134, allocations: 0.7618 MB / 0.7891 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 9.815e-05/1.134, allocations: 53.69 kB / 0.7892 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004196/1.135, allocations: 441.4 kB / 0.7896 GB, free: 9.852 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004539/1.135, allocations: 464.8 kB / 0.7901 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004834/1.136, allocations: 226.8 kB / 0.7903 GB, free: 9.172 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002094/1.136, allocations: 353.9 kB / 0.7906 GB, free: 8.82 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001379/1.137, allocations: 0.5686 MB / 0.7912 GB, free: 8.254 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001464/1.139, allocations: 0.7023 MB / 0.7919 GB, free: 7.516 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.003152/1.142, allocations: 1.417 MB / 0.7932 GB, free: 6.051 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/1.142, allocations: 0 / 0.7932 GB, free: 6.051 MB / 0.6075 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.00417/1.146, allocations: 1.857 MB / 0.7951 GB, free: 4.18 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/1.146, allocations: 6.344 kB / 0.7951 GB, free: 4.176 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.917e-05/1.146, allocations: 12 kB / 0.7951 GB, free: 4.164 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002767/1.149, allocations: 0.6218 MB / 0.7957 GB, free: 3.539 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001006/1.15, allocations: 207.6 kB / 0.7959 GB, free: 3.336 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003635/1.154, allocations: 2.78 MB / 0.7986 GB, free: 396 kB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009035/1.155, allocations: 51.88 kB / 0.7986 GB, free: 344 kB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/1.155, allocations: 63.89 kB / 0.7987 GB, free: 280 kB / 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.0005787/1.155, allocations: 277.6 kB / 0.799 GB, free: 15.99 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003202/1.156, allocations: 118.5 kB / 0.7991 GB, free: 15.87 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005098/1.161, allocations: 2.314 MB / 0.8013 GB, free: 13.52 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.677e-05/1.161, allocations: 12 kB / 0.8014 GB, free: 13.51 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.521e-05/1.161, allocations: 4 kB / 0.8014 GB, free: 13.5 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.235e-05/1.161, allocations: 15.97 kB / 0.8014 GB, free: 13.49 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005635/1.166, allocations: 2.976 MB / 0.8043 GB, free: 10.48 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.377e-05/1.167, allocations: 12.06 kB / 0.8043 GB, free: 10.46 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001123/1.168, allocations: 199.8 kB / 0.8045 GB, free: 10.27 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008264/1.168, allocations: 295.2 kB / 0.8048 GB, free: 9.977 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001405/1.169, allocations: 55.94 kB / 0.8048 GB, free: 9.922 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00598/1.175, allocations: 4.62 MB / 0.8093 GB, free: 5.031 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/1.175, allocations: 0 / 0.8093 GB, free: 5.031 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005556/1.18, allocations: 2.562 MB / 0.8118 GB, free: 2.441 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006/1.181, allocations: 315.5 kB / 0.8121 GB, free: 2.113 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002399/1.181, allocations: 27.94 kB / 0.8122 GB, free: 2.086 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008004/1.182, allocations: 43.91 kB / 0.8122 GB, free: 2.043 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001862/1.182, allocations: 88.86 kB / 0.8123 GB, free: 1.957 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001102/1.182, allocations: 55.94 kB / 0.8123 GB, free: 1.902 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0008019/1.183, allocations: 0.5841 MB / 0.8129 GB, free: 1.309 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.31e-07/1.183, allocations: 0 / 0.8129 GB, free: 1.309 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001939/1.185, allocations: 0.6752 MB / 0.8136 GB, free: 0.6328 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.007433/1.192, allocations: 3.824 MB / 0.8173 GB, free: 12.8 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.004636/1.197, allocations: 1.994 MB / 0.8192 GB, free: 10.77 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/1.197, allocations: 4 kB / 0.8193 GB, free: 10.77 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.002435/1.2, allocations: 1.285 MB / 0.8205 GB, free: 9.43 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002322/1.202, allocations: 430.5 kB / 0.8209 GB, free: 9.023 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.3193/1.521, allocations: 12.24 MB / 0.8329 GB, free: 254.9 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00111/1.522, allocations: 1.127 MB / 0.834 GB, free: 254.2 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.00147/1.524, allocations: 259.7 kB / 0.8342 GB, free: 254.2 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00078/1.525, allocations: 490 kB / 0.8347 GB, free: 254.2 MB / 0.6387 GB Notification: Performance of SimCode: time 3.386e-06/1.525, allocations: 0 / 0.8347 GB, free: 254.2 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1301/1.655, allocations: 41.75 MB / 0.8755 GB, free: 232.6 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.45/16.11, allocations: 7.938 kB / 0.8755 GB, free: 232.6 MB / 0.6387 GB (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 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_Processes_Tests_Pump.fmu > ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.pipe 2>&1) 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/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches