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.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.001486/0.001486, allocations: 77.7 kB / 19.76 MB, free: 2.027 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.001646/0.001646, allocations: 158.8 kB / 23.01 MB, free: 4.949 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.336/1.336, allocations: 177.2 MB / 203.4 MB, free: 9.246 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.7095/0.7095, allocations: 79.6 MB / 339.4 MB, free: 11.5 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/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_dev_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_dev_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.00248/0.00248, allocations: 89 kB / 0.4924 GB, free: 26.21 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1098, allocations: 74.58 MB / 0.5652 GB, free: 6.141 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.0688/0.1786, allocations: 60.68 MB / 0.6244 GB, free: 9.25 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02796/0.2066, allocations: 24.31 MB / 0.6482 GB, free: 0.8633 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001009/0.2076, allocations: 59.44 kB / 0.6482 GB, free: 0.8047 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001176/0.2087, allocations: 460.7 kB / 0.6487 GB, free: 360 kB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.003228/0.212, allocations: 1.278 MB / 0.6499 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0039/0.2159, allocations: 1.633 MB / 0.6515 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002302/0.2182, allocations: 1.95 MB / 0.6534 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004191/0.2186, allocations: 211.9 kB / 0.6536 GB, free: 11.25 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.04832/0.2669, allocations: 20.82 MB / 0.674 GB, free: 6.266 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001319/0.2682, allocations: 0.7974 MB / 0.6747 GB, free: 5.465 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000199/0.2684, allocations: 120 kB / 0.6749 GB, free: 5.348 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.5359/0.8043, allocations: 126.6 MB / 0.7985 GB, free: 15.37 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0006275/0.8049, allocations: 333 kB / 0.7988 GB, free: 15.11 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.001014/0.8059, allocations: 0.5727 MB / 0.7994 GB, free: 14.71 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.005338/0.8113, allocations: 2.782 MB / 0.8021 GB, free: 12.29 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.8113, allocations: 0 / 0.8021 GB, free: 12.29 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.573e-06/0.8113, allocations: 0 / 0.8021 GB, free: 12.29 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 1.786e-05/0.8113, allocations: 0 / 0.8021 GB, free: 12.29 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.004164/0.8155, allocations: 2 MB / 0.8041 GB, free: 10.29 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.8155, allocations: 9.469 kB / 0.8041 GB, free: 10.28 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01083/0.8263, allocations: 1.805 MB / 0.8059 GB, free: 8.477 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001752/0.8281, allocations: 0.9463 MB / 0.8068 GB, free: 7.559 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002896/0.8284, allocations: 351 kB / 0.8071 GB, free: 7.152 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002295/0.8286, allocations: 102.6 kB / 0.8072 GB, free: 7.055 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003666/0.8323, allocations: 2.303 MB / 0.8095 GB, free: 4.684 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.958e-05/0.8323, allocations: 0 / 0.8095 GB, free: 4.684 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001386/0.8324, allocations: 44 kB / 0.8095 GB, free: 4.641 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.684e-05/0.8325, allocations: 49.88 kB / 0.8095 GB, free: 4.594 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004144/0.8366, allocations: 2.348 MB / 0.8118 GB, free: 2.258 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01126/0.8479, allocations: 5.995 MB / 0.8177 GB, free: 12.3 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003145/0.8511, allocations: 1.366 MB / 0.819 GB, free: 10.93 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001747/0.8528, allocations: 0.886 MB / 0.8199 GB, free: 10.04 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008503/0.8536, allocations: 240.6 kB / 0.8201 GB, free: 9.809 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.113e-05/0.8537, allocations: 55.16 kB / 0.8202 GB, free: 9.746 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=131): time 3.566e-06/0.8537, allocations: 0 / 0.8202 GB, free: 9.746 MB / 0.6387 GB Notification: Performance of matching and sorting (n=134): time 0.01208/0.8658, allocations: 5.126 MB / 0.8252 GB, free: 4.617 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.729e-05/0.8659, allocations: 95.73 kB / 0.8253 GB, free: 4.508 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007281/0.8666, allocations: 0.6222 MB / 0.8259 GB, free: 3.875 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001444/0.8667, allocations: 53.7 kB / 0.8259 GB, free: 3.816 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003577/0.8671, allocations: 460.8 kB / 0.8264 GB, free: 3.363 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004344/0.8675, allocations: 481.2 kB / 0.8268 GB, free: 2.898 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005595/0.8681, allocations: 334.6 kB / 0.8271 GB, free: 2.566 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001713/0.8683, allocations: 345.9 kB / 0.8275 GB, free: 2.223 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001621/0.8699, allocations: 0.7326 MB / 0.8282 GB, free: 1.492 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001821/0.8717, allocations: 0.8613 MB / 0.829 GB, free: 0.6055 MB / 0.6387 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.003799/0.8755, allocations: 1.688 MB / 0.8307 GB, free: 14.9 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.8755, allocations: 0 / 0.8307 GB, free: 14.9 MB / 0.6544 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.005478/0.881, allocations: 2.325 MB / 0.833 GB, free: 12.59 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.881, allocations: 4 kB / 0.833 GB, free: 12.59 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0343/0.9153, allocations: 3.319 MB / 0.8362 GB, free: 9.293 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02894/0.9442, allocations: 1.652 MB / 0.8378 GB, free: 7.645 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001714/0.9459, allocations: 289.5 kB / 0.8381 GB, free: 7.371 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004073/0.95, allocations: 2.968 MB / 0.841 GB, free: 4.293 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001634/0.9516, allocations: 75.89 kB / 0.8411 GB, free: 4.219 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00031/0.952, allocations: 110.6 kB / 0.8412 GB, free: 4.113 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.00073/0.9527, allocations: 275.4 kB / 0.8414 GB, free: 3.844 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00049/0.9532, allocations: 118.3 kB / 0.8415 GB, free: 3.73 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005728/0.9589, allocations: 2.731 MB / 0.8442 GB, free: 1.012 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.576e-05/0.9589, allocations: 12 kB / 0.8442 GB, free: 1 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/0.9589, allocations: 4 kB / 0.8442 GB, free: 0.9961 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.221e-05/0.9589, allocations: 3.984 kB / 0.8442 GB, free: 0.9922 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00605/0.965, allocations: 2.809 MB / 0.847 GB, free: 14.18 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.003439/0.9684, allocations: 1.598 MB / 0.8485 GB, free: 12.59 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001657/0.9701, allocations: 242.6 kB / 0.8488 GB, free: 12.36 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007568/0.9708, allocations: 276.6 kB / 0.849 GB, free: 12.09 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001291/0.971, allocations: 55.92 kB / 0.8491 GB, free: 12.04 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005217/0.9762, allocations: 4.317 MB / 0.8533 GB, free: 7.547 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.9762, allocations: 0 / 0.8533 GB, free: 7.547 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005679/0.9819, allocations: 2.698 MB / 0.8559 GB, free: 4.84 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005774/0.9825, allocations: 231 kB / 0.8561 GB, free: 4.613 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002313/0.9827, allocations: 35.89 kB / 0.8562 GB, free: 4.578 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001231/0.9839, allocations: 64.75 kB / 0.8562 GB, free: 4.516 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002244/0.9841, allocations: 100.8 kB / 0.8563 GB, free: 4.418 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001259/0.9843, allocations: 59.22 kB / 0.8564 GB, free: 4.363 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0007227/0.985, allocations: 0.5189 MB / 0.8569 GB, free: 3.832 MB / 0.67 GB Notification: Performance of sort global known variables: time 7e-08/0.985, allocations: 0 / 0.8569 GB, free: 3.832 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001666/0.9867, allocations: 495.5 kB / 0.8574 GB, free: 3.348 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.0009511/0.9876, allocations: 0.5353 MB / 0.8579 GB, free: 2.855 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.004265/0.9919, allocations: 1.83 MB / 0.8597 GB, free: 1.035 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.9919, allocations: 0 / 0.8597 GB, free: 1.035 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.002348/0.9942, allocations: 1.162 MB / 0.8608 GB, free: 15.87 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001431/0.9957, allocations: 333.8 kB / 0.8611 GB, free: 15.57 MB / 0.6856 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.005546/1.001, allocations: 2.961 MB / 0.864 GB, free: 12.6 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006246/1.002, allocations: 0.5527 MB / 0.8646 GB, free: 12.01 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001139/1.003, allocations: 328.2 kB / 0.8649 GB, free: 11.69 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005533/1.004, allocations: 168.2 kB / 0.865 GB, free: 11.52 MB / 0.6856 GB Notification: Performance of SimCode: time 5.71e-07/1.004, allocations: 0 / 0.865 GB, free: 11.52 MB / 0.6856 GB Notification: Performance of Templates: time 0.05475/1.058, allocations: 39.12 MB / 0.9032 GB, free: 4.961 MB / 0.7169 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.makefile [Timeout 660] (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 gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.pipe 2>&1) [Timeout 1200] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.359562273137271]