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: 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_OM_adaptions_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_OM_adaptions_ThermofluidStream.Processes.Tests.Pump") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009147/0.0009147, allocations: 168.1 kB / 16.1 MB, free: 5.691 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.213/1.213, allocations: 205 MB / 221.9 MB, free: 9.145 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007958/0.0007957, allocations: 90.36 kB / 269.9 MB, free: 8.672 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.6217/0.6217, allocations: 90.51 MB / 408.3 MB, free: 3.949 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003535/0.0003534, allocations: 8 kB / 484.8 MB, free: 7.215 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2699/0.2703, allocations: 65.81 MB / 0.5377 GB, free: 34.89 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.05597/0.3263, allocations: 68.55 MB / 0.6047 GB, free: 2.238 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.02479/0.3512, allocations: 26.58 MB / 0.6307 GB, free: 7.582 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001104/0.3523, allocations: 19.88 kB / 0.6307 GB, free: 7.562 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001183/0.3535, allocations: 445.6 kB / 0.6311 GB, free: 7.125 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002973/0.3565, allocations: 1.111 MB / 0.6322 GB, free: 6.008 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003834/0.3603, allocations: 1.462 MB / 0.6336 GB, free: 4.543 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.001993/0.3623, allocations: 2.203 MB / 0.6358 GB, free: 2.332 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003729/0.3627, allocations: 293.4 kB / 0.636 GB, free: 2.031 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.04085/0.4036, allocations: 19.34 MB / 0.6549 GB, free: 14.5 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001525/0.4052, allocations: 0.7664 MB / 0.6557 GB, free: 13.73 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001469/0.4054, allocations: 67.94 kB / 0.6557 GB, free: 13.66 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.4576/0.863, allocations: 127.3 MB / 0.7801 GB, free: 6.492 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0004955/0.8635, allocations: 253.5 kB / 0.7803 GB, free: 6.305 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0007199/0.8642, allocations: 0.5791 MB / 0.7809 GB, free: 5.918 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.003031/0.8673, allocations: 2.006 MB / 0.7829 GB, free: 4.121 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.8673, allocations: 3.984 kB / 0.7829 GB, free: 4.117 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.053e-06/0.8673, allocations: 4 kB / 0.7829 GB, free: 4.113 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.228e-05/0.8673, allocations: 0 / 0.7829 GB, free: 4.113 MB / 0.5105 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.003409/0.8707, allocations: 1.685 MB / 0.7845 GB, free: 2.488 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.8708, allocations: 12.03 kB / 0.7845 GB, free: 2.477 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002394/0.871, allocations: 135.3 kB / 0.7847 GB, free: 2.344 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007494/0.8718, allocations: 0.6295 MB / 0.7853 GB, free: 1.711 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001699/0.8719, allocations: 218.3 kB / 0.7855 GB, free: 1.473 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001603/0.8721, allocations: 109.5 kB / 0.7856 GB, free: 1.367 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002267/0.8744, allocations: 1.452 MB / 0.787 GB, free: 15.88 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.603e-05/0.8744, allocations: 0 / 0.787 GB, free: 15.88 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-05/0.8745, allocations: 43.94 kB / 0.787 GB, free: 15.84 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.584e-05/0.8746, allocations: 42 kB / 0.7871 GB, free: 15.8 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002865/0.8775, allocations: 1.655 MB / 0.7887 GB, free: 14.16 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00694/0.8844, allocations: 5.737 MB / 0.7943 GB, free: 8.141 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002809/0.8872, allocations: 1.525 MB / 0.7958 GB, free: 6.609 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001377/0.8886, allocations: 0.8892 MB / 0.7967 GB, free: 5.73 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002927/0.8916, allocations: 4.23 MB / 0.8008 GB, free: 0.5703 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.693e-05/0.8916, allocations: 51.69 kB / 0.8008 GB, free: 0.5117 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=135): time 3.617e-06/0.8916, allocations: 3.094 kB / 0.8008 GB, free: 0.5117 MB / 0.5261 GB Notification: Performance of matching and sorting (n=138): time 0.009119/0.9008, allocations: 5.031 MB / 0.8058 GB, free: 11.38 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.963e-05/0.9008, allocations: 90.11 kB / 0.8058 GB, free: 11.27 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005353/0.9014, allocations: 0.5472 MB / 0.8064 GB, free: 10.71 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 8.825e-05/0.9015, allocations: 49.7 kB / 0.8064 GB, free: 10.66 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002215/0.9017, allocations: 380.2 kB / 0.8068 GB, free: 10.29 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003118/0.902, allocations: 476.7 kB / 0.8072 GB, free: 9.824 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.575e-05/0.9021, allocations: 24 kB / 0.8073 GB, free: 9.801 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001609/0.9022, allocations: 406.7 kB / 0.8077 GB, free: 9.395 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001169/0.9034, allocations: 0.6428 MB / 0.8083 GB, free: 8.754 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001264/0.9047, allocations: 0.7723 MB / 0.809 GB, free: 7.957 MB / 0.5417 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.002727/0.9074, allocations: 1.593 MB / 0.8106 GB, free: 6.32 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.9074, allocations: 0 / 0.8106 GB, free: 6.32 MB / 0.5417 GB Notification: Performance of matching and sorting (n=153) (initialization): time 0.003407/0.9109, allocations: 1.918 MB / 0.8125 GB, free: 4.406 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.9109, allocations: 7.094 kB / 0.8125 GB, free: 4.402 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.96e-05/0.9109, allocations: 19.98 kB / 0.8125 GB, free: 4.383 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00219/0.9131, allocations: 0.5902 MB / 0.8131 GB, free: 3.789 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008713/0.914, allocations: 217.3 kB / 0.8133 GB, free: 3.59 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002481/0.9165, allocations: 2.708 MB / 0.8159 GB, free: 0.7383 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008143/0.9173, allocations: 79.77 kB / 0.816 GB, free: 0.6602 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001061/0.9174, allocations: 59.95 kB / 0.8161 GB, free: 0.6016 MB / 0.5417 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.0004096/0.9179, allocations: 264 kB / 0.8163 GB, free: 352 kB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002048/0.9181, allocations: 98.88 kB / 0.8164 GB, free: 252 kB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004215/0.9223, allocations: 2.226 MB / 0.8186 GB, free: 14.05 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.547e-05/0.9223, allocations: 19.98 kB / 0.8186 GB, free: 14.03 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.9223, allocations: 8 kB / 0.8186 GB, free: 14.02 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/0.9224, allocations: 3.984 kB / 0.8186 GB, free: 14.02 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005147/0.9275, allocations: 3.333 MB / 0.8219 GB, free: 10.67 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.448e-05/0.9275, allocations: 14.17 kB / 0.8219 GB, free: 10.66 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001059/0.9286, allocations: 246.1 kB / 0.8221 GB, free: 10.43 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006821/0.9293, allocations: 290.8 kB / 0.8224 GB, free: 10.14 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.968e-05/0.9294, allocations: 55.94 kB / 0.8224 GB, free: 10.09 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00419/0.9336, allocations: 4.252 MB / 0.8266 GB, free: 5.602 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.9336, allocations: 0 / 0.8266 GB, free: 5.602 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005117/0.9388, allocations: 3.076 MB / 0.8296 GB, free: 2.551 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000517/0.9393, allocations: 327.6 kB / 0.8299 GB, free: 2.211 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001422/0.9394, allocations: 28 kB / 0.8299 GB, free: 2.184 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007755/0.9402, allocations: 71.8 kB / 0.83 GB, free: 2.113 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002246/0.9405, allocations: 108.8 kB / 0.8301 GB, free: 2.004 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001088/0.9406, allocations: 58.8 kB / 0.8302 GB, free: 1.949 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004149/0.941, allocations: 387.1 kB / 0.8305 GB, free: 1.574 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.7e-07/0.941, allocations: 0 / 0.8305 GB, free: 1.574 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001501/0.9425, allocations: 0.6713 MB / 0.8312 GB, free: 0.9023 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.001167/0.9437, allocations: 0.8385 MB / 0.832 GB, free: 160 kB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.003537/0.9472, allocations: 2.004 MB / 0.834 GB, free: 14.14 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.9472, allocations: 4.188 kB / 0.834 GB, free: 14.13 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002186/0.9494, allocations: 1.463 MB / 0.8354 GB, free: 12.63 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00146/0.9509, allocations: 311.3 kB / 0.8357 GB, free: 12.34 MB / 0.573 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.004213/0.9551, allocations: 3.207 MB / 0.8388 GB, free: 9.145 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005751/0.9557, allocations: 1.09 MB / 0.8399 GB, free: 8.02 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003785/0.9561, allocations: 135.3 kB / 0.84 GB, free: 7.887 MB / 0.573 GB Notification: Performance of SimCode: time 3.41e-07/0.9561, allocations: 0 / 0.84 GB, free: 7.887 MB / 0.573 GB Notification: Performance of Templates: time 0.03254/0.9887, allocations: 30.98 MB / 0.8703 GB, free: 9.121 MB / 0.6042 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Pump.makefile (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 & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Pump -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > 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