Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.4.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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_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_ThermofluidStream.Processes.Tests.Pump") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008901/0.0008902, allocations: 180.2 kB / 15.43 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.196/1.196, allocations: 225.7 MB / 241.9 MB, free: 392 kB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000744/0.0007441, allocations: 96.41 kB / 293.1 MB, free: 12.91 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo): time 0.6145/0.6145, allocations: 91.66 MB / 435.8 MB, free: 23.58 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002849/0.000285, allocations: 12 kB / 0.5038 GB, free: 8.301 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2797/0.28, allocations: 69.29 MB / 0.5714 GB, free: 45.66 MB / 442.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.05974/0.3398, allocations: 85.5 MB / 0.6549 GB, free: 9.293 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.03106/0.3709, allocations: 35.48 MB / 0.6896 GB, free: 10.14 MB / 0.4949 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001028/0.3719, allocations: 18.47 kB / 0.6896 GB, free: 10.13 MB / 0.4949 GB Notification: Performance of NFTyping.typeComponents: time 0.00123/0.3732, allocations: 443.1 kB / 0.69 GB, free: 9.773 MB / 0.4949 GB Notification: Performance of NFTyping.typeBindings: time 0.003209/0.3764, allocations: 1.112 MB / 0.6911 GB, free: 8.871 MB / 0.4949 GB Notification: Performance of NFTyping.typeClassSections: time 0.003709/0.3801, allocations: 1.462 MB / 0.6925 GB, free: 7.543 MB / 0.4949 GB Notification: Performance of NFFlatten.flatten: time 0.002227/0.3824, allocations: 2.197 MB / 0.6947 GB, free: 5.344 MB / 0.4949 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004381/0.3828, allocations: 301.4 kB / 0.695 GB, free: 5.035 MB / 0.4949 GB Notification: Performance of NFEvalConstants.evaluate: time 0.04217/0.425, allocations: 19.34 MB / 0.7139 GB, free: 1.488 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001202/0.4262, allocations: 0.7664 MB / 0.7146 GB, free: 0.7188 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0002726/0.4265, allocations: 60 kB / 0.7147 GB, free: 0.6602 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.4618/0.8883, allocations: 127.3 MB / 0.8389 GB, free: 93.99 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0004239/0.8888, allocations: 250.5 kB / 0.8392 GB, free: 93.88 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.000629/0.8894, allocations: 0.6133 MB / 0.8398 GB, free: 93.58 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.003934/0.8934, allocations: 2.732 MB / 0.8424 GB, free: 91.58 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.8934, allocations: 2.625 kB / 0.8425 GB, free: 91.58 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.433e-06/0.8934, allocations: 0 / 0.8425 GB, free: 91.58 MB / 0.573 GB Notification: Performance of Transformations before backend: time 1.372e-05/0.8934, allocations: 4 kB / 0.8425 GB, free: 91.57 MB / 0.573 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.002985/0.8964, allocations: 1.685 MB / 0.8441 GB, free: 90.02 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.177e-05/0.8965, allocations: 11.98 kB / 0.8441 GB, free: 90.01 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001627/0.8966, allocations: 131.4 kB / 0.8442 GB, free: 89.88 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000688/0.8973, allocations: 0.644 MB / 0.8449 GB, free: 89.34 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001138/0.8974, allocations: 211.9 kB / 0.8451 GB, free: 89.14 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001499/0.8976, allocations: 105.3 kB / 0.8452 GB, free: 89.07 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001945/0.8996, allocations: 1.452 MB / 0.8466 GB, free: 88.04 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.481e-05/0.8996, allocations: 4 kB / 0.8466 GB, free: 88.04 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.939e-05/0.8997, allocations: 35.38 kB / 0.8466 GB, free: 88.03 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.855e-05/0.8997, allocations: 45.67 kB / 0.8467 GB, free: 87.98 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00245/0.9022, allocations: 1.653 MB / 0.8483 GB, free: 86.82 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005797/0.908, allocations: 5.735 MB / 0.8539 GB, free: 81.96 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002451/0.9105, allocations: 1.527 MB / 0.8554 GB, free: 81.02 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001175/0.9117, allocations: 0.8837 MB / 0.8562 GB, free: 80.46 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001845/0.9135, allocations: 4.227 MB / 0.8604 GB, free: 75.34 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.622e-05/0.9136, allocations: 54.73 kB / 0.8604 GB, free: 75.29 MB / 0.573 GB Notification: Performance of pre-optimization done (n=135): time 3.677e-06/0.9136, allocations: 2.297 kB / 0.8604 GB, free: 75.29 MB / 0.573 GB Notification: Performance of matching and sorting (n=138): time 0.007823/0.9214, allocations: 5.021 MB / 0.8653 GB, free: 71.48 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.009e-05/0.9214, allocations: 97.34 kB / 0.8654 GB, free: 71.37 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004179/0.9219, allocations: 0.5406 MB / 0.8659 GB, free: 70.93 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 6.847e-05/0.9219, allocations: 50.95 kB / 0.866 GB, free: 70.89 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001494/0.9221, allocations: 381.4 kB / 0.8664 GB, free: 70.65 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002027/0.9223, allocations: 466.5 kB / 0.8668 GB, free: 70.26 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.699e-05/0.9224, allocations: 26.88 kB / 0.8668 GB, free: 70.25 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 8.175e-05/0.9225, allocations: 408 kB / 0.8672 GB, free: 69.89 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001028/0.9235, allocations: 0.634 MB / 0.8678 GB, free: 69.48 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001061/0.9246, allocations: 0.7729 MB / 0.8686 GB, free: 68.93 MB / 0.573 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.002261/0.9268, allocations: 1.569 MB / 0.8701 GB, free: 67.89 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.9269, allocations: 0 / 0.8701 GB, free: 67.89 MB / 0.573 GB Notification: Performance of matching and sorting (n=153) (initialization): time 0.002919/0.9298, allocations: 1.923 MB / 0.872 GB, free: 66.6 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.9298, allocations: 8 kB / 0.872 GB, free: 66.59 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.594e-05/0.9299, allocations: 8 kB / 0.872 GB, free: 66.58 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002045/0.9319, allocations: 0.5989 MB / 0.8726 GB, free: 66.07 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008543/0.9328, allocations: 212.6 kB / 0.8728 GB, free: 65.89 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001954/0.9347, allocations: 2.697 MB / 0.8754 GB, free: 63.41 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008367/0.9356, allocations: 84.27 kB / 0.8755 GB, free: 63.35 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/0.9357, allocations: 59.33 kB / 0.8756 GB, free: 63.3 MB / 0.573 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $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 (105): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.0003692/0.9361, allocations: 268.4 kB / 0.8758 GB, free: 63.12 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001444/0.9362, allocations: 99.28 kB / 0.8759 GB, free: 63.02 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00372/0.94, allocations: 2.213 MB / 0.8781 GB, free: 61.55 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.39e-05/0.94, allocations: 14.58 kB / 0.8781 GB, free: 61.54 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/0.94, allocations: 4 kB / 0.8781 GB, free: 61.53 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.94, allocations: 11.97 kB / 0.8781 GB, free: 61.52 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004459/0.9445, allocations: 3.339 MB / 0.8814 GB, free: 59.21 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.39e-05/0.9445, allocations: 12 kB / 0.8814 GB, free: 59.2 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/0.9456, allocations: 247.5 kB / 0.8816 GB, free: 58.98 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006545/0.9462, allocations: 288.4 kB / 0.8819 GB, free: 58.74 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001006/0.9464, allocations: 56.45 kB / 0.882 GB, free: 58.71 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003299/0.9497, allocations: 4.241 MB / 0.8861 GB, free: 54.98 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.9497, allocations: 0 / 0.8861 GB, free: 54.98 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004537/0.9542, allocations: 3.062 MB / 0.8891 GB, free: 52.91 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004389/0.9547, allocations: 334.6 kB / 0.8894 GB, free: 52.64 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001376/0.9548, allocations: 30.5 kB / 0.8894 GB, free: 52.62 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007745/0.9556, allocations: 65.14 kB / 0.8895 GB, free: 52.58 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002114/0.9558, allocations: 116.8 kB / 0.8896 GB, free: 52.48 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/0.9559, allocations: 61.31 kB / 0.8897 GB, free: 52.43 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0003081/0.9563, allocations: 374.2 kB / 0.89 GB, free: 52.14 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.51e-07/0.9563, allocations: 0 / 0.89 GB, free: 52.14 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001316/0.9576, allocations: 0.681 MB / 0.8907 GB, free: 51.54 MB / 0.573 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 (118): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.001051/0.9587, allocations: 0.8358 MB / 0.8915 GB, free: 50.82 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.00308/0.9617, allocations: 2.003 MB / 0.8935 GB, free: 49.34 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.9618, allocations: 0 / 0.8935 GB, free: 49.34 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001888/0.9637, allocations: 1.465 MB / 0.8949 GB, free: 48.16 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001447/0.9651, allocations: 320.5 kB / 0.8952 GB, free: 47.88 MB / 0.573 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:10061:11-10061: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:10061:11-10061: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.003391/0.9685, allocations: 3.325 MB / 0.8984 GB, free: 44.61 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003563/0.9689, allocations: 1.096 MB / 0.8995 GB, free: 43.48 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0007465/0.9696, allocations: 247.5 kB / 0.8997 GB, free: 43.23 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003068/0.97, allocations: 111.3 kB / 0.8999 GB, free: 43.13 MB / 0.573 GB Notification: Performance of SimCode: time 5.11e-07/0.97, allocations: 3.938 kB / 0.8999 GB, free: 43.12 MB / 0.573 GB Notification: Performance of Templates: time 0.031/1.001, allocations: 27.72 MB / 0.9269 GB, free: 15.79 MB / 0.573 GB make -j1 -f ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.makefile (rm -f ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.pipe >> ../files/ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.sim & ./ThermofluidStream_ThermofluidStream.Processes.Tests.Pump -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Processes.Tests.Pump_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Processes.Tests.Pump_ref.mat","../files/ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches