Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Pump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Pump,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Processes_Tests_Pump",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Processes.Tests.Pump,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_Processes_Tests_Pump",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008074/0.0008074, allocations: 181.9 kB / 15.45 MB, free: 6.23 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.113/1.113, allocations: 205 MB / 221.2 MB, free: 1.699 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006432/0.0006432, allocations: 86.27 kB / 269.2 MB, free: 1.652 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.484/0.484, allocations: 90.52 MB / 407.6 MB, free: 15.06 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002505/0.0002505, allocations: 8 kB / 484.3 MB, free: 3.496 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08987/0.09013, allocations: 65.83 MB / 0.5372 GB, free: 1.598 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.2451/0.3353, allocations: 68.54 MB / 0.6042 GB, free: 76 kB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.02246/0.3578, allocations: 26.58 MB / 0.6301 GB, free: 8.871 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001136/0.359, allocations: 23.88 kB / 0.6301 GB, free: 8.848 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001145/0.3601, allocations: 429.6 kB / 0.6305 GB, free: 8.426 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00302/0.3632, allocations: 1.119 MB / 0.6316 GB, free: 7.301 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003431/0.3666, allocations: 1.456 MB / 0.6331 GB, free: 5.84 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.002007/0.3686, allocations: 2.2 MB / 0.6352 GB, free: 3.633 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003728/0.369, allocations: 302.2 kB / 0.6355 GB, free: 3.328 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03612/0.4051, allocations: 19.34 MB / 0.6544 GB, free: 15.8 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009535/0.4061, allocations: 0.7742 MB / 0.6551 GB, free: 15.02 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001178/0.4063, allocations: 67.94 kB / 0.6552 GB, free: 14.96 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.4145/0.8207, allocations: 127.3 MB / 0.7795 GB, free: 122.2 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0004459/0.8212, allocations: 257.3 kB / 0.7798 GB, free: 122.2 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0006665/0.8219, allocations: 0.5838 MB / 0.7804 GB, free: 122.2 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.003809/0.8257, allocations: 2.742 MB / 0.783 GB, free: 122.1 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.8257, allocations: 0 / 0.783 GB, free: 122.1 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.523e-06/0.8257, allocations: 0 / 0.783 GB, free: 122.1 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 1.093e-05/0.8258, allocations: 0 / 0.783 GB, free: 122.1 MB / 0.5573 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.002947/0.8287, allocations: 1.688 MB / 0.7847 GB, free: 121.4 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.8288, allocations: 8.906 kB / 0.7847 GB, free: 121.4 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001442/0.8289, allocations: 158 kB / 0.7848 GB, free: 121.4 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001976/0.8291, allocations: 129.6 kB / 0.785 GB, free: 121.3 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006363/0.8298, allocations: 0.6364 MB / 0.7856 GB, free: 121 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001173/0.8299, allocations: 217.2 kB / 0.7858 GB, free: 120.8 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001393/0.83, allocations: 104.1 kB / 0.7859 GB, free: 120.8 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001957/0.832, allocations: 1.45 MB / 0.7873 GB, free: 120.7 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.424e-05/0.832, allocations: 6.812 kB / 0.7873 GB, free: 120.7 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.74e-05/0.8321, allocations: 39.19 kB / 0.7874 GB, free: 120.7 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.322e-05/0.8322, allocations: 47.2 kB / 0.7874 GB, free: 120.7 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002455/0.8346, allocations: 1.653 MB / 0.789 GB, free: 120.7 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005346/0.84, allocations: 5.733 MB / 0.7946 GB, free: 117.7 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002346/0.8423, allocations: 1.536 MB / 0.7961 GB, free: 117.4 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001129/0.8435, allocations: 0.8764 MB / 0.797 GB, free: 117.3 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001713/0.8452, allocations: 4.232 MB / 0.8011 GB, free: 112.4 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.169e-05/0.8452, allocations: 55.97 kB / 0.8012 GB, free: 112.4 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=135): time 3.356e-06/0.8452, allocations: 4 kB / 0.8012 GB, free: 112.4 MB / 0.5573 GB Notification: Performance of matching and sorting (n=138): time 0.007409/0.8527, allocations: 5.026 MB / 0.8061 GB, free: 109.4 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.345e-05/0.8527, allocations: 90.11 kB / 0.8062 GB, free: 109.3 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003812/0.8531, allocations: 0.5459 MB / 0.8067 GB, free: 108.9 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 6.975e-05/0.8532, allocations: 51.55 kB / 0.8067 GB, free: 108.8 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/0.8533, allocations: 384 kB / 0.8071 GB, free: 108.6 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001844/0.8535, allocations: 469.2 kB / 0.8076 GB, free: 108.2 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.659e-05/0.8536, allocations: 31.75 kB / 0.8076 GB, free: 108.2 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 7.91e-05/0.8537, allocations: 406.9 kB / 0.808 GB, free: 107.8 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009908/0.8547, allocations: 0.6369 MB / 0.8086 GB, free: 107.4 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001045/0.8557, allocations: 0.7804 MB / 0.8094 GB, free: 106.9 MB / 0.5573 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.002177/0.8579, allocations: 1.585 MB / 0.8109 GB, free: 105.8 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.8579, allocations: 8 kB / 0.8109 GB, free: 105.8 MB / 0.5573 GB Notification: Performance of matching and sorting (n=153) (initialization): time 0.002808/0.8607, allocations: 1.917 MB / 0.8128 GB, free: 104.5 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.8607, allocations: 8.031 kB / 0.8128 GB, free: 104.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.115e-05/0.8608, allocations: 12 kB / 0.8128 GB, free: 104.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001841/0.8626, allocations: 0.5941 MB / 0.8134 GB, free: 104 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007498/0.8634, allocations: 220 kB / 0.8136 GB, free: 103.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001743/0.8651, allocations: 2.696 MB / 0.8162 GB, free: 101.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006608/0.8658, allocations: 86.7 kB / 0.8163 GB, free: 101.2 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.07e-05/0.8659, allocations: 58.64 kB / 0.8164 GB, free: 101.2 MB / 0.5573 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 (105): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.0003118/0.8662, allocations: 273.8 kB / 0.8166 GB, free: 101 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000172/0.8664, allocations: 98.78 kB / 0.8167 GB, free: 100.9 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003457/0.8699, allocations: 2.219 MB / 0.8189 GB, free: 99.31 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.029e-05/0.8699, allocations: 15.98 kB / 0.8189 GB, free: 99.29 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.8699, allocations: 4 kB / 0.8189 GB, free: 99.29 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.8699, allocations: 7.984 kB / 0.8189 GB, free: 99.28 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004052/0.874, allocations: 3.343 MB / 0.8222 GB, free: 95.93 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.76e-05/0.874, allocations: 15.98 kB / 0.8222 GB, free: 95.91 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009006/0.8749, allocations: 237.6 kB / 0.8224 GB, free: 95.69 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000555/0.8755, allocations: 301.5 kB / 0.8227 GB, free: 95.4 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.771e-05/0.8756, allocations: 51.94 kB / 0.8228 GB, free: 95.35 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002939/0.8785, allocations: 4.25 MB / 0.8269 GB, free: 90.85 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.8785, allocations: 11.8 kB / 0.8269 GB, free: 90.84 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004089/0.8826, allocations: 3.072 MB / 0.8299 GB, free: 87.8 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003561/0.883, allocations: 331.5 kB / 0.8302 GB, free: 87.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001177/0.8831, allocations: 31.38 kB / 0.8303 GB, free: 87.43 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00069/0.8838, allocations: 67.89 kB / 0.8303 GB, free: 87.36 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001604/0.884, allocations: 108.8 kB / 0.8304 GB, free: 87.25 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.874e-05/0.8841, allocations: 55.95 kB / 0.8305 GB, free: 87.2 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0002747/0.8844, allocations: 387.1 kB / 0.8309 GB, free: 86.82 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8844, allocations: 4 kB / 0.8309 GB, free: 86.82 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.00136/0.8857, allocations: 0.6791 MB / 0.8315 GB, free: 86.14 MB / 0.5573 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 (118): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.005152/0.8909, allocations: 4.355 MB / 0.8358 GB, free: 81.89 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002741/0.8937, allocations: 1.99 MB / 0.8377 GB, free: 79.88 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.8937, allocations: 8 kB / 0.8377 GB, free: 79.88 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001727/0.8954, allocations: 1.475 MB / 0.8392 GB, free: 78.37 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001306/0.8967, allocations: 307.1 kB / 0.8395 GB, free: 78.07 MB / 0.5573 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10068:11-10068: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:10068:11-10068: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.01282/0.9095, allocations: 11.76 MB / 0.8509 GB, free: 66.12 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003442/0.9099, allocations: 1.097 MB / 0.852 GB, free: 65 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0007431/0.9107, allocations: 247.8 kB / 0.8523 GB, free: 64.76 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004715/0.9112, allocations: 431.2 kB / 0.8527 GB, free: 64.34 MB / 0.5573 GB Notification: Performance of SimCode: time 6.61e-07/0.9112, allocations: 4 kB / 0.8527 GB, free: 64.33 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3367/1.248, allocations: 37.52 MB / 0.8893 GB, free: 27.2 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001298/1.248, allocations: 253.6 kB / 0.8896 GB, free: 26.93 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.114/4.362, allocations: 0 / 0.8896 GB, free: 26.93 MB / 0.5573 GB (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Pump.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Pump.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Pump.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Pump.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Pump_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_Processes_Tests_Pump_fmu --startTime=0 --stopTime=30 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_Processes_Tests_Pump.fmu > ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Pump.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Pump_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Processes.Tests.Pump_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Pump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches