Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_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_dev_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.001251/0.001251, allocations: 105.8 kB / 16.41 MB, free: 6.488 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.001308/0.001308, allocations: 191.8 kB / 17.34 MB, free: 5.762 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.432/1.432, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8129/0.8129, allocations: 97.65 MB / 388.8 MB, free: 1.465 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002306/0.002306, allocations: 85.45 kB / 0.5268 GB, free: 38.4 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1241, allocations: 69.23 MB / 0.5944 GB, free: 0.5 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.07823/0.2024, allocations: 67.25 MB / 0.6601 GB, free: 13 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.03233/0.2347, allocations: 26.8 MB / 0.6863 GB, free: 2.125 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001074/0.2358, allocations: 39.75 kB / 0.6863 GB, free: 2.086 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001389/0.2371, allocations: 0.5043 MB / 0.6868 GB, free: 1.578 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.003818/0.241, allocations: 1.301 MB / 0.6881 GB, free: 276 kB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.004225/0.2452, allocations: 1.644 MB / 0.6897 GB, free: 14.62 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.002661/0.2478, allocations: 1.938 MB / 0.6916 GB, free: 12.68 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004679/0.2483, allocations: 247.5 kB / 0.6918 GB, free: 12.42 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.04612/0.2944, allocations: 20.6 MB / 0.7119 GB, free: 7.633 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0017/0.2961, allocations: 0.8327 MB / 0.7127 GB, free: 6.797 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002991/0.2964, allocations: 124 kB / 0.7128 GB, free: 6.676 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.5403/0.8367, allocations: 128 MB / 0.8378 GB, free: 10.69 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0006285/0.8374, allocations: 333.6 kB / 0.8382 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001208/0.8386, allocations: 0.6854 MB / 0.8388 GB, free: 10.3 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.005319/0.8439, allocations: 2.9 MB / 0.8417 GB, free: 8.055 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.8439, allocations: 0 / 0.8417 GB, free: 8.055 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.333e-06/0.8439, allocations: 4 kB / 0.8417 GB, free: 8.051 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2e-05/0.8439, allocations: 4.281 kB / 0.8417 GB, free: 8.051 MB / 0.5919 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.003538/0.8475, allocations: 2.076 MB / 0.8437 GB, free: 5.957 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.8475, allocations: 12.03 kB / 0.8437 GB, free: 5.945 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000243/0.8477, allocations: 157.3 kB / 0.8439 GB, free: 5.793 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001117/0.8489, allocations: 0.8812 MB / 0.8447 GB, free: 4.918 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001293/0.849, allocations: 214.4 kB / 0.8449 GB, free: 4.676 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001546/0.8491, allocations: 107 kB / 0.845 GB, free: 4.574 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00196/0.8511, allocations: 1.45 MB / 0.8464 GB, free: 3.086 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.675e-05/0.8511, allocations: 1.875 kB / 0.8464 GB, free: 3.086 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.37e-05/0.8512, allocations: 36 kB / 0.8465 GB, free: 3.051 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.87e-05/0.8513, allocations: 41.98 kB / 0.8465 GB, free: 3.008 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002462/0.8537, allocations: 1.635 MB / 0.8481 GB, free: 1.387 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007998/0.8617, allocations: 5.194 MB / 0.8532 GB, free: 12.06 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002828/0.8646, allocations: 1.205 MB / 0.8544 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00148/0.866, allocations: 0.7375 MB / 0.8551 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003893/0.8699, allocations: 4.198 MB / 0.8592 GB, free: 4.992 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.454e-05/0.87, allocations: 50.94 kB / 0.8592 GB, free: 4.938 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=131): time 4.188e-06/0.87, allocations: 0 / 0.8592 GB, free: 4.938 MB / 0.6075 GB Notification: Performance of matching and sorting (n=134): time 0.01058/0.8806, allocations: 4.617 MB / 0.8637 GB, free: 240 kB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.11e-05/0.8806, allocations: 94.11 kB / 0.8638 GB, free: 128 kB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00113/0.8818, allocations: 0.754 MB / 0.8646 GB, free: 15.35 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001155/0.8819, allocations: 59.56 kB / 0.8646 GB, free: 15.29 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004836/0.8824, allocations: 449.9 kB / 0.865 GB, free: 14.84 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004944/0.8829, allocations: 485.9 kB / 0.8655 GB, free: 14.37 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004067/0.8833, allocations: 226.9 kB / 0.8657 GB, free: 14.14 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0002013/0.8835, allocations: 349.9 kB / 0.8661 GB, free: 13.8 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001296/0.8848, allocations: 0.5647 MB / 0.8666 GB, free: 13.23 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001488/0.8862, allocations: 0.6976 MB / 0.8673 GB, free: 12.51 MB / 0.6231 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.002908/0.8892, allocations: 1.42 MB / 0.8687 GB, free: 11.05 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.904e-06/0.8892, allocations: 3.938 kB / 0.8687 GB, free: 11.05 MB / 0.6231 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003951/0.8931, allocations: 1.845 MB / 0.8705 GB, free: 9.219 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.64e-05/0.8931, allocations: 4 kB / 0.8705 GB, free: 9.215 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.63e-05/0.8932, allocations: 12 kB / 0.8705 GB, free: 9.203 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002463/0.8956, allocations: 0.6097 MB / 0.8711 GB, free: 8.594 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009476/0.8966, allocations: 202 kB / 0.8713 GB, free: 8.406 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003102/0.8997, allocations: 2.794 MB / 0.874 GB, free: 5.469 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008627/0.9005, allocations: 55.91 kB / 0.8741 GB, free: 5.414 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000115/0.9007, allocations: 55.95 kB / 0.8741 GB, free: 5.359 MB / 0.6231 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.0005548/0.9012, allocations: 276.7 kB / 0.8744 GB, free: 5.09 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002739/0.9015, allocations: 131.2 kB / 0.8745 GB, free: 4.961 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004682/0.9062, allocations: 2.296 MB / 0.8768 GB, free: 2.668 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.831e-05/0.9062, allocations: 16 kB / 0.8768 GB, free: 2.652 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/0.9062, allocations: 10.27 kB / 0.8768 GB, free: 2.645 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.9062, allocations: 7.984 kB / 0.8768 GB, free: 2.637 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005262/0.9115, allocations: 2.956 MB / 0.8797 GB, free: 15.66 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-05/0.9115, allocations: 12 kB / 0.8797 GB, free: 15.65 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/0.9126, allocations: 201.9 kB / 0.8799 GB, free: 15.46 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007781/0.9134, allocations: 298.6 kB / 0.8802 GB, free: 15.17 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001019/0.9135, allocations: 43.95 kB / 0.8802 GB, free: 15.13 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005452/0.9189, allocations: 4.613 MB / 0.8847 GB, free: 10.27 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.9189, allocations: 0 / 0.8847 GB, free: 10.27 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005434/0.9243, allocations: 2.549 MB / 0.8872 GB, free: 7.711 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006272/0.925, allocations: 316 kB / 0.8875 GB, free: 7.383 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001645/0.9251, allocations: 24 kB / 0.8875 GB, free: 7.359 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007467/0.9259, allocations: 51.95 kB / 0.8876 GB, free: 7.309 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002058/0.9261, allocations: 95.7 kB / 0.8877 GB, free: 7.219 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001091/0.9262, allocations: 50.31 kB / 0.8877 GB, free: 7.172 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.000794/0.927, allocations: 0.5841 MB / 0.8883 GB, free: 6.578 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1e-07/0.927, allocations: 0 / 0.8883 GB, free: 6.578 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001736/0.9287, allocations: 0.6854 MB / 0.889 GB, free: 5.891 MB / 0.6387 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.001389/0.9301, allocations: 0.8271 MB / 0.8898 GB, free: 5.148 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.003744/0.9339, allocations: 1.673 MB / 0.8914 GB, free: 3.449 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.9339, allocations: 1.094 kB / 0.8914 GB, free: 3.449 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.002331/0.9362, allocations: 1.24 MB / 0.8926 GB, free: 2.176 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001931/0.9381, allocations: 426.5 kB / 0.893 GB, free: 1.785 MB / 0.6387 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10395:11-10395: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:10395:11-10395: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.005737/0.9439, allocations: 2.897 MB / 0.8958 GB, free: 14.89 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008238/0.9447, allocations: 1.12 MB / 0.8969 GB, free: 13.75 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0008805/0.9456, allocations: 269.4 kB / 0.8972 GB, free: 13.48 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003381/0.9459, allocations: 122.1 kB / 0.8973 GB, free: 13.36 MB / 0.6544 GB Notification: Performance of SimCode: time 9.41e-07/0.9459, allocations: 0 / 0.8973 GB, free: 13.36 MB / 0.6544 GB Notification: Performance of Templates: time 0.05219/0.9981, allocations: 30.39 MB / 0.927 GB, free: 15.32 MB / 0.6856 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.sim & ./ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump -abortSlowSimulation -alarm=1200 -s cvode -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Processes.Tests.Pump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches