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.001667/0.001667, allocations: 77.94 kB / 19.76 MB, free: 2.031 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.00185/0.00185, allocations: 162.4 kB / 23.01 MB, free: 4.945 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.449/1.449, allocations: 177.2 MB / 203.4 MB, free: 8.949 MB / 190.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.7216/0.7216, allocations: 74.91 MB / 334.7 MB, free: 15.52 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.002605/0.002605, allocations: 89.2 kB / 496.4 MB, free: 29.7 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1191, allocations: 73.03 MB / 0.5561 GB, free: 15.56 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.07864/0.1977, allocations: 60.82 MB / 0.6155 GB, free: 2.535 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.03235/0.2301, allocations: 24.38 MB / 0.6393 GB, free: 10.07 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001138/0.2312, allocations: 59.44 kB / 0.6393 GB, free: 10.02 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001456/0.2327, allocations: 468.7 kB / 0.6398 GB, free: 9.555 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.00379/0.2365, allocations: 1.27 MB / 0.641 GB, free: 8.277 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004479/0.2409, allocations: 1.644 MB / 0.6426 GB, free: 6.629 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.002791/0.2437, allocations: 1.954 MB / 0.6445 GB, free: 4.664 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004731/0.2442, allocations: 211.9 kB / 0.6447 GB, free: 4.449 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.05241/0.2966, allocations: 20.5 MB / 0.6648 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001694/0.2983, allocations: 0.8051 MB / 0.6655 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0003461/0.2986, allocations: 128 kB / 0.6657 GB, free: 14.85 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.5974/0.896, allocations: 126.6 MB / 0.7893 GB, free: 0.6641 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.000649/0.8967, allocations: 339.2 kB / 0.7896 GB, free: 416 kB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0009354/0.8976, allocations: 0.567 MB / 0.7902 GB, free: 4 kB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.006124/0.9038, allocations: 2.78 MB / 0.7929 GB, free: 13.59 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 8.125e-06/0.9038, allocations: 4 kB / 0.7929 GB, free: 13.59 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.094e-06/0.9038, allocations: 0 / 0.7929 GB, free: 13.59 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.763e-05/0.9038, allocations: 0 / 0.7929 GB, free: 13.59 MB / 0.6075 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.004848/0.9086, allocations: 1.997 MB / 0.7949 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.9087, allocations: 13.78 kB / 0.7949 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01122/0.9199, allocations: 1.802 MB / 0.7966 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002103/0.922, allocations: 0.9459 MB / 0.7976 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003255/0.9223, allocations: 351 kB / 0.7979 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003134/0.9226, allocations: 105 kB / 0.798 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004204/0.9269, allocations: 2.303 MB / 0.8002 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.267e-05/0.9269, allocations: 0 / 0.8002 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001575/0.927, allocations: 41.42 kB / 0.8003 GB, free: 5.941 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.153e-05/0.9271, allocations: 45.98 kB / 0.8003 GB, free: 5.898 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004733/0.9318, allocations: 2.345 MB / 0.8026 GB, free: 3.559 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01258/0.9444, allocations: 6.003 MB / 0.8085 GB, free: 13.6 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003469/0.9479, allocations: 1.366 MB / 0.8098 GB, free: 12.23 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002017/0.9499, allocations: 0.8925 MB / 0.8107 GB, free: 11.34 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009341/0.9508, allocations: 234.9 kB / 0.8109 GB, free: 11.12 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.659e-05/0.9509, allocations: 58.88 kB / 0.811 GB, free: 11.05 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=131): time 3.637e-06/0.9509, allocations: 0 / 0.811 GB, free: 11.05 MB / 0.6231 GB Notification: Performance of matching and sorting (n=134): time 0.01374/0.9646, allocations: 5.123 MB / 0.816 GB, free: 5.926 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.407e-05/0.9647, allocations: 94.05 kB / 0.8161 GB, free: 5.816 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008182/0.9655, allocations: 0.6261 MB / 0.8167 GB, free: 5.184 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0002275/0.9658, allocations: 53.7 kB / 0.8167 GB, free: 5.125 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003935/0.9662, allocations: 459 kB / 0.8172 GB, free: 4.672 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005497/0.9667, allocations: 477.2 kB / 0.8176 GB, free: 4.211 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005893/0.9673, allocations: 334.6 kB / 0.8179 GB, free: 3.879 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001767/0.9675, allocations: 353.9 kB / 0.8183 GB, free: 3.527 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001751/0.9692, allocations: 0.7248 MB / 0.819 GB, free: 2.805 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001976/0.9712, allocations: 0.8571 MB / 0.8198 GB, free: 1.918 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.004259/0.9755, allocations: 1.688 MB / 0.8215 GB, free: 216 kB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.9755, allocations: 3.625 kB / 0.8215 GB, free: 216 kB / 0.6231 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.006003/0.9815, allocations: 2.323 MB / 0.8237 GB, free: 13.9 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.414e-05/0.9815, allocations: 8 kB / 0.8237 GB, free: 13.89 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03275/1.014, allocations: 3.315 MB / 0.827 GB, free: 10.6 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02686/1.041, allocations: 1.651 MB / 0.8286 GB, free: 8.945 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001761/1.043, allocations: 292.8 kB / 0.8289 GB, free: 8.672 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004331/1.047, allocations: 2.965 MB / 0.8318 GB, free: 5.59 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00173/1.049, allocations: 75.97 kB / 0.8318 GB, free: 5.516 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002928/1.049, allocations: 103.8 kB / 0.8319 GB, free: 5.414 MB / 0.6387 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.0007528/1.05, allocations: 286 kB / 0.8322 GB, free: 5.137 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004804/1.05, allocations: 115.2 kB / 0.8323 GB, free: 5.023 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006144/1.057, allocations: 2.733 MB / 0.835 GB, free: 2.301 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.929e-05/1.057, allocations: 17.91 kB / 0.835 GB, free: 2.289 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.787e-06/1.057, allocations: 4 kB / 0.835 GB, free: 2.285 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.609e-05/1.057, allocations: 7.969 kB / 0.835 GB, free: 2.277 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006492/1.063, allocations: 2.803 MB / 0.8378 GB, free: 15.48 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.003763/1.067, allocations: 1.592 MB / 0.8393 GB, free: 13.89 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001726/1.069, allocations: 250.2 kB / 0.8395 GB, free: 13.65 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008133/1.069, allocations: 283 kB / 0.8398 GB, free: 13.37 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002121/1.07, allocations: 47.94 kB / 0.8399 GB, free: 13.32 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005684/1.075, allocations: 4.316 MB / 0.8441 GB, free: 8.84 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.604e-06/1.075, allocations: 7.781 kB / 0.8441 GB, free: 8.836 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006497/1.082, allocations: 2.703 MB / 0.8467 GB, free: 6.125 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007842/1.083, allocations: 227 kB / 0.8469 GB, free: 5.902 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002469/1.083, allocations: 35.88 kB / 0.847 GB, free: 5.867 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001254/1.084, allocations: 59.89 kB / 0.847 GB, free: 5.809 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002516/1.084, allocations: 100.8 kB / 0.8471 GB, free: 5.711 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001371/1.085, allocations: 53.03 kB / 0.8472 GB, free: 5.66 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0007743/1.085, allocations: 0.53 MB / 0.8477 GB, free: 5.121 MB / 0.6544 GB Notification: Performance of sort global known variables: time 8e-08/1.085, allocations: 0 / 0.8477 GB, free: 5.121 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001856/1.087, allocations: 495.5 kB / 0.8482 GB, free: 4.637 MB / 0.6544 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.001057/1.088, allocations: 0.5362 MB / 0.8487 GB, free: 4.141 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.004772/1.093, allocations: 1.825 MB / 0.8505 GB, free: 2.324 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/1.093, allocations: 4.062 kB / 0.8505 GB, free: 2.32 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.00266/1.096, allocations: 1.163 MB / 0.8516 GB, free: 1.156 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001788/1.097, allocations: 326.4 kB / 0.8519 GB, free: 0.8633 MB / 0.6544 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10545:11-10545: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:10545:11-10545: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.006246/1.104, allocations: 2.956 MB / 0.8548 GB, free: 13.9 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006794/1.104, allocations: 0.5506 MB / 0.8553 GB, free: 13.31 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001429/1.106, allocations: 332.2 kB / 0.8557 GB, free: 12.98 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006018/1.106, allocations: 160.3 kB / 0.8558 GB, free: 12.82 MB / 0.67 GB Notification: Performance of SimCode: time 1.192e-06/1.106, allocations: 3.938 kB / 0.8558 GB, free: 12.82 MB / 0.67 GB Notification: Performance of Templates: time 0.06486/1.171, allocations: 39.11 MB / 0.894 GB, free: 6.266 MB / 0.7012 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 -s ida -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/jenkins1/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.0090173430508]