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.001112/0.001112, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00135/0.00135, allocations: 191 kB / 16.14 MB, free: 6.711 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.397/1.397, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6768/0.6768, allocations: 91.19 MB / 381.2 MB, free: 9.59 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 85.56 kB / 459.6 MB, free: 23.34 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1333, allocations: 67.69 MB / 0.515 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.07239/0.2057, allocations: 69.87 MB / 0.5832 GB, free: 4.551 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.3006/0.5063, allocations: 27.1 MB / 0.6097 GB, free: 6.668 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001468/0.5078, allocations: 49.03 kB / 0.6097 GB, free: 6.668 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001251/0.5091, allocations: 450.4 kB / 0.6101 GB, free: 6.668 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003111/0.5123, allocations: 1.126 MB / 0.6112 GB, free: 6.656 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004203/0.5165, allocations: 1.465 MB / 0.6127 GB, free: 6.645 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.00202/0.5185, allocations: 2.231 MB / 0.6149 GB, free: 6.613 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004213/0.5189, allocations: 319.5 kB / 0.6152 GB, free: 6.555 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.04623/0.5652, allocations: 19.4 MB / 0.6341 GB, free: 0.8555 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001475/0.5667, allocations: 0.8231 MB / 0.6349 GB, free: 0.5312 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001883/0.5669, allocations: 82.84 kB / 0.635 GB, free: 0.5273 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3003/0.8672, allocations: 127.3 MB / 0.7593 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0007962/0.868, allocations: 292.3 kB / 0.7596 GB, free: 10.25 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001232/0.8692, allocations: 0.6423 MB / 0.7602 GB, free: 9.613 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.006612/0.8759, allocations: 2.753 MB / 0.7629 GB, free: 7 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.8759, allocations: 0 / 0.7629 GB, free: 7 MB / 0.5762 GB Notification: Performance of FrontEnd: time 9.22e-07/0.8759, allocations: 4 kB / 0.7629 GB, free: 6.996 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.535e-05/0.8759, allocations: 0 / 0.7629 GB, free: 6.996 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.004409/0.8804, allocations: 2.016 MB / 0.7649 GB, free: 4.953 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.8804, allocations: 8.031 kB / 0.7649 GB, free: 4.945 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00032/0.8807, allocations: 143.4 kB / 0.765 GB, free: 4.805 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001168/0.8819, allocations: 0.8042 MB / 0.7658 GB, free: 3.98 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001853/0.8821, allocations: 210.5 kB / 0.766 GB, free: 3.742 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00018/0.8823, allocations: 103.9 kB / 0.7661 GB, free: 3.641 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002614/0.8849, allocations: 1.444 MB / 0.7675 GB, free: 2.16 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.691e-05/0.885, allocations: 4 kB / 0.7675 GB, free: 2.156 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001095/0.8851, allocations: 39.94 kB / 0.7676 GB, free: 2.117 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.607e-05/0.8851, allocations: 49.98 kB / 0.7676 GB, free: 2.066 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003157/0.8883, allocations: 1.632 MB / 0.7692 GB, free: 448 kB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007777/0.8961, allocations: 5.198 MB / 0.7743 GB, free: 11.05 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002831/0.8989, allocations: 1.287 MB / 0.7755 GB, free: 9.75 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0015/0.9005, allocations: 0.7957 MB / 0.7763 GB, free: 8.949 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003284/0.9038, allocations: 4.195 MB / 0.7804 GB, free: 3.824 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.401e-05/0.9038, allocations: 51.5 kB / 0.7805 GB, free: 3.766 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=131): time 4.509e-06/0.9038, allocations: 0 / 0.7805 GB, free: 3.766 MB / 0.5919 GB Notification: Performance of matching and sorting (n=134): time 0.01003/0.9139, allocations: 4.603 MB / 0.785 GB, free: 15.02 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.663e-05/0.9139, allocations: 90.11 kB / 0.7851 GB, free: 14.91 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009592/0.9149, allocations: 0.7447 MB / 0.7858 GB, free: 14.14 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001023/0.915, allocations: 49.7 kB / 0.7858 GB, free: 14.09 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.000356/0.9154, allocations: 433.5 kB / 0.7862 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003769/0.9158, allocations: 460.8 kB / 0.7867 GB, free: 13.21 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004319/0.9162, allocations: 230.8 kB / 0.7869 GB, free: 12.98 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001548/0.9164, allocations: 357.9 kB / 0.7872 GB, free: 12.62 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001321/0.9177, allocations: 0.5686 MB / 0.7878 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001479/0.9192, allocations: 0.6984 MB / 0.7885 GB, free: 11.32 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.003042/0.9222, allocations: 1.417 MB / 0.7899 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.9223, allocations: 3.875 kB / 0.7899 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004191/0.9265, allocations: 1.849 MB / 0.7917 GB, free: 7.996 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.864e-05/0.9265, allocations: 10.34 kB / 0.7917 GB, free: 7.988 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.946e-05/0.9266, allocations: 12 kB / 0.7917 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00271/0.9293, allocations: 0.6091 MB / 0.7923 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/0.9304, allocations: 211.6 kB / 0.7925 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003052/0.9334, allocations: 2.675 MB / 0.7951 GB, free: 4.324 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001072/0.9345, allocations: 63.88 kB / 0.7952 GB, free: 4.262 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001977/0.9347, allocations: 59.95 kB / 0.7952 GB, free: 4.203 MB / 0.6075 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.0006792/0.9354, allocations: 273.5 kB / 0.7955 GB, free: 3.926 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004457/0.9359, allocations: 118.5 kB / 0.7956 GB, free: 3.809 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005119/0.941, allocations: 2.315 MB / 0.7979 GB, free: 1.449 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.177e-05/0.941, allocations: 12.14 kB / 0.7979 GB, free: 1.438 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.303e-05/0.9411, allocations: 11.92 kB / 0.7979 GB, free: 1.426 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.369e-05/0.9411, allocations: 3.984 kB / 0.7979 GB, free: 1.422 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006193/0.9473, allocations: 2.968 MB / 0.8008 GB, free: 14.42 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.593e-05/0.9474, allocations: 12 kB / 0.8008 GB, free: 14.41 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001184/0.9486, allocations: 203.7 kB / 0.801 GB, free: 14.21 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008467/0.9494, allocations: 292.6 kB / 0.8013 GB, free: 13.92 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001324/0.9496, allocations: 43.95 kB / 0.8013 GB, free: 13.88 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005196/0.9548, allocations: 4.237 MB / 0.8054 GB, free: 9.383 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.9548, allocations: 4.031 kB / 0.8054 GB, free: 9.379 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005684/0.9605, allocations: 2.564 MB / 0.8079 GB, free: 6.785 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000618/0.9611, allocations: 307.5 kB / 0.8082 GB, free: 6.465 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002925/0.9614, allocations: 27.98 kB / 0.8083 GB, free: 6.438 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/0.9625, allocations: 55.81 kB / 0.8083 GB, free: 6.383 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002276/0.9627, allocations: 84.86 kB / 0.8084 GB, free: 6.301 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001287/0.9628, allocations: 55.94 kB / 0.8085 GB, free: 6.246 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0008975/0.9638, allocations: 0.5678 MB / 0.809 GB, free: 5.668 MB / 0.6231 GB Notification: Performance of sort global known variables: time 3.31e-07/0.9638, allocations: 0 / 0.809 GB, free: 5.668 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.002102/0.9659, allocations: 0.6674 MB / 0.8097 GB, free: 5 MB / 0.6231 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.001895/0.9678, allocations: 0.8244 MB / 0.8105 GB, free: 4.215 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.004056/0.9718, allocations: 1.764 MB / 0.8122 GB, free: 2.41 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.798e-06/0.9719, allocations: 0 / 0.8122 GB, free: 2.41 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.00254/0.9744, allocations: 1.286 MB / 0.8134 GB, free: 1.066 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002297/0.9767, allocations: 394.4 kB / 0.8138 GB, free: 0.6836 MB / 0.6231 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10228:11-10228: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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10228:11-10228: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.00621/0.9829, allocations: 3.274 MB / 0.817 GB, free: 13.39 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008501/0.9838, allocations: 1.13 MB / 0.8181 GB, free: 12.24 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001102/0.9849, allocations: 257.3 kB / 0.8184 GB, free: 11.98 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003978/0.9853, allocations: 119.3 kB / 0.8185 GB, free: 11.87 MB / 0.6387 GB Notification: Performance of SimCode: time 9.32e-07/0.9853, allocations: 0 / 0.8185 GB, free: 11.87 MB / 0.6387 GB Notification: Performance of Templates: time 0.2762/1.262, allocations: 28.96 MB / 0.8468 GB, free: 254.4 MB / 0.6387 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches