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: translateModel(ThermofluidStream.Processes.Tests.Pump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pump.m_flow|pump1.m_flow|pump1.omega|pump1.phi|pump2.m_flow|pump3.m_flow|pump3.omega|pump3.phi|pump4.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Processes.Tests.Pump") translateModel(ThermofluidStream.Processes.Tests.Pump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pump.m_flow|pump1.m_flow|pump1.omega|pump1.phi|pump2.m_flow|pump3.m_flow|pump3.omega|pump3.phi|pump4.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Processes.Tests.Pump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 110.2 kB / 16.41 MB, free: 6.488 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.00115/0.001151, allocations: 189.6 kB / 17.34 MB, free: 5.762 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.329/1.329, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7207/0.7207, allocations: 91.19 MB / 382.4 MB, free: 7.531 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 79.88 kB / 0.5175 GB, free: 4.125 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3473/0.3488, allocations: 67.69 MB / 0.5836 GB, free: 13.81 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.06459/0.4135, allocations: 67.1 MB / 0.6491 GB, free: 10.82 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02801/0.4415, allocations: 26.74 MB / 0.6752 GB, free: 15.99 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001166/0.4427, allocations: 39.75 kB / 0.6753 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001441/0.4442, allocations: 0.5081 MB / 0.6758 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.003492/0.4477, allocations: 1.258 MB / 0.677 GB, free: 14.18 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.004262/0.452, allocations: 1.625 MB / 0.6786 GB, free: 12.55 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002959/0.455, allocations: 1.892 MB / 0.6804 GB, free: 10.65 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006847/0.4557, allocations: 359.3 kB / 0.6808 GB, free: 10.29 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.04507/0.5008, allocations: 20.52 MB / 0.7008 GB, free: 5.57 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001547/0.5024, allocations: 0.8404 MB / 0.7017 GB, free: 4.727 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0002588/0.5027, allocations: 124 kB / 0.7018 GB, free: 4.605 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.5648/1.067, allocations: 127.7 MB / 0.8265 GB, free: 2.754 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005844/1.068, allocations: 329 kB / 0.8268 GB, free: 2.5 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0007601/1.069, allocations: 0.6853 MB / 0.8275 GB, free: 2.031 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.005049/1.074, allocations: 2.866 MB / 0.8303 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/1.074, allocations: 4 kB / 0.8303 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.094e-06/1.074, allocations: 1.75 kB / 0.8303 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.538e-05/1.074, allocations: 0 / 0.8303 GB, free: 15.6 MB / 0.5919 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.004147/1.078, allocations: 2.001 MB / 0.8323 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/1.078, allocations: 8.031 kB / 0.8323 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003226/1.079, allocations: 148.6 kB / 0.8324 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00153/1.08, allocations: 0.859 MB / 0.8332 GB, free: 12.62 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002182/1.08, allocations: 214.4 kB / 0.8334 GB, free: 12.39 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000204/1.081, allocations: 104.8 kB / 0.8335 GB, free: 12.29 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002662/1.083, allocations: 1.452 MB / 0.835 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.225e-05/1.083, allocations: 3.469 kB / 0.835 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000116/1.083, allocations: 40 kB / 0.835 GB, free: 10.76 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-05/1.083, allocations: 42 kB / 0.835 GB, free: 10.72 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002962/1.086, allocations: 1.631 MB / 0.8366 GB, free: 9.098 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007283/1.094, allocations: 5.185 MB / 0.8417 GB, free: 3.77 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002628/1.096, allocations: 1.277 MB / 0.8429 GB, free: 2.496 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001354/1.098, allocations: 0.8026 MB / 0.8437 GB, free: 1.688 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003223/1.101, allocations: 4.2 MB / 0.8478 GB, free: 12.56 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.155e-05/1.101, allocations: 47.56 kB / 0.8479 GB, free: 12.5 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=131): time 4.178e-06/1.101, allocations: 4 kB / 0.8479 GB, free: 12.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=134): time 0.009698/1.111, allocations: 4.604 MB / 0.8524 GB, free: 7.82 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/1.111, allocations: 94.09 kB / 0.8525 GB, free: 7.711 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009415/1.112, allocations: 0.7409 MB / 0.8532 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001227/1.112, allocations: 49.7 kB / 0.8532 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003324/1.112, allocations: 433.4 kB / 0.8537 GB, free: 6.461 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003767/1.113, allocations: 461.4 kB / 0.8541 GB, free: 6.016 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003659/1.113, allocations: 230.8 kB / 0.8543 GB, free: 5.785 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000143/1.113, allocations: 351.9 kB / 0.8546 GB, free: 5.438 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001223/1.114, allocations: 0.5665 MB / 0.8552 GB, free: 4.875 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001352/1.116, allocations: 0.7015 MB / 0.8559 GB, free: 4.148 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.002745/1.119, allocations: 1.421 MB / 0.8573 GB, free: 2.691 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.576e-06/1.119, allocations: 7.938 kB / 0.8573 GB, free: 2.684 MB / 0.6075 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003765/1.122, allocations: 1.852 MB / 0.8591 GB, free: 0.8398 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.502e-05/1.122, allocations: 4 kB / 0.8591 GB, free: 0.8359 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.137e-05/1.122, allocations: 12.19 kB / 0.8591 GB, free: 0.8242 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002414/1.125, allocations: 0.6089 MB / 0.8597 GB, free: 220 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00092/1.126, allocations: 214.1 kB / 0.8599 GB, free: 16 kB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002854/1.129, allocations: 2.78 MB / 0.8626 GB, free: 13.08 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000883/1.13, allocations: 51.94 kB / 0.8627 GB, free: 13.03 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001332/1.13, allocations: 59.95 kB / 0.8627 GB, free: 12.97 MB / 0.6231 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.0005783/1.13, allocations: 281.6 kB / 0.863 GB, free: 12.7 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003451/1.131, allocations: 118.6 kB / 0.8631 GB, free: 12.58 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00446/1.135, allocations: 2.322 MB / 0.8654 GB, free: 10.26 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.435e-05/1.135, allocations: 12 kB / 0.8654 GB, free: 10.25 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.55e-05/1.135, allocations: 4 kB / 0.8654 GB, free: 10.25 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/1.135, allocations: 7.453 kB / 0.8654 GB, free: 10.24 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005141/1.14, allocations: 2.959 MB / 0.8683 GB, free: 7.266 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.466e-05/1.14, allocations: 8 kB / 0.8683 GB, free: 7.258 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001036/1.141, allocations: 206.6 kB / 0.8685 GB, free: 7.062 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007337/1.142, allocations: 291.4 kB / 0.8688 GB, free: 6.777 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001269/1.142, allocations: 39.95 kB / 0.8688 GB, free: 6.738 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004814/1.147, allocations: 4.619 MB / 0.8733 GB, free: 1.863 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/1.147, allocations: 0 / 0.8733 GB, free: 1.863 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005174/1.152, allocations: 2.561 MB / 0.8758 GB, free: 15.3 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005649/1.153, allocations: 303.5 kB / 0.8761 GB, free: 14.98 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002566/1.153, allocations: 27.91 kB / 0.8761 GB, free: 14.95 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000872/1.154, allocations: 43.95 kB / 0.8762 GB, free: 14.91 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002208/1.154, allocations: 92.8 kB / 0.8763 GB, free: 14.82 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001102/1.154, allocations: 51.95 kB / 0.8763 GB, free: 14.77 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0008037/1.155, allocations: 0.5756 MB / 0.8769 GB, free: 14.18 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.21e-07/1.155, allocations: 0 / 0.8769 GB, free: 14.18 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001893/1.157, allocations: 0.6713 MB / 0.8775 GB, free: 13.51 MB / 0.6387 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.001724/1.159, allocations: 0.8214 MB / 0.8783 GB, free: 12.75 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.00362/1.163, allocations: 1.765 MB / 0.8801 GB, free: 10.98 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/1.163, allocations: 0 / 0.8801 GB, free: 10.98 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.002212/1.165, allocations: 1.28 MB / 0.8813 GB, free: 9.656 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002133/1.167, allocations: 433 kB / 0.8817 GB, free: 9.258 MB / 0.6387 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10369:11-10369: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:10369:11-10369: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.005427/1.172, allocations: 2.857 MB / 0.8845 GB, free: 6.383 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006937/1.173, allocations: 1.127 MB / 0.8856 GB, free: 5.227 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005029/1.174, allocations: 139.3 kB / 0.8857 GB, free: 5.09 MB / 0.6387 GB Notification: Performance of SimCode: time 6.92e-07/1.174, allocations: 0 / 0.8857 GB, free: 5.09 MB / 0.6387 GB Notification: Performance of Templates: time 0.04072/1.214, allocations: 33.42 MB / 0.9184 GB, free: 3.812 MB / 0.67 GB make -j1 -f ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.makefile (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 & ./ThermofluidStream_ThermofluidStream.Processes.Tests.Pump -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > 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