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.004649/0.004649, allocations: 102.3 kB / 15.73 MB, free: 6.055 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.001159/0.001159, allocations: 191 kB / 16.67 MB, free: 5.969 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.298/1.298, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6597/0.6597, allocations: 91.18 MB / 381.7 MB, free: 7.484 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001775/0.001775, allocations: 75.86 kB / 0.5164 GB, free: 4.602 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3111/0.3129, allocations: 67.69 MB / 0.5825 GB, free: 13.45 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.06178/0.3747, allocations: 67.11 MB / 0.648 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02763/0.4024, allocations: 26.74 MB / 0.6741 GB, free: 15.91 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001256/0.4037, allocations: 35.75 kB / 0.6741 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001469/0.4052, allocations: 0.5082 MB / 0.6746 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.003752/0.409, allocations: 1.274 MB / 0.6759 GB, free: 14.08 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.004385/0.4134, allocations: 1.632 MB / 0.6775 GB, free: 12.45 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002381/0.4158, allocations: 1.899 MB / 0.6793 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005751/0.4164, allocations: 351.3 kB / 0.6797 GB, free: 10.18 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.04833/0.4647, allocations: 20.54 MB / 0.6997 GB, free: 5.453 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001585/0.4664, allocations: 0.8365 MB / 0.7005 GB, free: 4.613 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0004821/0.4669, allocations: 120 kB / 0.7007 GB, free: 4.496 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.5771/1.044, allocations: 127.7 MB / 0.8254 GB, free: 2.453 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0007196/1.045, allocations: 325.5 kB / 0.8257 GB, free: 2.203 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0007225/1.046, allocations: 0.6862 MB / 0.8264 GB, free: 1.734 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.005163/1.051, allocations: 2.872 MB / 0.8292 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/1.051, allocations: 0 / 0.8292 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.734e-06/1.051, allocations: 1.75 kB / 0.8292 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.329e-05/1.051, allocations: 0 / 0.8292 GB, free: 15.3 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.004146/1.055, allocations: 1.999 MB / 0.8311 GB, free: 13.33 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/1.055, allocations: 8.031 kB / 0.8311 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001695/1.055, allocations: 159 kB / 0.8313 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002732/1.055, allocations: 148.3 kB / 0.8314 GB, free: 13.02 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001364/1.057, allocations: 0.8552 MB / 0.8323 GB, free: 12.17 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001774/1.057, allocations: 218.8 kB / 0.8325 GB, free: 11.93 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001701/1.057, allocations: 103.9 kB / 0.8326 GB, free: 11.83 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002523/1.06, allocations: 1.447 MB / 0.834 GB, free: 10.34 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.94e-05/1.06, allocations: 7.906 kB / 0.834 GB, free: 10.34 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.402e-05/1.06, allocations: 40 kB / 0.834 GB, free: 10.3 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.198e-05/1.06, allocations: 45.55 kB / 0.8341 GB, free: 10.26 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003129/1.063, allocations: 1.632 MB / 0.8357 GB, free: 8.633 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007329/1.07, allocations: 5.186 MB / 0.8407 GB, free: 3.309 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00256/1.073, allocations: 1.284 MB / 0.842 GB, free: 2.027 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001388/1.074, allocations: 0.7855 MB / 0.8428 GB, free: 1.234 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002845/1.077, allocations: 4.204 MB / 0.8469 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.592e-05/1.077, allocations: 46 kB / 0.8469 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=131): time 3.346e-06/1.077, allocations: 0 / 0.8469 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of matching and sorting (n=134): time 0.008965/1.086, allocations: 4.609 MB / 0.8514 GB, free: 7.359 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.818e-05/1.086, allocations: 93.3 kB / 0.8515 GB, free: 7.254 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007739/1.087, allocations: 0.7409 MB / 0.8522 GB, free: 6.488 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 7.602e-05/1.087, allocations: 45.7 kB / 0.8523 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002817/1.087, allocations: 441.4 kB / 0.8527 GB, free: 6 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004653/1.088, allocations: 456.9 kB / 0.8531 GB, free: 5.559 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003521/1.088, allocations: 226.9 kB / 0.8533 GB, free: 5.332 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001225/1.088, allocations: 355.7 kB / 0.8537 GB, free: 4.98 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001107/1.09, allocations: 0.5623 MB / 0.8542 GB, free: 4.422 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001314/1.091, allocations: 0.6984 MB / 0.8549 GB, free: 3.695 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.002657/1.094, allocations: 1.427 MB / 0.8563 GB, free: 2.23 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/1.094, allocations: 0 / 0.8563 GB, free: 2.23 MB / 0.6075 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003871/1.097, allocations: 1.853 MB / 0.8581 GB, free: 396 kB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/1.097, allocations: 7.375 kB / 0.8581 GB, free: 392 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.161e-05/1.097, allocations: 12 kB / 0.8581 GB, free: 380 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002507/1.1, allocations: 0.6096 MB / 0.8587 GB, free: 15.76 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008751/1.101, allocations: 205.8 kB / 0.8589 GB, free: 15.57 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002687/1.104, allocations: 2.791 MB / 0.8617 GB, free: 12.62 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008972/1.105, allocations: 51.94 kB / 0.8617 GB, free: 12.57 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001614/1.105, allocations: 53.59 kB / 0.8618 GB, free: 12.52 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.0004888/1.105, allocations: 287.6 kB / 0.862 GB, free: 12.24 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002382/1.105, allocations: 122.5 kB / 0.8621 GB, free: 12.12 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004227/1.11, allocations: 2.31 MB / 0.8644 GB, free: 9.812 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.429e-05/1.11, allocations: 13.69 kB / 0.8644 GB, free: 9.801 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/1.11, allocations: 4 kB / 0.8644 GB, free: 9.797 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.357e-05/1.11, allocations: 7.969 kB / 0.8644 GB, free: 9.789 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004849/1.115, allocations: 2.959 MB / 0.8673 GB, free: 6.812 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.421e-05/1.115, allocations: 14.83 kB / 0.8673 GB, free: 6.801 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009624/1.116, allocations: 201.6 kB / 0.8675 GB, free: 6.613 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007894/1.116, allocations: 288.4 kB / 0.8678 GB, free: 6.328 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.549e-05/1.117, allocations: 47.94 kB / 0.8678 GB, free: 6.281 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004603/1.121, allocations: 4.62 MB / 0.8724 GB, free: 1.41 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/1.121, allocations: 0 / 0.8724 GB, free: 1.41 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004707/1.126, allocations: 2.552 MB / 0.8748 GB, free: 14.85 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004622/1.126, allocations: 311.4 kB / 0.8751 GB, free: 14.52 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000147/1.126, allocations: 24 kB / 0.8752 GB, free: 14.5 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007807/1.127, allocations: 39.95 kB / 0.8752 GB, free: 14.46 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000184/1.127, allocations: 96.8 kB / 0.8753 GB, free: 14.37 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.692e-05/1.128, allocations: 55.94 kB / 0.8754 GB, free: 14.31 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0006409/1.128, allocations: 0.5699 MB / 0.8759 GB, free: 13.73 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.6e-07/1.128, allocations: 4 kB / 0.8759 GB, free: 13.73 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001601/1.13, allocations: 0.6713 MB / 0.8766 GB, free: 13.06 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.005996/1.136, allocations: 3.825 MB / 0.8803 GB, free: 9.281 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.003428/1.139, allocations: 1.766 MB / 0.882 GB, free: 7.5 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/1.139, allocations: 0 / 0.882 GB, free: 7.5 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001988/1.141, allocations: 1.285 MB / 0.8833 GB, free: 6.188 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001625/1.143, allocations: 420.5 kB / 0.8837 GB, free: 5.793 MB / 0.6387 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10371:11-10371: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:10371:11-10371: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.01713/1.16, allocations: 11.45 MB / 0.8949 GB, free: 10.23 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005756/1.161, allocations: 1.12 MB / 0.896 GB, free: 9.082 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0008072/1.162, allocations: 261.3 kB / 0.8962 GB, free: 8.824 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007145/1.162, allocations: 479.2 kB / 0.8967 GB, free: 8.355 MB / 0.6544 GB Notification: Performance of SimCode: time 7.11e-07/1.162, allocations: 0 / 0.8967 GB, free: 8.355 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07616/1.238, allocations: 41.92 MB / 0.9376 GB, free: 14.87 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.42/14.66, allocations: 11.98 kB / 0.9376 GB, free: 14.86 MB / 0.7012 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