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.001077/0.001077, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.001068/0.001068, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.287/1.287, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6623/0.6623, allocations: 89.5 MB / 380.6 MB, free: 8.625 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002462/0.002462, allocations: 75.88 kB / 459.7 MB, free: 10.56 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1568/0.1593, allocations: 67.3 MB / 0.5146 GB, free: 7.18 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.2939/0.4533, allocations: 66.93 MB / 0.58 GB, free: 8.582 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02521/0.4785, allocations: 26.69 MB / 0.606 GB, free: 5.391 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001069/0.4796, allocations: 17.56 kB / 0.6061 GB, free: 5.383 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001263/0.4809, allocations: 0.4953 MB / 0.6065 GB, free: 4.965 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003542/0.4845, allocations: 1.224 MB / 0.6077 GB, free: 3.969 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00436/0.4889, allocations: 1.639 MB / 0.6093 GB, free: 2.84 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002362/0.4912, allocations: 1.794 MB / 0.6111 GB, free: 1.785 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005292/0.4918, allocations: 342 kB / 0.6114 GB, free: 1.637 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.04849/0.5403, allocations: 20.48 MB / 0.6314 GB, free: 15.75 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001996/0.5423, allocations: 0.8133 MB / 0.6322 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003256/0.5427, allocations: 124 kB / 0.6323 GB, free: 14.81 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.5279/1.071, allocations: 127.7 MB / 0.7571 GB, free: 120 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0005897/1.071, allocations: 313.7 kB / 0.7574 GB, free: 120 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001544/1.073, allocations: 0.6454 MB / 0.758 GB, free: 120 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.006246/1.079, allocations: 2.759 MB / 0.7607 GB, free: 119.9 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/1.079, allocations: 0.75 kB / 0.7607 GB, free: 119.9 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.984e-06/1.079, allocations: 0 / 0.7607 GB, free: 119.9 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.685e-05/1.079, allocations: 0 / 0.7607 GB, free: 119.9 MB / 0.5762 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.004337/1.083, allocations: 1.893 MB / 0.7625 GB, free: 119.2 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/1.083, allocations: 9.219 kB / 0.7625 GB, free: 119.2 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003098/1.084, allocations: 130.7 kB / 0.7627 GB, free: 119.2 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009529/1.085, allocations: 0.6399 MB / 0.7633 GB, free: 118.9 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001832/1.085, allocations: 219.2 kB / 0.7635 GB, free: 118.7 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000188/1.085, allocations: 103.6 kB / 0.7636 GB, free: 118.7 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002562/1.088, allocations: 1.45 MB / 0.765 GB, free: 118.5 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.137e-05/1.088, allocations: 2.453 kB / 0.765 GB, free: 118.5 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001093/1.088, allocations: 45.2 kB / 0.7651 GB, free: 118.5 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.985e-05/1.088, allocations: 44.66 kB / 0.7651 GB, free: 118.5 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003207/1.091, allocations: 1.626 MB / 0.7667 GB, free: 118.5 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007202/1.098, allocations: 5.155 MB / 0.7717 GB, free: 116.4 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002517/1.101, allocations: 1.285 MB / 0.773 GB, free: 116.4 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001329/1.102, allocations: 0.791 MB / 0.7737 GB, free: 116.4 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002214/1.104, allocations: 4.204 MB / 0.7779 GB, free: 111.6 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/1.105, allocations: 44.5 kB / 0.7779 GB, free: 111.5 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=131): time 3.296e-06/1.105, allocations: 5.344 kB / 0.7779 GB, free: 111.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=134): time 0.008831/1.113, allocations: 4.543 MB / 0.7823 GB, free: 110.4 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.909e-05/1.113, allocations: 92.22 kB / 0.7824 GB, free: 110.3 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005964/1.114, allocations: 0.6267 MB / 0.783 GB, free: 110.2 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.817e-05/1.114, allocations: 49.89 kB / 0.7831 GB, free: 110.2 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002023/1.114, allocations: 376.2 kB / 0.7834 GB, free: 110 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002367/1.115, allocations: 457.1 kB / 0.7839 GB, free: 109.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003223/1.115, allocations: 238 kB / 0.7841 GB, free: 109.7 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.192e-05/1.115, allocations: 349.3 kB / 0.7844 GB, free: 109.4 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001025/1.116, allocations: 0.5607 MB / 0.785 GB, free: 109.4 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001098/1.117, allocations: 0.7054 MB / 0.7857 GB, free: 109.3 MB / 0.5762 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.002301/1.119, allocations: 1.421 MB / 0.7871 GB, free: 108.5 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/1.119, allocations: 4.5 kB / 0.7871 GB, free: 108.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003204/1.123, allocations: 1.835 MB / 0.7889 GB, free: 107.2 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/1.123, allocations: 8.562 kB / 0.7889 GB, free: 107.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-05/1.123, allocations: 8.188 kB / 0.7889 GB, free: 107.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002158/1.125, allocations: 0.6142 MB / 0.7895 GB, free: 106.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009365/1.126, allocations: 205.9 kB / 0.7897 GB, free: 106.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002155/1.128, allocations: 2.781 MB / 0.7924 GB, free: 104 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009792/1.129, allocations: 52.28 kB / 0.7924 GB, free: 103.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/1.129, allocations: 59.27 kB / 0.7925 GB, free: 103.9 MB / 0.5762 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.0004848/1.13, allocations: 266.6 kB / 0.7927 GB, free: 103.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002256/1.13, allocations: 114.6 kB / 0.7929 GB, free: 103.6 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003736/1.134, allocations: 2.29 MB / 0.7951 GB, free: 101.7 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/1.134, allocations: 15.94 kB / 0.7951 GB, free: 101.7 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/1.134, allocations: 4 kB / 0.7951 GB, free: 101.7 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.28e-05/1.134, allocations: 15 kB / 0.7951 GB, free: 101.7 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00424/1.138, allocations: 2.921 MB / 0.798 GB, free: 98.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.142e-05/1.138, allocations: 8 kB / 0.798 GB, free: 98.73 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001012/1.139, allocations: 209.2 kB / 0.7982 GB, free: 98.53 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006211/1.14, allocations: 288.3 kB / 0.7985 GB, free: 98.25 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.684e-05/1.14, allocations: 53.47 kB / 0.7985 GB, free: 98.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003527/1.143, allocations: 4.605 MB / 0.803 GB, free: 93.35 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/1.143, allocations: 7.219 kB / 0.803 GB, free: 93.34 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004116/1.147, allocations: 2.538 MB / 0.8055 GB, free: 90.79 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005225/1.148, allocations: 292.8 kB / 0.8058 GB, free: 90.48 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000169/1.148, allocations: 31.94 kB / 0.8058 GB, free: 90.45 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000742/1.149, allocations: 41.02 kB / 0.8058 GB, free: 90.41 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001629/1.149, allocations: 96.86 kB / 0.8059 GB, free: 90.32 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.81e-05/1.149, allocations: 47.95 kB / 0.806 GB, free: 90.27 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004769/1.15, allocations: 0.4912 MB / 0.8065 GB, free: 89.79 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.41e-07/1.15, allocations: 1.094 kB / 0.8065 GB, free: 89.79 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001737/1.151, allocations: 0.6752 MB / 0.8071 GB, free: 89.11 MB / 0.5762 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.001155/1.153, allocations: 0.8197 MB / 0.8079 GB, free: 88.38 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002966/1.155, allocations: 1.778 MB / 0.8097 GB, free: 86.59 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/1.156, allocations: 0 / 0.8097 GB, free: 86.59 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001737/1.157, allocations: 1.286 MB / 0.8109 GB, free: 85.27 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001622/1.159, allocations: 407 kB / 0.8113 GB, free: 84.93 MB / 0.5762 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10355:11-10355: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:10355:11-10355: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.003952/1.163, allocations: 2.679 MB / 0.8139 GB, free: 82.29 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003616/1.163, allocations: 1.085 MB / 0.815 GB, free: 81.18 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0007174/1.164, allocations: 248.8 kB / 0.8152 GB, free: 80.96 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002789/1.164, allocations: 111.4 kB / 0.8153 GB, free: 80.85 MB / 0.5762 GB Notification: Performance of SimCode: time 5.21e-07/1.164, allocations: 0 / 0.8153 GB, free: 80.85 MB / 0.5762 GB Notification: Performance of Templates: time 0.03916/1.203, allocations: 29.65 MB / 0.8443 GB, free: 51.73 MB / 0.5762 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 -s cvode -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