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.001481/0.001481, allocations: 108 kB / 15.61 MB, free: 148 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.001683/0.001683, allocations: 194.1 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.392/1.392, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6793/0.6793, allocations: 91.2 MB / 381.6 MB, free: 9.406 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 78.47 kB / 460.4 MB, free: 23.1 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1175, allocations: 67.7 MB / 0.5157 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.07061/0.1882, allocations: 67.1 MB / 0.5813 GB, free: 6.758 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.3013/0.4895, allocations: 26.71 MB / 0.6073 GB, free: 5.938 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00219/0.4917, allocations: 37.41 kB / 0.6074 GB, free: 5.938 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002211/0.4939, allocations: 0.5124 MB / 0.6079 GB, free: 5.938 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005092/0.4991, allocations: 1.253 MB / 0.6091 GB, free: 5.922 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005395/0.5045, allocations: 1.629 MB / 0.6107 GB, free: 5.91 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002567/0.5071, allocations: 1.888 MB / 0.6125 GB, free: 5.898 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004818/0.5076, allocations: 350.6 kB / 0.6129 GB, free: 5.824 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.04763/0.5552, allocations: 20.51 MB / 0.6329 GB, free: 288 kB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001845/0.5571, allocations: 0.8553 MB / 0.6337 GB, free: 0 / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002788/0.5574, allocations: 120.3 kB / 0.6339 GB, free: 0 / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3202/0.8776, allocations: 127.7 MB / 0.7586 GB, free: 9.398 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0007349/0.8784, allocations: 333 kB / 0.7589 GB, free: 9.086 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001382/0.8798, allocations: 0.6763 MB / 0.7596 GB, free: 8.418 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.006139/0.886, allocations: 2.83 MB / 0.7623 GB, free: 5.727 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.886, allocations: 0 / 0.7623 GB, free: 5.727 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.132e-06/0.886, allocations: 0 / 0.7623 GB, free: 5.727 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.778e-05/0.886, allocations: 0 / 0.7623 GB, free: 5.727 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.004693/0.8907, allocations: 2.021 MB / 0.7643 GB, free: 3.68 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.8908, allocations: 8.031 kB / 0.7643 GB, free: 3.672 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000247/0.891, allocations: 156.3 kB / 0.7645 GB, free: 3.512 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003668/0.8914, allocations: 147.4 kB / 0.7646 GB, free: 3.367 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001178/0.8926, allocations: 0.7972 MB / 0.7654 GB, free: 2.547 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001871/0.8928, allocations: 218.5 kB / 0.7656 GB, free: 2.305 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001838/0.893, allocations: 99.91 kB / 0.7657 GB, free: 2.207 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002582/0.8956, allocations: 1.445 MB / 0.7671 GB, free: 0.7227 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.951e-05/0.8956, allocations: 0 / 0.7671 GB, free: 0.7227 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001098/0.8957, allocations: 44 kB / 0.7671 GB, free: 0.6797 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.935e-05/0.8958, allocations: 38 kB / 0.7672 GB, free: 0.6445 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003146/0.899, allocations: 1.644 MB / 0.7688 GB, free: 15 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008176/0.9071, allocations: 5.22 MB / 0.7739 GB, free: 9.594 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002981/0.9102, allocations: 1.271 MB / 0.7751 GB, free: 8.305 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001476/0.9117, allocations: 0.7887 MB / 0.7759 GB, free: 7.512 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003498/0.9152, allocations: 4.198 MB / 0.78 GB, free: 2.383 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.522e-05/0.9153, allocations: 55.5 kB / 0.78 GB, free: 2.32 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=131): time 7.323e-06/0.9153, allocations: 0 / 0.78 GB, free: 2.32 MB / 0.5919 GB Notification: Performance of matching and sorting (n=134): time 0.01098/0.9263, allocations: 4.597 MB / 0.7845 GB, free: 13.59 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.844e-05/0.9264, allocations: 94.09 kB / 0.7846 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009654/0.9274, allocations: 0.7409 MB / 0.7854 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001139/0.9275, allocations: 49.7 kB / 0.7854 GB, free: 12.66 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003014/0.9278, allocations: 437.4 kB / 0.7858 GB, free: 12.23 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003773/0.9282, allocations: 460.8 kB / 0.7863 GB, free: 11.78 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003886/0.9286, allocations: 234.8 kB / 0.7865 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001345/0.9287, allocations: 353.9 kB / 0.7868 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001233/0.93, allocations: 0.5647 MB / 0.7874 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001363/0.9313, allocations: 0.7061 MB / 0.7881 GB, free: 9.887 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.002914/0.9343, allocations: 1.422 MB / 0.7894 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.9343, allocations: 2.062 kB / 0.7894 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003861/0.9382, allocations: 1.853 MB / 0.7913 GB, free: 6.551 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.9382, allocations: 8.188 kB / 0.7913 GB, free: 6.543 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.773e-05/0.9382, allocations: 15.94 kB / 0.7913 GB, free: 6.527 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002457/0.9407, allocations: 0.6051 MB / 0.7919 GB, free: 5.918 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009939/0.9417, allocations: 223.6 kB / 0.7921 GB, free: 5.699 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002765/0.9445, allocations: 2.77 MB / 0.7948 GB, free: 2.766 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009082/0.9454, allocations: 59.81 kB / 0.7948 GB, free: 2.707 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001373/0.9455, allocations: 59.95 kB / 0.7949 GB, free: 2.648 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.0004858/0.946, allocations: 277.3 kB / 0.7952 GB, free: 2.371 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000292/0.9463, allocations: 114.6 kB / 0.7953 GB, free: 2.258 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004494/0.9508, allocations: 2.316 MB / 0.7975 GB, free: 15.9 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.494e-05/0.9509, allocations: 12 kB / 0.7975 GB, free: 15.89 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.9509, allocations: 4 kB / 0.7976 GB, free: 15.89 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/0.9509, allocations: 3.984 kB / 0.7976 GB, free: 15.88 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004969/0.9559, allocations: 2.979 MB / 0.8005 GB, free: 12.86 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.398e-05/0.9559, allocations: 8 kB / 0.8005 GB, free: 12.86 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/0.957, allocations: 203.7 kB / 0.8007 GB, free: 12.66 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007144/0.9577, allocations: 289.2 kB / 0.8009 GB, free: 12.37 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001047/0.9578, allocations: 51.95 kB / 0.801 GB, free: 12.32 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004714/0.9625, allocations: 4.616 MB / 0.8055 GB, free: 7.43 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.9626, allocations: 4.031 kB / 0.8055 GB, free: 7.426 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004894/0.9675, allocations: 2.554 MB / 0.808 GB, free: 4.848 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004878/0.968, allocations: 303.5 kB / 0.8083 GB, free: 4.531 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001816/0.9682, allocations: 31.84 kB / 0.8083 GB, free: 4.5 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007802/0.969, allocations: 51.95 kB / 0.8084 GB, free: 4.449 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001856/0.9692, allocations: 89.86 kB / 0.8085 GB, free: 4.359 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.768e-05/0.9693, allocations: 47.95 kB / 0.8085 GB, free: 4.312 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0007241/0.97, allocations: 0.5717 MB / 0.8091 GB, free: 3.73 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.843e-06/0.97, allocations: 96 / 0.8091 GB, free: 3.73 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001649/0.9716, allocations: 0.679 MB / 0.8097 GB, free: 3.051 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.006393/0.9781, allocations: 3.819 MB / 0.8135 GB, free: 15.24 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.004342/0.9824, allocations: 1.996 MB / 0.8154 GB, free: 13.2 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.9824, allocations: 0 / 0.8154 GB, free: 13.2 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.002215/0.9847, allocations: 1.29 MB / 0.8167 GB, free: 11.85 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002067/0.9867, allocations: 442.2 kB / 0.8171 GB, free: 11.44 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.2548/1.242, allocations: 12.15 MB / 0.8289 GB, free: 257.7 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006324/1.242, allocations: 1.119 MB / 0.83 GB, free: 257 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001105/1.243, allocations: 258.7 kB / 0.8303 GB, free: 257 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006091/1.244, allocations: 482.4 kB / 0.8307 GB, free: 257 MB / 0.6387 GB Notification: Performance of SimCode: time 7.81e-07/1.244, allocations: 0 / 0.8307 GB, free: 257 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0753/1.319, allocations: 41.53 MB / 0.8713 GB, free: 237.1 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/14.33, allocations: 6.688 kB / 0.8713 GB, free: 237.1 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 & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Processes.Tests.Pump_res.csv --start-time 0 --stop-time 30 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.03 ThermofluidStream_ThermofluidStream_Processes_Tests_Pump.fmu > ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Processes.Tests.Pump_res.csv","/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