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.001581/0.001581, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001639/0.001639, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.413/1.413, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7557/0.7557, allocations: 93.68 MB / 384.7 MB, free: 5.355 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002517/0.002517, allocations: 79.88 kB / 464.1 MB, free: 6.168 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1367, allocations: 68.27 MB / 0.5199 GB, free: 1.816 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.2811/0.4178, allocations: 67.11 MB / 0.5854 GB, free: 1.902 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03135/0.4492, allocations: 26.76 MB / 0.6115 GB, free: 14.2 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001459/0.4507, allocations: 44.84 kB / 0.6116 GB, free: 14.18 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001636/0.4523, allocations: 0.5063 MB / 0.6121 GB, free: 13.75 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004285/0.4567, allocations: 1.277 MB / 0.6133 GB, free: 12.71 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004948/0.4616, allocations: 1.639 MB / 0.6149 GB, free: 11.57 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.003015/0.4647, allocations: 1.929 MB / 0.6168 GB, free: 10.46 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006397/0.4653, allocations: 350.3 kB / 0.6171 GB, free: 10.31 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.05095/0.5163, allocations: 20.53 MB / 0.6372 GB, free: 6.98 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00144/0.5178, allocations: 0.8521 MB / 0.638 GB, free: 6.125 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002756/0.5181, allocations: 120 kB / 0.6381 GB, free: 6.008 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.582/1.1, allocations: 127.7 MB / 0.7629 GB, free: 110 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0006504/1.101, allocations: 328.1 kB / 0.7632 GB, free: 110 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001297/1.102, allocations: 0.6892 MB / 0.7638 GB, free: 110 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.007494/1.11, allocations: 2.846 MB / 0.7666 GB, free: 109.9 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.685e-06/1.11, allocations: 0 / 0.7666 GB, free: 109.9 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.916e-06/1.11, allocations: 4 kB / 0.7666 GB, free: 109.9 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.607e-05/1.11, allocations: 3.781 kB / 0.7666 GB, free: 109.9 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.005269/1.115, allocations: 2.03 MB / 0.7686 GB, free: 109.1 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/1.115, allocations: 9.75 kB / 0.7686 GB, free: 109.1 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003599/1.115, allocations: 146.2 kB / 0.7688 GB, free: 109 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001285/1.117, allocations: 0.8067 MB / 0.7695 GB, free: 108.6 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001735/1.117, allocations: 222.3 kB / 0.7698 GB, free: 108.5 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001885/1.117, allocations: 105.2 kB / 0.7699 GB, free: 108.5 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002496/1.12, allocations: 1.444 MB / 0.7713 GB, free: 108.3 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.987e-05/1.12, allocations: 1.75 kB / 0.7713 GB, free: 108.3 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001159/1.12, allocations: 44.56 kB / 0.7713 GB, free: 108.3 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.114e-05/1.12, allocations: 45.86 kB / 0.7714 GB, free: 108.3 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002954/1.123, allocations: 1.626 MB / 0.7729 GB, free: 108.3 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006961/1.13, allocations: 5.227 MB / 0.778 GB, free: 106.1 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002383/1.132, allocations: 1.273 MB / 0.7793 GB, free: 105.9 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001177/1.133, allocations: 0.803 MB / 0.7801 GB, free: 105.4 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002039/1.135, allocations: 4.199 MB / 0.7842 GB, free: 100.4 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/1.135, allocations: 44.94 kB / 0.7842 GB, free: 100.3 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=131): time 3.847e-06/1.135, allocations: 4 kB / 0.7842 GB, free: 100.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=134): time 0.008282/1.144, allocations: 4.601 MB / 0.7887 GB, free: 96.79 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.404e-05/1.144, allocations: 94.11 kB / 0.7888 GB, free: 96.68 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007314/1.145, allocations: 0.7579 MB / 0.7895 GB, free: 96.08 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.394e-05/1.145, allocations: 50.52 kB / 0.7896 GB, free: 96.04 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002392/1.145, allocations: 454 kB / 0.79 GB, free: 95.79 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002633/1.145, allocations: 457.4 kB / 0.7905 GB, free: 95.41 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002992/1.145, allocations: 227.8 kB / 0.7907 GB, free: 95.26 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.479e-05/1.146, allocations: 355.3 kB / 0.791 GB, free: 94.93 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009987/1.147, allocations: 0.561 MB / 0.7916 GB, free: 94.57 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001072/1.148, allocations: 0.6978 MB / 0.7922 GB, free: 94.06 MB / 0.5762 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.002301/1.15, allocations: 1.431 MB / 0.7936 GB, free: 93.1 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/1.15, allocations: 3.938 kB / 0.7936 GB, free: 93.09 MB / 0.5762 GB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003308/1.153, allocations: 1.85 MB / 0.7955 GB, free: 91.82 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/1.153, allocations: 8.625 kB / 0.7955 GB, free: 91.81 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.935e-05/1.153, allocations: 13.36 kB / 0.7955 GB, free: 91.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002208/1.156, allocations: 0.6128 MB / 0.7961 GB, free: 91.28 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000887/1.156, allocations: 205.9 kB / 0.7963 GB, free: 91.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002264/1.159, allocations: 2.78 MB / 0.799 GB, free: 88.54 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001072/1.16, allocations: 60.55 kB / 0.799 GB, free: 88.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001191/1.16, allocations: 57.64 kB / 0.7991 GB, free: 88.46 MB / 0.5762 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.0005193/1.16, allocations: 285 kB / 0.7994 GB, free: 88.26 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002674/1.161, allocations: 122.5 kB / 0.7995 GB, free: 88.14 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003739/1.165, allocations: 2.31 MB / 0.8017 GB, free: 85.95 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/1.165, allocations: 15.98 kB / 0.8018 GB, free: 85.93 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/1.165, allocations: 4 kB / 0.8018 GB, free: 85.93 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.293e-05/1.165, allocations: 6.703 kB / 0.8018 GB, free: 85.92 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004264/1.169, allocations: 2.97 MB / 0.8047 GB, free: 82.94 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.419e-05/1.169, allocations: 8 kB / 0.8047 GB, free: 82.93 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009485/1.17, allocations: 201 kB / 0.8049 GB, free: 82.74 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006393/1.171, allocations: 297.6 kB / 0.8051 GB, free: 82.45 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001023/1.171, allocations: 48.52 kB / 0.8052 GB, free: 82.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003632/1.174, allocations: 4.614 MB / 0.8097 GB, free: 77.54 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/1.174, allocations: 0 / 0.8097 GB, free: 77.54 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004443/1.179, allocations: 2.559 MB / 0.8122 GB, free: 74.97 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005663/1.179, allocations: 303.5 kB / 0.8125 GB, free: 74.66 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001883/1.18, allocations: 31.91 kB / 0.8125 GB, free: 74.62 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007221/1.18, allocations: 43.95 kB / 0.8126 GB, free: 74.58 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001893/1.18, allocations: 96.8 kB / 0.8127 GB, free: 74.49 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.897e-05/1.181, allocations: 49.08 kB / 0.8127 GB, free: 74.44 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0006011/1.181, allocations: 0.5865 MB / 0.8133 GB, free: 73.85 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.3e-07/1.181, allocations: 0 / 0.8133 GB, free: 73.85 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001932/1.183, allocations: 0.6713 MB / 0.8139 GB, free: 73.18 MB / 0.5762 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.001445/1.185, allocations: 0.8135 MB / 0.8147 GB, free: 72.45 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00387/1.188, allocations: 2.008 MB / 0.8167 GB, free: 70.44 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.117e-05/1.188, allocations: 0 / 0.8167 GB, free: 70.44 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001861/1.19, allocations: 1.286 MB / 0.8179 GB, free: 69.12 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002096/1.192, allocations: 431.1 kB / 0.8184 GB, free: 68.77 MB / 0.5762 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10354:11-10354: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:10354:11-10354: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.004636/1.197, allocations: 2.908 MB / 0.8212 GB, free: 65.88 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004136/1.198, allocations: 1.129 MB / 0.8223 GB, free: 64.72 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004615/1.198, allocations: 143.3 kB / 0.8224 GB, free: 64.58 MB / 0.5762 GB Notification: Performance of SimCode: time 7.51e-07/1.198, allocations: 0 / 0.8224 GB, free: 64.58 MB / 0.5762 GB Notification: Performance of Templates: time 0.03341/1.231, allocations: 33.59 MB / 0.8552 GB, free: 31.36 MB / 0.5762 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Processes.Tests.Pump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches