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) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) [Timeout 90] 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=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: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008328/0.008328, allocations: 97.59 kB / 15.73 MB, free: 6.008 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.00213/0.00213, allocations: 196.8 kB / 16.67 MB, free: 5.926 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.455/1.455, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7537/0.7537, allocations: 93.7 MB / 384.2 MB, free: 5.262 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002398/0.002398, allocations: 87.86 kB / 0.5204 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3585/0.3609, allocations: 68.26 MB / 0.5871 GB, free: 10.3 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.07433/0.4353, allocations: 67.12 MB / 0.6526 GB, free: 6.949 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.03269/0.468, allocations: 26.76 MB / 0.6788 GB, free: 12.1 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001452/0.4695, allocations: 47.62 kB / 0.6788 GB, free: 12.05 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001439/0.471, allocations: 0.5082 MB / 0.6793 GB, free: 11.54 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.003735/0.4748, allocations: 1.274 MB / 0.6805 GB, free: 10.26 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.004516/0.4793, allocations: 1.64 MB / 0.6822 GB, free: 8.617 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002652/0.482, allocations: 1.942 MB / 0.684 GB, free: 6.668 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005722/0.4825, allocations: 351.4 kB / 0.6844 GB, free: 6.312 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.05288/0.5354, allocations: 20.55 MB / 0.7044 GB, free: 1.574 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001474/0.5369, allocations: 0.8443 MB / 0.7053 GB, free: 0.7266 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0002243/0.5372, allocations: 120 kB / 0.7054 GB, free: 0.6094 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.5783/1.115, allocations: 127.7 MB / 0.8301 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0006518/1.116, allocations: 331.4 kB / 0.8304 GB, free: 11.11 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0009362/1.117, allocations: 0.6908 MB / 0.8311 GB, free: 10.63 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.005919/1.123, allocations: 2.894 MB / 0.8339 GB, free: 8.086 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/1.123, allocations: 4 kB / 0.8339 GB, free: 8.082 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.214e-06/1.123, allocations: 0 / 0.8339 GB, free: 8.082 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 4.391e-05/1.123, allocations: 0 / 0.8339 GB, free: 8.082 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.007097/1.13, allocations: 2.087 MB / 0.836 GB, free: 5.984 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.774e-05/1.13, allocations: 8.031 kB / 0.836 GB, free: 5.977 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004868/1.131, allocations: 157.3 kB / 0.8361 GB, free: 5.824 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001586/1.132, allocations: 0.8805 MB / 0.837 GB, free: 4.949 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002345/1.133, allocations: 222.4 kB / 0.8372 GB, free: 4.703 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001865/1.133, allocations: 103.9 kB / 0.8373 GB, free: 4.602 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002763/1.136, allocations: 1.447 MB / 0.8387 GB, free: 3.117 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.909e-05/1.136, allocations: 0 / 0.8387 GB, free: 3.117 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001167/1.136, allocations: 40 kB / 0.8388 GB, free: 3.078 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.864e-05/1.136, allocations: 41.98 kB / 0.8388 GB, free: 3.039 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00335/1.139, allocations: 1.63 MB / 0.8404 GB, free: 1.418 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008698/1.148, allocations: 5.204 MB / 0.8455 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002974/1.151, allocations: 1.267 MB / 0.8467 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001544/1.153, allocations: 0.8044 MB / 0.8475 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004156/1.157, allocations: 4.205 MB / 0.8516 GB, free: 4.883 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.353e-05/1.157, allocations: 43.56 kB / 0.8516 GB, free: 4.832 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=131): time 4.158e-06/1.157, allocations: 0 / 0.8516 GB, free: 4.832 MB / 0.6075 GB Notification: Performance of matching and sorting (n=134): time 0.01047/1.167, allocations: 4.637 MB / 0.8562 GB, free: 116 kB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.042e-05/1.167, allocations: 95.2 kB / 0.8563 GB, free: 4 kB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001049/1.168, allocations: 0.754 MB / 0.857 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.000115/1.169, allocations: 56.98 kB / 0.857 GB, free: 15.17 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004231/1.169, allocations: 449.9 kB / 0.8575 GB, free: 14.72 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.000449/1.169, allocations: 487 kB / 0.8579 GB, free: 14.25 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004036/1.17, allocations: 226.8 kB / 0.8582 GB, free: 14.03 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0002002/1.17, allocations: 349.9 kB / 0.8585 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001275/1.171, allocations: 0.5647 MB / 0.859 GB, free: 13.12 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001425/1.173, allocations: 0.702 MB / 0.8597 GB, free: 12.39 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.003021/1.176, allocations: 1.426 MB / 0.8611 GB, free: 10.93 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/1.176, allocations: 3.938 kB / 0.8611 GB, free: 10.93 MB / 0.6231 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004135/1.18, allocations: 1.862 MB / 0.8629 GB, free: 9.078 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.676e-05/1.18, allocations: 8 kB / 0.8629 GB, free: 9.07 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.127e-05/1.18, allocations: 8 kB / 0.863 GB, free: 9.062 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002558/1.183, allocations: 0.6073 MB / 0.8635 GB, free: 8.453 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000994/1.184, allocations: 205.7 kB / 0.8637 GB, free: 8.262 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003286/1.187, allocations: 2.788 MB / 0.8665 GB, free: 5.324 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009271/1.188, allocations: 49.06 kB / 0.8665 GB, free: 5.277 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000128/1.188, allocations: 60.64 kB / 0.8666 GB, free: 5.219 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.0005646/1.189, allocations: 295.2 kB / 0.8669 GB, free: 4.934 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000277/1.189, allocations: 127.2 kB / 0.867 GB, free: 4.809 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004769/1.194, allocations: 2.307 MB / 0.8692 GB, free: 2.496 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-05/1.194, allocations: 16 kB / 0.8692 GB, free: 2.48 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/1.194, allocations: 4 kB / 0.8692 GB, free: 2.477 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.562e-05/1.194, allocations: 4.109 kB / 0.8692 GB, free: 2.473 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005572/1.199, allocations: 2.981 MB / 0.8722 GB, free: 15.48 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.67e-05/1.199, allocations: 8 kB / 0.8722 GB, free: 15.47 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001068/1.2, allocations: 197.2 kB / 0.8724 GB, free: 15.29 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008314/1.201, allocations: 289.3 kB / 0.8726 GB, free: 15 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001144/1.201, allocations: 51.94 kB / 0.8727 GB, free: 14.95 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00563/1.207, allocations: 4.613 MB / 0.8772 GB, free: 10.09 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/1.207, allocations: 0 / 0.8772 GB, free: 10.09 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005581/1.213, allocations: 2.563 MB / 0.8797 GB, free: 7.512 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000618/1.213, allocations: 313.3 kB / 0.88 GB, free: 7.188 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001876/1.214, allocations: 31.94 kB / 0.88 GB, free: 7.156 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007496/1.214, allocations: 43.97 kB / 0.8801 GB, free: 7.113 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002308/1.215, allocations: 100.4 kB / 0.8802 GB, free: 7.02 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001093/1.215, allocations: 51.94 kB / 0.8802 GB, free: 6.969 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0008115/1.215, allocations: 0.5802 MB / 0.8808 GB, free: 6.379 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.51e-07/1.215, allocations: 0 / 0.8808 GB, free: 6.379 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.00171/1.217, allocations: 0.6854 MB / 0.8814 GB, free: 5.691 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.001507/1.219, allocations: 0.8373 MB / 0.8823 GB, free: 4.918 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.003936/1.223, allocations: 1.77 MB / 0.884 GB, free: 3.125 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/1.223, allocations: 0 / 0.884 GB, free: 3.125 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.002427/1.225, allocations: 1.291 MB / 0.8853 GB, free: 1.801 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002157/1.227, allocations: 425.3 kB / 0.8857 GB, free: 1.402 MB / 0.6387 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10357:11-10357: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:10357:11-10357: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.005689/1.233, allocations: 2.875 MB / 0.8885 GB, free: 14.52 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008253/1.234, allocations: 1.13 MB / 0.8896 GB, free: 13.36 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0009622/1.235, allocations: 261.4 kB / 0.8898 GB, free: 13.1 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003495/1.235, allocations: 119.3 kB / 0.8899 GB, free: 12.98 MB / 0.6544 GB Notification: Performance of SimCode: time 5.51e-07/1.235, allocations: 0 / 0.8899 GB, free: 12.98 MB / 0.6544 GB Notification: Performance of Templates: time 0.05226/1.287, allocations: 30.22 MB / 0.9194 GB, free: 15.11 MB / 0.6856 GB 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches