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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001644/0.001644, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00191/0.00191, allocations: 211.3 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.487/1.487, allocations: 230.6 MB / 256 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.7751/0.7751, allocations: 94.62 MB / 407 MB, free: 8.844 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Processes.Tests.Pump,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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=1000,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") [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00262/0.00262, allocations: 88.67 kB / 0.5554 GB, free: 38.26 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1117, allocations: 73.05 MB / 0.6268 GB, free: 15.68 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.0818/0.1935, allocations: 60.82 MB / 0.6862 GB, free: 2.66 MB / 0.5138 GB Notification: Performance of NFInst.instExpressions: time 0.03318/0.2267, allocations: 24.38 MB / 0.71 GB, free: 10.21 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001044/0.2278, allocations: 59.44 kB / 0.71 GB, free: 10.15 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001503/0.2293, allocations: 468.7 kB / 0.7105 GB, free: 9.688 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.003767/0.233, allocations: 1.274 MB / 0.7117 GB, free: 8.406 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004514/0.2375, allocations: 1.64 MB / 0.7133 GB, free: 6.762 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.002719/0.2403, allocations: 1.954 MB / 0.7152 GB, free: 4.797 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004659/0.2407, allocations: 211.9 kB / 0.7154 GB, free: 4.582 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.04533/0.286, allocations: 20.44 MB / 0.7354 GB, free: 15.96 MB / 0.5763 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001437/0.2875, allocations: 0.8012 MB / 0.7362 GB, free: 15.16 MB / 0.5763 GB Notification: Performance of NFPackage.collectConstants: time 0.0002571/0.2877, allocations: 120 kB / 0.7363 GB, free: 15.05 MB / 0.5763 GB Notification: Performance of NFFlatten.collectFunctions: time 0.5266/0.8144, allocations: 126.2 MB / 0.8595 GB, free: 2.523 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0005982/0.815, allocations: 332.6 kB / 0.8598 GB, free: 2.27 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0008704/0.8159, allocations: 0.5702 MB / 0.8604 GB, free: 1.867 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.00507/0.8209, allocations: 2.788 MB / 0.8631 GB, free: 15.45 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.8209, allocations: 4 kB / 0.8631 GB, free: 15.44 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.704e-06/0.8209, allocations: 0 / 0.8631 GB, free: 15.44 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 2.041e-05/0.8209, allocations: 0 / 0.8631 GB, free: 15.44 MB / 0.6231 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.0045/0.8254, allocations: 1.999 MB / 0.8651 GB, free: 13.45 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.8255, allocations: 8.031 kB / 0.8651 GB, free: 13.44 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01054/0.836, allocations: 1.802 MB / 0.8668 GB, free: 11.64 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002033/0.8381, allocations: 0.9471 MB / 0.8677 GB, free: 10.71 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003334/0.8384, allocations: 353.5 kB / 0.8681 GB, free: 10.31 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002739/0.8387, allocations: 107.9 kB / 0.8682 GB, free: 10.21 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004022/0.8427, allocations: 2.297 MB / 0.8704 GB, free: 7.84 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.194e-05/0.8427, allocations: 0.875 kB / 0.8704 GB, free: 7.84 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001784/0.8429, allocations: 47.52 kB / 0.8705 GB, free: 7.797 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.037e-05/0.843, allocations: 45.98 kB / 0.8705 GB, free: 7.754 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004503/0.8475, allocations: 2.346 MB / 0.8728 GB, free: 5.414 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01206/0.8595, allocations: 5.99 MB / 0.8787 GB, free: 15.47 MB / 0.6388 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003324/0.8628, allocations: 1.369 MB / 0.88 GB, free: 14.09 MB / 0.6388 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001926/0.8648, allocations: 0.8859 MB / 0.8809 GB, free: 13.21 MB / 0.6388 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008896/0.8657, allocations: 234.6 kB / 0.8811 GB, free: 12.99 MB / 0.6388 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.422e-05/0.8657, allocations: 68.22 kB / 0.8811 GB, free: 12.91 MB / 0.6388 GB Notification: Performance of pre-optimization done (n=131): time 3.877e-06/0.8657, allocations: 1.531 kB / 0.8812 GB, free: 12.91 MB / 0.6388 GB Notification: Performance of matching and sorting (n=134): time 0.01292/0.8786, allocations: 5.122 MB / 0.8862 GB, free: 7.789 MB / 0.6388 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.959e-05/0.8787, allocations: 94.05 kB / 0.8862 GB, free: 7.68 MB / 0.6388 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008168/0.8795, allocations: 0.6261 MB / 0.8869 GB, free: 7.047 MB / 0.6388 GB Notification: Performance of collectPreVariables (initialization): time 0.0002043/0.8797, allocations: 53.7 kB / 0.8869 GB, free: 6.988 MB / 0.6388 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003815/0.8801, allocations: 457.7 kB / 0.8873 GB, free: 6.535 MB / 0.6388 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004985/0.8806, allocations: 477.6 kB / 0.8878 GB, free: 6.074 MB / 0.6388 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005791/0.8812, allocations: 330.7 kB / 0.8881 GB, free: 5.746 MB / 0.6388 GB Notification: Performance of setup shared object (initialization): time 0.0001857/0.8814, allocations: 349.9 kB / 0.8884 GB, free: 5.398 MB / 0.6388 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001695/0.8831, allocations: 0.7287 MB / 0.8892 GB, free: 4.672 MB / 0.6388 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001929/0.885, allocations: 0.86 MB / 0.89 GB, free: 3.785 MB / 0.6388 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.004029/0.889, allocations: 1.689 MB / 0.8916 GB, free: 2.078 MB / 0.6388 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.889, allocations: 0 / 0.8916 GB, free: 2.078 MB / 0.6388 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.005675/0.8947, allocations: 2.328 MB / 0.8939 GB, free: 15.76 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/0.8947, allocations: 4 kB / 0.8939 GB, free: 15.76 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02967/0.9244, allocations: 3.316 MB / 0.8972 GB, free: 12.46 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02462/0.949, allocations: 1.654 MB / 0.8988 GB, free: 10.81 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001629/0.9507, allocations: 296.8 kB / 0.8991 GB, free: 10.54 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004141/0.9548, allocations: 2.964 MB / 0.902 GB, free: 7.453 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00156/0.9564, allocations: 74.28 kB / 0.902 GB, free: 7.383 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003026/0.9567, allocations: 103.8 kB / 0.9021 GB, free: 7.281 MB / 0.6544 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 (107): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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,36)} Notification: Performance of prepare postOptimizeDAE: time 0.0007298/0.9574, allocations: 289.5 kB / 0.9024 GB, free: 7 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004783/0.9579, allocations: 111.3 kB / 0.9025 GB, free: 6.891 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005832/0.9637, allocations: 2.732 MB / 0.9052 GB, free: 4.176 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.606e-05/0.9637, allocations: 12 kB / 0.9052 GB, free: 4.164 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/0.9637, allocations: 4 kB / 0.9052 GB, free: 4.16 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.611e-05/0.9637, allocations: 7.969 kB / 0.9052 GB, free: 4.152 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006421/0.9702, allocations: 2.808 MB / 0.9079 GB, free: 1.348 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.003686/0.9738, allocations: 1.596 MB / 0.9095 GB, free: 15.75 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001658/0.9755, allocations: 254.1 kB / 0.9097 GB, free: 15.52 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007879/0.9763, allocations: 280.2 kB / 0.91 GB, free: 15.24 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001522/0.9764, allocations: 47.94 kB / 0.9101 GB, free: 15.19 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005449/0.9819, allocations: 4.323 MB / 0.9143 GB, free: 10.71 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.9819, allocations: 3.844 kB / 0.9143 GB, free: 10.71 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006013/0.9879, allocations: 2.698 MB / 0.9169 GB, free: 7.996 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007006/0.9886, allocations: 231 kB / 0.9171 GB, free: 7.77 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002566/0.9889, allocations: 31.89 kB / 0.9172 GB, free: 7.738 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001231/0.9901, allocations: 62.08 kB / 0.9172 GB, free: 7.68 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002443/0.9903, allocations: 102.3 kB / 0.9173 GB, free: 7.582 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001415/0.9905, allocations: 55.94 kB / 0.9174 GB, free: 7.527 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.000777/0.9913, allocations: 0.5262 MB / 0.9179 GB, free: 6.992 MB / 0.67 GB Notification: Performance of sort global known variables: time 8e-08/0.9913, allocations: 0 / 0.9179 GB, free: 6.992 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.00181/0.9931, allocations: 499.5 kB / 0.9184 GB, free: 6.504 MB / 0.67 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 (103): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.001041/0.9941, allocations: 0.5356 MB / 0.9189 GB, free: 6.031 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.004486/0.9986, allocations: 1.819 MB / 0.9207 GB, free: 4.219 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.9986, allocations: 0 / 0.9207 GB, free: 4.219 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.002525/1.001, allocations: 1.162 MB / 0.9218 GB, free: 3.051 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001707/1.003, allocations: 336.8 kB / 0.9221 GB, free: 2.746 MB / 0.67 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10546:11-10546: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:10546:11-10546: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.006202/1.009, allocations: 2.977 MB / 0.925 GB, free: 15.78 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006596/1.01, allocations: 0.5488 MB / 0.9256 GB, free: 15.19 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001342/1.011, allocations: 332.1 kB / 0.9259 GB, free: 14.86 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006159/1.012, allocations: 155.3 kB / 0.926 GB, free: 14.71 MB / 0.6856 GB Notification: Performance of SimCode: time 8.22e-07/1.012, allocations: 1.203 kB / 0.926 GB, free: 14.71 MB / 0.6856 GB Notification: Performance of Templates: time 0.06326/1.075, allocations: 40.75 MB / 0.9658 GB, free: 6.531 MB / 0.7169 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.makefile [Timeout 660] (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) [Timeout 1200] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.040547331795096]