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.001177/0.001177, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001251/0.001251, allocations: 193.6 kB / 16.14 MB, free: 6.684 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.333/1.333, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6865/0.6865, allocations: 93.72 MB / 383.7 MB, free: 7.195 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 81.12 kB / 462.7 MB, free: 22.25 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1107, allocations: 68.27 MB / 0.5185 GB, free: 7.477 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.07191/0.1826, allocations: 69.89 MB / 0.5868 GB, free: 1.355 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.2876/0.4703, allocations: 27.13 MB / 0.6133 GB, free: 6.59 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001801/0.4721, allocations: 49.12 kB / 0.6133 GB, free: 6.59 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001489/0.4736, allocations: 452.6 kB / 0.6138 GB, free: 6.586 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003992/0.4777, allocations: 1.145 MB / 0.6149 GB, free: 6.574 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00452/0.4822, allocations: 1.462 MB / 0.6163 GB, free: 6.559 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002786/0.485, allocations: 2.279 MB / 0.6185 GB, free: 6.496 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004849/0.4855, allocations: 319.7 kB / 0.6188 GB, free: 6.422 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.04357/0.5291, allocations: 19.44 MB / 0.6378 GB, free: 0 / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001687/0.5308, allocations: 0.8246 MB / 0.6386 GB, free: 15.67 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004423/0.5313, allocations: 78.38 kB / 0.6387 GB, free: 15.67 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3026/0.8339, allocations: 127.3 MB / 0.763 GB, free: 8.133 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0006616/0.8346, allocations: 284.6 kB / 0.7633 GB, free: 7.867 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001299/0.8359, allocations: 0.6532 MB / 0.7639 GB, free: 7.223 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.00579/0.8417, allocations: 2.767 MB / 0.7666 GB, free: 4.598 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.8418, allocations: 0 / 0.7666 GB, free: 4.598 MB / 0.5762 GB Notification: Performance of FrontEnd: time 9.82e-07/0.8418, allocations: 0 / 0.7666 GB, free: 4.598 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.729e-05/0.8418, allocations: 0 / 0.7666 GB, free: 4.598 MB / 0.5762 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.00455/0.8464, allocations: 2.018 MB / 0.7686 GB, free: 2.551 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.8464, allocations: 8.031 kB / 0.7686 GB, free: 2.543 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003432/0.8468, allocations: 151.2 kB / 0.7688 GB, free: 2.395 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001277/0.8481, allocations: 0.814 MB / 0.7696 GB, free: 1.562 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001877/0.8482, allocations: 218.5 kB / 0.7698 GB, free: 1.316 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001798/0.8484, allocations: 110.6 kB / 0.7699 GB, free: 1.211 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002722/0.8512, allocations: 1.438 MB / 0.7713 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.883e-05/0.8512, allocations: 3.906 kB / 0.7713 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001136/0.8513, allocations: 40 kB / 0.7713 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.438e-05/0.8514, allocations: 45.98 kB / 0.7714 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003298/0.8547, allocations: 1.636 MB / 0.773 GB, free: 14.01 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008029/0.8627, allocations: 5.226 MB / 0.7781 GB, free: 8.598 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002825/0.8656, allocations: 1.269 MB / 0.7793 GB, free: 7.309 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001514/0.8671, allocations: 0.7966 MB / 0.7801 GB, free: 6.508 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003169/0.8703, allocations: 4.197 MB / 0.7842 GB, free: 1.379 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.994e-05/0.8704, allocations: 47.5 kB / 0.7842 GB, free: 1.324 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=131): time 3.877e-06/0.8704, allocations: 0 / 0.7842 GB, free: 1.324 MB / 0.5919 GB Notification: Performance of matching and sorting (n=134): time 0.01001/0.8804, allocations: 4.614 MB / 0.7887 GB, free: 12.57 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.925e-05/0.8805, allocations: 94.09 kB / 0.7888 GB, free: 12.46 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009487/0.8814, allocations: 0.7579 MB / 0.7896 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001212/0.8816, allocations: 49.7 kB / 0.7896 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003374/0.8819, allocations: 445.5 kB / 0.79 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003957/0.8823, allocations: 465.9 kB / 0.7905 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000412/0.8827, allocations: 230.8 kB / 0.7907 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001376/0.8829, allocations: 353.9 kB / 0.791 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001314/0.8842, allocations: 0.5686 MB / 0.7916 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001425/0.8857, allocations: 0.6984 MB / 0.7923 GB, free: 8.848 MB / 0.6075 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.002964/0.8886, allocations: 1.417 MB / 0.7937 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.8886, allocations: 4 kB / 0.7937 GB, free: 7.375 MB / 0.6075 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004025/0.8927, allocations: 1.86 MB / 0.7955 GB, free: 5.504 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.8927, allocations: 4 kB / 0.7955 GB, free: 5.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.016e-05/0.8927, allocations: 12 kB / 0.7955 GB, free: 5.488 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002551/0.8953, allocations: 0.6053 MB / 0.7961 GB, free: 4.879 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001075/0.8964, allocations: 211.6 kB / 0.7963 GB, free: 4.672 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002818/0.8992, allocations: 2.681 MB / 0.7989 GB, free: 1.832 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009311/0.9002, allocations: 59.81 kB / 0.799 GB, free: 1.773 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001353/0.9003, allocations: 55.95 kB / 0.799 GB, free: 1.719 MB / 0.6075 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.0005278/0.9009, allocations: 288 kB / 0.7993 GB, free: 1.43 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000295/0.9012, allocations: 118.5 kB / 0.7994 GB, free: 1.312 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004672/0.9058, allocations: 2.314 MB / 0.8017 GB, free: 14.96 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.404e-05/0.9059, allocations: 12 kB / 0.8017 GB, free: 14.95 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.9059, allocations: 4 kB / 0.8017 GB, free: 14.95 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.015e-05/0.9059, allocations: 3.984 kB / 0.8017 GB, free: 14.94 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00521/0.9111, allocations: 2.975 MB / 0.8046 GB, free: 11.93 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.813e-05/0.9112, allocations: 15.98 kB / 0.8046 GB, free: 11.91 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001144/0.9123, allocations: 199.8 kB / 0.8048 GB, free: 11.71 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000789/0.9131, allocations: 285.2 kB / 0.8051 GB, free: 11.43 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001165/0.9133, allocations: 43.95 kB / 0.8051 GB, free: 11.39 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004793/0.9181, allocations: 4.252 MB / 0.8093 GB, free: 6.879 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.9181, allocations: 3.938 kB / 0.8093 GB, free: 6.875 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005257/0.9233, allocations: 2.558 MB / 0.8118 GB, free: 4.293 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005595/0.9239, allocations: 308.3 kB / 0.8121 GB, free: 3.973 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002092/0.9241, allocations: 27.91 kB / 0.8121 GB, free: 3.945 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008487/0.925, allocations: 47.91 kB / 0.8121 GB, free: 3.898 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002155/0.9252, allocations: 96.75 kB / 0.8122 GB, free: 3.805 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001097/0.9253, allocations: 55.95 kB / 0.8123 GB, free: 3.75 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0007424/0.9261, allocations: 0.5802 MB / 0.8128 GB, free: 3.16 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.61e-07/0.9261, allocations: 0 / 0.8128 GB, free: 3.16 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001672/0.9278, allocations: 0.6752 MB / 0.8135 GB, free: 2.484 MB / 0.6231 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.001543/0.9293, allocations: 0.8162 MB / 0.8143 GB, free: 1.707 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.003679/0.933, allocations: 1.761 MB / 0.816 GB, free: 15.9 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/0.933, allocations: 0 / 0.816 GB, free: 15.9 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.002287/0.9353, allocations: 1.294 MB / 0.8173 GB, free: 14.55 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001989/0.9373, allocations: 400.6 kB / 0.8177 GB, free: 14.16 MB / 0.6387 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10228:11-10228: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:10228:11-10228: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.005561/0.9429, allocations: 3.302 MB / 0.8209 GB, free: 10.84 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007067/0.9436, allocations: 1.126 MB / 0.822 GB, free: 9.691 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001018/0.9447, allocations: 265.4 kB / 0.8222 GB, free: 9.43 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003731/0.945, allocations: 119.3 kB / 0.8224 GB, free: 9.312 MB / 0.6387 GB Notification: Performance of SimCode: time 6.31e-07/0.9451, allocations: 0 / 0.8224 GB, free: 9.312 MB / 0.6387 GB Notification: Performance of Templates: time 0.25/1.195, allocations: 28.99 MB / 0.8507 GB, free: 250.8 MB / 0.6387 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