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.001152/0.001152, 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.001221/0.001221, allocations: 197.2 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.317/1.317, allocations: 222.9 MB / 239.8 MB, free: 4.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6824/0.6824, allocations: 91.21 MB / 381.2 MB, free: 9.598 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 74.77 kB / 459.6 MB, free: 23.39 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1132, allocations: 67.7 MB / 0.515 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.06948/0.1827, allocations: 69.87 MB / 0.5832 GB, free: 4.566 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.2692/0.4519, allocations: 27.1 MB / 0.6097 GB, free: 6.672 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002113/0.4541, allocations: 46.16 kB / 0.6097 GB, free: 6.672 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001847/0.4559, allocations: 450.5 kB / 0.6101 GB, free: 6.668 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004931/0.4609, allocations: 1.125 MB / 0.6112 GB, free: 6.656 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004745/0.4657, allocations: 1.462 MB / 0.6127 GB, free: 6.645 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.00267/0.4684, allocations: 2.231 MB / 0.6148 GB, free: 6.617 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000517/0.4689, allocations: 315.2 kB / 0.6151 GB, free: 6.555 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.052/0.5209, allocations: 19.41 MB / 0.6341 GB, free: 0.832 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00162/0.5226, allocations: 0.8239 MB / 0.6349 GB, free: 0.5078 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002517/0.5229, allocations: 79.56 kB / 0.635 GB, free: 0.5078 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3131/0.836, allocations: 127.3 MB / 0.7593 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0008132/0.8369, allocations: 289.8 kB / 0.7596 GB, free: 10.22 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001634/0.8385, allocations: 0.6439 MB / 0.7602 GB, free: 9.59 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.007552/0.8461, allocations: 2.757 MB / 0.7629 GB, free: 6.973 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.8461, allocations: 0 / 0.7629 GB, free: 6.973 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.984e-06/0.8461, allocations: 0 / 0.7629 GB, free: 6.973 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.55e-05/0.8462, allocations: 0 / 0.7629 GB, free: 6.973 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.004883/0.8511, allocations: 2.012 MB / 0.7649 GB, free: 4.934 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.8511, allocations: 8.031 kB / 0.7649 GB, free: 4.926 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003705/0.8515, allocations: 144.8 kB / 0.765 GB, free: 4.785 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001267/0.8528, allocations: 0.7912 MB / 0.7658 GB, free: 3.973 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001911/0.853, allocations: 226.4 kB / 0.766 GB, free: 3.719 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002054/0.8532, allocations: 107.9 kB / 0.7661 GB, free: 3.613 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00276/0.856, allocations: 1.441 MB / 0.7675 GB, free: 2.137 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.331e-05/0.856, allocations: 7.938 kB / 0.7675 GB, free: 2.129 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001106/0.8562, allocations: 40 kB / 0.7676 GB, free: 2.09 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.336e-05/0.8562, allocations: 41.98 kB / 0.7676 GB, free: 2.047 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003241/0.8595, allocations: 1.636 MB / 0.7692 GB, free: 424 kB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00839/0.8679, allocations: 5.202 MB / 0.7743 GB, free: 11.02 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002761/0.8707, allocations: 1.268 MB / 0.7755 GB, free: 9.742 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001431/0.8721, allocations: 0.8036 MB / 0.7763 GB, free: 8.934 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003055/0.8752, allocations: 4.204 MB / 0.7804 GB, free: 3.801 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.504e-05/0.8753, allocations: 47.56 kB / 0.7805 GB, free: 3.746 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=131): time 3.307e-06/0.8753, allocations: 4 kB / 0.7805 GB, free: 3.742 MB / 0.5919 GB Notification: Performance of matching and sorting (n=134): time 0.01045/0.8857, allocations: 4.593 MB / 0.785 GB, free: 15 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.236e-05/0.8858, allocations: 98.05 kB / 0.785 GB, free: 14.88 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009012/0.8867, allocations: 0.7447 MB / 0.7858 GB, free: 14.11 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001083/0.8869, allocations: 53.7 kB / 0.7858 GB, free: 14.05 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003128/0.8872, allocations: 437.8 kB / 0.7862 GB, free: 13.62 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003822/0.8876, allocations: 458.2 kB / 0.7867 GB, free: 13.18 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003719/0.8879, allocations: 222.9 kB / 0.7869 GB, free: 12.95 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.8881, allocations: 353.9 kB / 0.7872 GB, free: 12.6 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001292/0.8894, allocations: 0.5647 MB / 0.7878 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001405/0.8908, allocations: 0.7022 MB / 0.7885 GB, free: 11.3 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.002898/0.8937, allocations: 1.428 MB / 0.7899 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.8937, allocations: 0 / 0.7899 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003832/0.8976, allocations: 1.856 MB / 0.7917 GB, free: 7.965 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.8976, allocations: 8 kB / 0.7917 GB, free: 7.957 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.697e-05/0.8976, allocations: 8 kB / 0.7917 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002435/0.9001, allocations: 0.6089 MB / 0.7923 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009508/0.901, allocations: 207.7 kB / 0.7925 GB, free: 7.133 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002781/0.9038, allocations: 2.679 MB / 0.7951 GB, free: 4.301 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008936/0.9047, allocations: 63.81 kB / 0.7952 GB, free: 4.238 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001381/0.9049, allocations: 63.95 kB / 0.7952 GB, free: 4.176 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.0005137/0.9054, allocations: 269.6 kB / 0.7955 GB, free: 3.902 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002857/0.9057, allocations: 122.4 kB / 0.7956 GB, free: 3.781 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004482/0.9102, allocations: 2.315 MB / 0.7979 GB, free: 1.422 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.449e-05/0.9102, allocations: 12 kB / 0.7979 GB, free: 1.41 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.306e-05/0.9102, allocations: 11.94 kB / 0.7979 GB, free: 1.398 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.325e-05/0.9103, allocations: 7.969 kB / 0.7979 GB, free: 1.391 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005125/0.9154, allocations: 2.953 MB / 0.8008 GB, free: 14.4 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.112e-05/0.9155, allocations: 15.92 kB / 0.8008 GB, free: 14.38 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/0.9165, allocations: 199.7 kB / 0.801 GB, free: 14.19 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008022/0.9174, allocations: 292.4 kB / 0.8013 GB, free: 13.9 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001196/0.9175, allocations: 43.89 kB / 0.8013 GB, free: 13.86 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004673/0.9222, allocations: 4.241 MB / 0.8054 GB, free: 9.363 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.319e-05/0.9222, allocations: 8.016 kB / 0.8054 GB, free: 9.355 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005164/0.9274, allocations: 2.554 MB / 0.8079 GB, free: 6.77 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005453/0.9279, allocations: 307.4 kB / 0.8082 GB, free: 6.449 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002556/0.9282, allocations: 28 kB / 0.8083 GB, free: 6.422 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008812/0.9291, allocations: 51.75 kB / 0.8083 GB, free: 6.371 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001983/0.9293, allocations: 104.9 kB / 0.8084 GB, free: 6.27 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001292/0.9294, allocations: 47.95 kB / 0.8085 GB, free: 6.223 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0007571/0.9302, allocations: 0.5717 MB / 0.809 GB, free: 5.641 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9302, allocations: 0 / 0.809 GB, free: 5.641 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001815/0.932, allocations: 0.6713 MB / 0.8097 GB, free: 4.969 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.001617/0.9337, allocations: 0.8186 MB / 0.8105 GB, free: 4.188 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.00374/0.9374, allocations: 1.758 MB / 0.8122 GB, free: 2.387 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.9374, allocations: 4.188 kB / 0.8122 GB, free: 2.383 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.002288/0.9397, allocations: 1.282 MB / 0.8134 GB, free: 1.043 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002036/0.9418, allocations: 398.2 kB / 0.8138 GB, free: 0.6562 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.005995/0.9478, allocations: 3.283 MB / 0.817 GB, free: 13.36 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009211/0.9487, allocations: 1.126 MB / 0.8181 GB, free: 12.2 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001185/0.9499, allocations: 257.3 kB / 0.8184 GB, free: 11.95 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004238/0.9503, allocations: 115.4 kB / 0.8185 GB, free: 11.84 MB / 0.6387 GB Notification: Performance of SimCode: time 1.012e-06/0.9504, allocations: 0 / 0.8185 GB, free: 11.84 MB / 0.6387 GB Notification: Performance of Templates: time 0.2704/1.221, allocations: 28.95 MB / 0.8468 GB, free: 254.6 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