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.0009043/0.0009044, allocations: 91.14 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005767/0.005767, allocations: 172.9 kB / 16.26 MB, free: 6.613 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.257/1.257, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.5637/0.5637, allocations: 89.63 MB / 381.1 MB, free: 11.32 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000301/0.0003011, allocations: 13.66 kB / 460.7 MB, free: 24.13 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09327/0.09358, allocations: 68.83 MB / 0.5172 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.2604/0.354, allocations: 68.31 MB / 0.5839 GB, free: 6.715 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01956/0.3736, allocations: 26.67 MB / 0.6099 GB, free: 6.312 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009139/0.3745, allocations: 20.25 kB / 0.6099 GB, free: 6.312 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00097/0.3755, allocations: 445.1 kB / 0.6103 GB, free: 6.312 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002583/0.3781, allocations: 1.092 MB / 0.6114 GB, free: 6.117 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003341/0.3815, allocations: 1.472 MB / 0.6129 GB, free: 5.871 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002309/0.3838, allocations: 2.137 MB / 0.6149 GB, free: 5.453 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000502/0.3843, allocations: 300.8 kB / 0.6152 GB, free: 5.375 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03536/0.4197, allocations: 19.32 MB / 0.6341 GB, free: 12.02 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001191/0.4209, allocations: 0.7529 MB / 0.6348 GB, free: 11.6 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001695/0.4211, allocations: 66.12 kB / 0.6349 GB, free: 11.6 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2221/0.6432, allocations: 127.3 MB / 0.7592 GB, free: 252 kB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0004823/0.6437, allocations: 245.2 kB / 0.7595 GB, free: 20 kB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0008884/0.6446, allocations: 0.6056 MB / 0.7601 GB, free: 15.41 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.004551/0.6492, allocations: 2.657 MB / 0.7626 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.6492, allocations: 0 / 0.7626 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.553e-06/0.6492, allocations: 0 / 0.7626 GB, free: 12.89 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.829e-05/0.6492, allocations: 4 kB / 0.7627 GB, free: 12.89 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.003402/0.6526, allocations: 1.668 MB / 0.7643 GB, free: 11.18 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.6527, allocations: 12.03 kB / 0.7643 GB, free: 11.17 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002147/0.6529, allocations: 156.3 kB / 0.7644 GB, free: 11.01 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002102/0.6531, allocations: 135.4 kB / 0.7646 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008158/0.6539, allocations: 0.6339 MB / 0.7652 GB, free: 10.21 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001704/0.6541, allocations: 226.8 kB / 0.7654 GB, free: 9.965 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001764/0.6543, allocations: 102.7 kB / 0.7655 GB, free: 9.867 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002299/0.6566, allocations: 1.45 MB / 0.7669 GB, free: 8.371 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.536e-05/0.6566, allocations: 4 kB / 0.7669 GB, free: 8.367 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.947e-05/0.6567, allocations: 36 kB / 0.767 GB, free: 8.332 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.656e-05/0.6568, allocations: 49.98 kB / 0.767 GB, free: 8.285 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002804/0.6596, allocations: 1.652 MB / 0.7686 GB, free: 6.633 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006397/0.666, allocations: 5.183 MB / 0.7737 GB, free: 1.258 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002319/0.6684, allocations: 1.292 MB / 0.7749 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001265/0.6696, allocations: 0.7998 MB / 0.7757 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002497/0.6721, allocations: 4.211 MB / 0.7798 GB, free: 10 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.6722, allocations: 55.48 kB / 0.7799 GB, free: 9.941 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=131): time 2.665e-06/0.6722, allocations: 0 / 0.7799 GB, free: 9.941 MB / 0.5919 GB Notification: Performance of matching and sorting (n=134): time 0.007876/0.6801, allocations: 4.582 MB / 0.7844 GB, free: 5.211 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.6801, allocations: 90.11 kB / 0.7844 GB, free: 5.105 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005909/0.6807, allocations: 0.6335 MB / 0.7851 GB, free: 4.461 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 7.947e-05/0.6808, allocations: 53.7 kB / 0.7851 GB, free: 4.402 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002227/0.681, allocations: 372.5 kB / 0.7855 GB, free: 4.035 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002825/0.6813, allocations: 463.8 kB / 0.7859 GB, free: 3.586 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000131/0.6815, allocations: 101.6 kB / 0.786 GB, free: 3.48 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001071/0.6816, allocations: 349.9 kB / 0.7863 GB, free: 3.133 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001096/0.6827, allocations: 0.5803 MB / 0.7869 GB, free: 2.555 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001171/0.6839, allocations: 0.7101 MB / 0.7876 GB, free: 1.809 MB / 0.5919 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.002411/0.6863, allocations: 1.44 MB / 0.789 GB, free: 328 kB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.6863, allocations: 0 / 0.789 GB, free: 328 kB / 0.5919 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003265/0.6896, allocations: 1.861 MB / 0.7908 GB, free: 14.45 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.6896, allocations: 8.031 kB / 0.7908 GB, free: 14.44 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.406e-05/0.6896, allocations: 19.94 kB / 0.7909 GB, free: 14.42 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00212/0.6917, allocations: 0.5873 MB / 0.7914 GB, free: 13.83 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008291/0.6926, allocations: 215.7 kB / 0.7916 GB, free: 13.62 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002297/0.6949, allocations: 2.683 MB / 0.7943 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006684/0.6956, allocations: 68.72 kB / 0.7943 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.422e-05/0.6957, allocations: 59.95 kB / 0.7944 GB, free: 10.65 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 sytem: $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.0003719/0.6961, allocations: 269.7 kB / 0.7946 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001611/0.6962, allocations: 106.7 kB / 0.7947 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003953/0.7002, allocations: 2.314 MB / 0.797 GB, free: 7.906 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.7002, allocations: 12 kB / 0.797 GB, free: 7.895 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.7002, allocations: 15.88 kB / 0.797 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/0.7003, allocations: 11.91 kB / 0.797 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004264/0.7045, allocations: 2.942 MB / 0.7999 GB, free: 4.891 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-05/0.7046, allocations: 8 kB / 0.7999 GB, free: 4.883 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009176/0.7055, allocations: 211.8 kB / 0.8001 GB, free: 4.676 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006322/0.7061, allocations: 280.6 kB / 0.8004 GB, free: 4.398 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.239e-05/0.7062, allocations: 47.94 kB / 0.8004 GB, free: 4.352 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1862/0.8924, allocations: 4.245 MB / 0.8046 GB, free: 230.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.8924, allocations: 3.656 kB / 0.8046 GB, free: 230.5 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004777/0.8972, allocations: 2.574 MB / 0.8071 GB, free: 230.3 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004384/0.8977, allocations: 319.1 kB / 0.8074 GB, free: 230.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001322/0.8978, allocations: 22.52 kB / 0.8074 GB, free: 230.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007073/0.8985, allocations: 59.3 kB / 0.8075 GB, free: 230.2 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001892/0.8987, allocations: 91.42 kB / 0.8076 GB, free: 230.2 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.395e-05/0.8988, allocations: 53.84 kB / 0.8076 GB, free: 230.2 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005452/0.8994, allocations: 0.4956 MB / 0.8081 GB, free: 230.1 MB / 0.6075 GB Notification: Performance of sort global known variables: time 5.61e-07/0.8994, allocations: 3.828 kB / 0.8081 GB, free: 230.1 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001416/0.9008, allocations: 0.6686 MB / 0.8088 GB, free: 230.1 MB / 0.6075 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.005046/0.9059, allocations: 3.844 MB / 0.8125 GB, free: 228.9 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002677/0.9085, allocations: 1.776 MB / 0.8142 GB, free: 228.1 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.9086, allocations: 0 / 0.8142 GB, free: 228.1 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001619/0.9102, allocations: 1.305 MB / 0.8155 GB, free: 227.4 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001714/0.9119, allocations: 381.7 kB / 0.8159 GB, free: 227.3 MB / 0.6075 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10070:11-10070: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:10070:11-10070: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.01575/0.9277, allocations: 12.17 MB / 0.8278 GB, free: 221.2 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004819/0.9282, allocations: 1.085 MB / 0.8288 GB, free: 220.5 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0008383/0.929, allocations: 245.3 kB / 0.8291 GB, free: 220.5 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004801/0.9295, allocations: 425 kB / 0.8295 GB, free: 220.2 MB / 0.6075 GB Notification: Performance of SimCode: time 5.41e-07/0.9295, allocations: 0 / 0.8295 GB, free: 220.2 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.678/4.608, allocations: 38.55 MB / 0.8671 GB, free: 188.1 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001871/4.608, allocations: 228.1 kB / 0.8673 GB, free: 187.8 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.347/7.955, allocations: 0 / 0.8673 GB, free: 187.8 MB / 0.6075 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