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.0008167/0.0008168, allocations: 172.1 kB / 16.11 MB, free: 5.684 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.137/1.137, allocations: 205 MB / 221.9 MB, free: 9.133 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.0007222/0.0007219, allocations: 98.3 kB / 269.9 MB, free: 8.656 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.6035/0.6035, allocations: 90.51 MB / 408.3 MB, free: 3.934 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002796/0.0002796, allocations: 12 kB / 484.9 MB, free: 7.211 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2257/0.226, allocations: 65.81 MB / 0.5378 GB, free: 34.93 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.05265/0.2787, allocations: 68.55 MB / 0.6047 GB, free: 2.223 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.0232/0.3019, allocations: 26.58 MB / 0.6307 GB, free: 7.562 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008204/0.3028, allocations: 15.88 kB / 0.6307 GB, free: 7.547 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001077/0.3039, allocations: 433.6 kB / 0.6311 GB, free: 7.121 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002557/0.3064, allocations: 1.127 MB / 0.6322 GB, free: 5.988 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003024/0.3095, allocations: 1.459 MB / 0.6336 GB, free: 4.527 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.001624/0.3111, allocations: 2.2 MB / 0.6358 GB, free: 2.32 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00035/0.3115, allocations: 301.4 kB / 0.6361 GB, free: 2.012 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03655/0.348, allocations: 19.33 MB / 0.6549 GB, free: 14.49 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001067/0.3491, allocations: 0.7742 MB / 0.6557 GB, free: 13.71 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000142/0.3493, allocations: 60 kB / 0.6557 GB, free: 13.66 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.405/0.7542, allocations: 127.3 MB / 0.7801 GB, free: 6.492 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0004534/0.7547, allocations: 262.4 kB / 0.7803 GB, free: 6.297 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0006316/0.7554, allocations: 0.5828 MB / 0.7809 GB, free: 5.906 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.004073/0.7595, allocations: 2.735 MB / 0.7836 GB, free: 3.57 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.7595, allocations: 0 / 0.7836 GB, free: 3.57 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.563e-06/0.7595, allocations: 0 / 0.7836 GB, free: 3.57 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.245e-05/0.7595, allocations: 0 / 0.7836 GB, free: 3.57 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.003262/0.7628, allocations: 1.689 MB / 0.7852 GB, free: 1.934 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.7628, allocations: 8.031 kB / 0.7852 GB, free: 1.926 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002413/0.7631, allocations: 135.3 kB / 0.7854 GB, free: 1.793 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000742/0.7638, allocations: 0.6372 MB / 0.786 GB, free: 1.156 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001551/0.764, allocations: 215.4 kB / 0.7862 GB, free: 0.918 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001565/0.7641, allocations: 99.91 kB / 0.7863 GB, free: 0.8203 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002302/0.7664, allocations: 1.458 MB / 0.7877 GB, free: 15.33 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.558e-05/0.7665, allocations: 0 / 0.7877 GB, free: 15.33 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001023/0.7666, allocations: 40 kB / 0.7878 GB, free: 15.29 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-05/0.7666, allocations: 45.98 kB / 0.7878 GB, free: 15.25 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003017/0.7697, allocations: 1.66 MB / 0.7894 GB, free: 13.6 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006702/0.7764, allocations: 5.734 MB / 0.795 GB, free: 7.59 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003061/0.7795, allocations: 1.53 MB / 0.7965 GB, free: 6.055 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001407/0.7809, allocations: 0.874 MB / 0.7974 GB, free: 5.18 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002761/0.7837, allocations: 4.233 MB / 0.8015 GB, free: 16 kB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.338e-05/0.7837, allocations: 51.69 kB / 0.8015 GB, free: 15.96 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=135): time 3.968e-06/0.7837, allocations: 0 / 0.8015 GB, free: 15.96 MB / 0.5417 GB Notification: Performance of matching and sorting (n=138): time 0.009282/0.793, allocations: 5.034 MB / 0.8065 GB, free: 10.82 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.842e-05/0.7931, allocations: 94.11 kB / 0.8066 GB, free: 10.71 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005085/0.7936, allocations: 0.5472 MB / 0.8071 GB, free: 10.16 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 8.122e-05/0.7937, allocations: 45.7 kB / 0.8071 GB, free: 10.11 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002138/0.7939, allocations: 377.4 kB / 0.8075 GB, free: 9.73 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002913/0.7942, allocations: 482.7 kB / 0.808 GB, free: 9.266 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.175e-05/0.7943, allocations: 24 kB / 0.808 GB, free: 9.242 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001608/0.7944, allocations: 413.7 kB / 0.8084 GB, free: 8.832 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001205/0.7957, allocations: 0.6388 MB / 0.809 GB, free: 8.199 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001302/0.797, allocations: 0.7793 MB / 0.8098 GB, free: 7.395 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.002737/0.7997, allocations: 1.583 MB / 0.8113 GB, free: 5.766 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.7997, allocations: 0 / 0.8113 GB, free: 5.766 MB / 0.5417 GB Notification: Performance of matching and sorting (n=153) (initialization): time 0.003479/0.8032, allocations: 1.924 MB / 0.8132 GB, free: 3.848 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.8032, allocations: 8 kB / 0.8132 GB, free: 3.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.624e-05/0.8033, allocations: 10.48 kB / 0.8132 GB, free: 3.832 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002213/0.8055, allocations: 0.6007 MB / 0.8138 GB, free: 3.23 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000917/0.8064, allocations: 210.5 kB / 0.814 GB, free: 3.035 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002385/0.8088, allocations: 2.712 MB / 0.8166 GB, free: 184 kB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007736/0.8096, allocations: 79.83 kB / 0.8167 GB, free: 104 kB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001064/0.8097, allocations: 59.95 kB / 0.8168 GB, free: 44 kB / 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.0004016/0.8101, allocations: 269.4 kB / 0.817 GB, free: 15.78 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000222/0.8104, allocations: 98 kB / 0.8171 GB, free: 15.69 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004301/0.8147, allocations: 2.222 MB / 0.8193 GB, free: 13.49 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.484e-05/0.8147, allocations: 7.969 kB / 0.8193 GB, free: 13.48 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.113e-05/0.8147, allocations: 8 kB / 0.8193 GB, free: 13.47 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004337/0.8152, allocations: 331.6 kB / 0.8196 GB, free: 13.13 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001409/0.8153, allocations: 24 kB / 0.8196 GB, free: 13.11 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007503/0.8161, allocations: 75.8 kB / 0.8197 GB, free: 13.03 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001856/0.8163, allocations: 120.8 kB / 0.8198 GB, free: 12.91 MB / 0.5573 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004624/0.8209, allocations: 2.175 MB / 0.822 GB, free: 10.76 MB / 0.5573 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.004703/0.8256, allocations: 2.876 MB / 0.8248 GB, free: 7.902 MB / 0.5573 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001341/0.827, allocations: 0.7808 MB / 0.8255 GB, free: 7.121 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0003709/0.8273, allocations: 391.1 kB / 0.8259 GB, free: 6.742 MB / 0.5573 GB Notification: Performance of Backend: time 4.21e-07/0.8274, allocations: 0 / 0.8259 GB, free: 6.742 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.004252/0.8316, allocations: 2.203 MB / 0.828 GB, free: 4.613 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(pump4.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(pump3.outputQuantity) Notification: Performance of SimCode: time 0.003759/0.8354, allocations: 3.452 MB / 0.8314 GB, free: 1.121 MB / 0.5573 GB Notification: Performance of Templates: time 0.03886/0.8743, allocations: 30.15 MB / 0.8609 GB, free: 3.324 MB / 0.5886 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