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.007748/0.007748, allocations: 97.58 kB / 15.73 MB, free: 5.988 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.001958/0.001958, allocations: 192.2 kB / 16.67 MB, free: 5.918 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7594/0.7594, allocations: 93.7 MB / 384.2 MB, free: 5.25 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001689/0.001689, allocations: 79.88 kB / 0.5204 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.308/0.3097, allocations: 68.25 MB / 0.5871 GB, free: 10.27 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.06867/0.3784, allocations: 67.11 MB / 0.6526 GB, free: 6.934 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.02949/0.408, allocations: 26.78 MB / 0.6788 GB, free: 12.07 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001181/0.4092, allocations: 43.69 kB / 0.6788 GB, free: 12.03 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001531/0.4107, allocations: 0.5043 MB / 0.6793 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.003856/0.4146, allocations: 1.282 MB / 0.6806 GB, free: 10.23 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.005282/0.4199, allocations: 1.628 MB / 0.6821 GB, free: 8.598 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002756/0.4227, allocations: 1.938 MB / 0.684 GB, free: 6.652 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005834/0.4233, allocations: 359.3 kB / 0.6844 GB, free: 6.289 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.04738/0.4707, allocations: 20.54 MB / 0.7044 GB, free: 1.555 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001292/0.472, allocations: 0.8443 MB / 0.7053 GB, free: 0.707 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0002496/0.4723, allocations: 120 kB / 0.7054 GB, free: 0.5898 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.5907/1.063, allocations: 127.7 MB / 0.8301 GB, free: 11.2 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0006145/1.064, allocations: 325.3 kB / 0.8304 GB, free: 10.95 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0008635/1.064, allocations: 0.6855 MB / 0.8311 GB, free: 10.48 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.005857/1.07, allocations: 2.906 MB / 0.8339 GB, free: 7.93 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/1.07, allocations: 0 / 0.8339 GB, free: 7.93 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.573e-06/1.07, allocations: 0 / 0.8339 GB, free: 7.93 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.3e-05/1.07, allocations: 0 / 0.8339 GB, free: 7.93 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.004388/1.075, allocations: 2.079 MB / 0.836 GB, free: 5.836 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/1.075, allocations: 8.031 kB / 0.836 GB, free: 5.828 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002883/1.075, allocations: 153.3 kB / 0.8361 GB, free: 5.68 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001291/1.076, allocations: 0.8901 MB / 0.837 GB, free: 4.797 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001855/1.077, allocations: 223.2 kB / 0.8372 GB, free: 4.551 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001647/1.077, allocations: 99.95 kB / 0.8373 GB, free: 4.453 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002493/1.079, allocations: 1.439 MB / 0.8387 GB, free: 2.973 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.819e-05/1.079, allocations: 7.984 kB / 0.8387 GB, free: 2.965 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000109/1.079, allocations: 42.89 kB / 0.8387 GB, free: 2.926 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.058e-05/1.08, allocations: 43.08 kB / 0.8388 GB, free: 2.887 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003016/1.083, allocations: 1.636 MB / 0.8404 GB, free: 1.262 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007491/1.09, allocations: 5.199 MB / 0.8455 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002605/1.093, allocations: 1.27 MB / 0.8467 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001391/1.094, allocations: 0.7955 MB / 0.8475 GB, free: 9.867 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003038/1.097, allocations: 4.206 MB / 0.8516 GB, free: 4.734 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.442e-05/1.097, allocations: 48.44 kB / 0.8516 GB, free: 4.68 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=131): time 3.216e-06/1.097, allocations: 0 / 0.8516 GB, free: 4.68 MB / 0.6075 GB Notification: Performance of matching and sorting (n=134): time 0.00962/1.107, allocations: 4.64 MB / 0.8562 GB, free: 15.96 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.53e-05/1.107, allocations: 90.11 kB / 0.8562 GB, free: 15.85 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008403/1.108, allocations: 0.7579 MB / 0.857 GB, free: 15.07 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 8.843e-05/1.108, allocations: 49.7 kB / 0.857 GB, free: 15.02 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003326/1.108, allocations: 445.9 kB / 0.8575 GB, free: 14.57 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.000367/1.109, allocations: 487 kB / 0.8579 GB, free: 14.11 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003718/1.109, allocations: 234.8 kB / 0.8581 GB, free: 13.87 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001524/1.109, allocations: 345.9 kB / 0.8585 GB, free: 13.53 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001257/1.11, allocations: 0.5608 MB / 0.859 GB, free: 12.97 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001366/1.112, allocations: 0.7093 MB / 0.8597 GB, free: 12.24 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.002846/1.115, allocations: 1.413 MB / 0.8611 GB, free: 10.79 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.868e-06/1.115, allocations: 7.938 kB / 0.8611 GB, free: 10.78 MB / 0.6231 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003862/1.119, allocations: 1.862 MB / 0.8629 GB, free: 8.93 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/1.119, allocations: 10.34 kB / 0.8629 GB, free: 8.922 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.943e-05/1.119, allocations: 12.69 kB / 0.8629 GB, free: 8.91 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00248/1.121, allocations: 0.6098 MB / 0.8635 GB, free: 8.301 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009466/1.122, allocations: 208.4 kB / 0.8637 GB, free: 8.109 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002879/1.125, allocations: 2.788 MB / 0.8665 GB, free: 5.172 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008991/1.126, allocations: 51.95 kB / 0.8665 GB, free: 5.121 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001537/1.126, allocations: 55.97 kB / 0.8666 GB, free: 5.066 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.0005842/1.127, allocations: 287 kB / 0.8668 GB, free: 4.789 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003301/1.127, allocations: 136.8 kB / 0.867 GB, free: 4.656 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004595/1.132, allocations: 2.312 MB / 0.8692 GB, free: 2.34 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.529e-05/1.132, allocations: 12.12 kB / 0.8692 GB, free: 2.328 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.119e-05/1.132, allocations: 8 kB / 0.8692 GB, free: 2.32 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.427e-05/1.132, allocations: 7.969 kB / 0.8693 GB, free: 2.312 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00534/1.137, allocations: 2.969 MB / 0.8722 GB, free: 15.34 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-05/1.137, allocations: 16 kB / 0.8722 GB, free: 15.32 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/1.138, allocations: 204.5 kB / 0.8724 GB, free: 15.13 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007743/1.139, allocations: 287.2 kB / 0.8726 GB, free: 14.84 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001284/1.139, allocations: 43.95 kB / 0.8727 GB, free: 14.8 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005068/1.144, allocations: 4.618 MB / 0.8772 GB, free: 9.93 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/1.144, allocations: 4.031 kB / 0.8772 GB, free: 9.926 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005342/1.15, allocations: 2.558 MB / 0.8797 GB, free: 7.359 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005598/1.15, allocations: 320 kB / 0.88 GB, free: 7.027 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002605/1.15, allocations: 27.95 kB / 0.88 GB, free: 7 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008132/1.151, allocations: 39.97 kB / 0.8801 GB, free: 6.961 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000236/1.151, allocations: 104.4 kB / 0.8802 GB, free: 6.863 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001239/1.152, allocations: 48.08 kB / 0.8802 GB, free: 6.816 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0008276/1.152, allocations: 0.5858 MB / 0.8808 GB, free: 6.223 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.7e-07/1.152, allocations: 0 / 0.8808 GB, free: 6.223 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001715/1.154, allocations: 0.6815 MB / 0.8814 GB, free: 5.539 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.001523/1.156, allocations: 0.8324 MB / 0.8823 GB, free: 4.766 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.003821/1.16, allocations: 1.766 MB / 0.884 GB, free: 2.977 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/1.16, allocations: 192 / 0.884 GB, free: 2.977 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.002352/1.162, allocations: 1.29 MB / 0.8852 GB, free: 1.656 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002072/1.164, allocations: 434.4 kB / 0.8857 GB, free: 1.25 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.005375/1.169, allocations: 2.87 MB / 0.8885 GB, free: 14.37 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006913/1.17, allocations: 1.13 MB / 0.8896 GB, free: 13.21 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0009049/1.171, allocations: 257.4 kB / 0.8898 GB, free: 12.95 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003717/1.171, allocations: 119.3 kB / 0.8899 GB, free: 12.84 MB / 0.6544 GB Notification: Performance of SimCode: time 8.51e-07/1.171, allocations: 0 / 0.8899 GB, free: 12.84 MB / 0.6544 GB Notification: Performance of Templates: time 0.04633/1.218, allocations: 30.22 MB / 0.9194 GB, free: 14.96 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches