Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Processes.Tests.Pump.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001683/0.001683, allocations: 182.9 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.324/1.324, allocations: 205.1 MB / 221.8 MB, free: 8.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008996/0.0008996, allocations: 94.3 kB / 269.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo): time 0.6891/0.6891, allocations: 91.22 MB / 407.8 MB, free: 2.555 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009806/0.000981, allocations: 59.86 kB / 483.5 MB, free: 6.605 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.2415, allocations: 64.96 MB / 0.5356 GB, free: 33.64 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.Pump): time 0.0576/0.2991, allocations: 69.62 MB / 0.6036 GB, free: 15.91 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.02622/0.3254, allocations: 26.87 MB / 0.6299 GB, free: 4.957 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001057/0.3265, allocations: 15.94 kB / 0.6299 GB, free: 4.941 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001173/0.3277, allocations: 441.5 kB / 0.6303 GB, free: 4.508 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00322/0.3309, allocations: 1.123 MB / 0.6314 GB, free: 3.379 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003713/0.3347, allocations: 1.46 MB / 0.6328 GB, free: 1.922 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.002241/0.3369, allocations: 2.215 MB / 0.635 GB, free: 15.7 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004115/0.3373, allocations: 305.4 kB / 0.6353 GB, free: 15.39 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.04361/0.381, allocations: 19.36 MB / 0.6542 GB, free: 11.83 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0011/0.3821, allocations: 0.8172 MB / 0.655 GB, free: 11.01 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001714/0.3823, allocations: 80 kB / 0.6551 GB, free: 10.93 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.4746/0.8569, allocations: 127.4 MB / 0.7794 GB, free: 0.5039 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0005165/0.8575, allocations: 280.5 kB / 0.7797 GB, free: 296 kB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0007983/0.8583, allocations: 0.6114 MB / 0.7803 GB, free: 15.87 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.004696/0.863, allocations: 2.773 MB / 0.783 GB, free: 13.5 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.863, allocations: 0 / 0.783 GB, free: 13.5 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.022e-06/0.863, allocations: 0 / 0.783 GB, free: 13.5 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.809e-05/0.8631, allocations: 0 / 0.783 GB, free: 13.5 MB / 0.5261 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.003992/0.8671, allocations: 1.904 MB / 0.7849 GB, free: 11.63 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.8671, allocations: 12.03 kB / 0.7849 GB, free: 11.62 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002541/0.8674, allocations: 127.4 kB / 0.785 GB, free: 11.49 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008861/0.8683, allocations: 0.6439 MB / 0.7856 GB, free: 10.84 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001637/0.8684, allocations: 223 kB / 0.7858 GB, free: 10.6 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000169/0.8686, allocations: 103.9 kB / 0.7859 GB, free: 10.5 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002383/0.871, allocations: 1.442 MB / 0.7874 GB, free: 9.031 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.798e-05/0.871, allocations: 0 / 0.7874 GB, free: 9.031 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001002/0.8712, allocations: 40 kB / 0.7874 GB, free: 8.992 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.199e-05/0.8712, allocations: 45.98 kB / 0.7874 GB, free: 8.945 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003057/0.8743, allocations: 1.634 MB / 0.789 GB, free: 7.32 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007496/0.8818, allocations: 5.724 MB / 0.7946 GB, free: 1.316 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00292/0.8847, allocations: 1.523 MB / 0.7961 GB, free: 15.79 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001365/0.8861, allocations: 0.8786 MB / 0.797 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002735/0.8889, allocations: 4.226 MB / 0.8011 GB, free: 9.758 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.248e-05/0.8889, allocations: 49.44 kB / 0.8011 GB, free: 9.703 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=135): time 3.566e-06/0.8889, allocations: 0 / 0.8011 GB, free: 9.703 MB / 0.5417 GB Notification: Performance of matching and sorting (n=138): time 0.009468/0.8984, allocations: 4.987 MB / 0.806 GB, free: 4.609 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.121e-05/0.8985, allocations: 90.11 kB / 0.8061 GB, free: 4.504 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005392/0.899, allocations: 0.5473 MB / 0.8066 GB, free: 3.953 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 8.461e-05/0.8991, allocations: 45.7 kB / 0.8067 GB, free: 3.902 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002199/0.8993, allocations: 377.3 kB / 0.807 GB, free: 3.527 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003187/0.8997, allocations: 476.3 kB / 0.8075 GB, free: 3.066 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003798/0.9001, allocations: 230.9 kB / 0.8077 GB, free: 2.836 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001551/0.9002, allocations: 410.7 kB / 0.8081 GB, free: 2.426 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001222/0.9015, allocations: 0.6272 MB / 0.8087 GB, free: 1.801 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001325/0.9028, allocations: 0.7716 MB / 0.8095 GB, free: 1.004 MB / 0.5417 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.002796/0.9056, allocations: 1.551 MB / 0.811 GB, free: 15.41 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.9056, allocations: 0 / 0.811 GB, free: 15.41 MB / 0.5573 GB Notification: Performance of matching and sorting (n=153) (initialization): time 0.003791/0.9094, allocations: 1.959 MB / 0.8129 GB, free: 13.47 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.9095, allocations: 8 kB / 0.8129 GB, free: 13.46 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.782e-05/0.9095, allocations: 8 kB / 0.8129 GB, free: 13.45 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002433/0.9119, allocations: 0.6173 MB / 0.8135 GB, free: 12.84 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009636/0.9129, allocations: 213.6 kB / 0.8137 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002744/0.9157, allocations: 2.698 MB / 0.8164 GB, free: 9.789 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/0.9167, allocations: 75.77 kB / 0.8164 GB, free: 9.715 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001289/0.9168, allocations: 59.95 kB / 0.8165 GB, free: 9.656 MB / 0.5573 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 (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.0004672/0.9173, allocations: 273 kB / 0.8167 GB, free: 9.395 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002484/0.9176, allocations: 98.78 kB / 0.8168 GB, free: 9.297 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004544/0.9221, allocations: 2.197 MB / 0.819 GB, free: 7.129 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.17e-05/0.9222, allocations: 14.62 kB / 0.819 GB, free: 7.117 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/0.9222, allocations: 8 kB / 0.819 GB, free: 7.109 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.48e-05/0.9222, allocations: 11.91 kB / 0.819 GB, free: 7.098 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005554/0.9278, allocations: 3.325 MB / 0.8223 GB, free: 3.762 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-05/0.9279, allocations: 12 kB / 0.8223 GB, free: 3.75 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001126/0.929, allocations: 238 kB / 0.8225 GB, free: 3.527 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000739/0.9297, allocations: 286.1 kB / 0.8228 GB, free: 3.242 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001282/0.9299, allocations: 51.95 kB / 0.8228 GB, free: 3.191 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004323/0.9342, allocations: 4.248 MB / 0.827 GB, free: 14.71 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.9343, allocations: 3.984 kB / 0.827 GB, free: 14.71 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2001/1.134, allocations: 40.25 MB / 0.8663 GB, free: 6.234 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000544/1.135, allocations: 335.4 kB / 0.8666 GB, free: 5.891 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001348/1.135, allocations: 28 kB / 0.8666 GB, free: 5.863 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000827/1.136, allocations: 73.77 kB / 0.8667 GB, free: 5.793 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002659/1.136, allocations: 104.8 kB / 0.8668 GB, free: 5.691 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001281/1.136, allocations: 63.94 kB / 0.8669 GB, free: 5.629 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0004439/1.137, allocations: 383.1 kB / 0.8672 GB, free: 5.258 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.41e-07/1.137, allocations: 4 kB / 0.8672 GB, free: 5.254 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.002438/1.139, allocations: 0.9134 MB / 0.8681 GB, free: 4.34 MB / 0.6042 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.001423/1.141, allocations: 0.8223 MB / 0.8689 GB, free: 3.582 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.003782/1.145, allocations: 1.982 MB / 0.8709 GB, free: 1.578 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 6.052e-06/1.145, allocations: 4 kB / 0.8709 GB, free: 1.574 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.002349/1.147, allocations: 1.469 MB / 0.8723 GB, free: 68 kB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001695/1.149, allocations: 321.1 kB / 0.8726 GB, free: 15.77 MB / 0.6198 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/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) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/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.006277/1.155, allocations: 4.395 MB / 0.8769 GB, free: 11.33 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006315/1.156, allocations: 1.145 MB / 0.878 GB, free: 10.16 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.001675/1.157, allocations: 351.4 kB / 0.8783 GB, free: 9.809 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007832/1.158, allocations: 167.2 kB / 0.8785 GB, free: 9.645 MB / 0.6198 GB Notification: Performance of SimCode: time 5.61e-07/1.158, allocations: 0 / 0.8785 GB, free: 9.645 MB / 0.6198 GB Notification: Performance of Templates: time 0.2523/1.41, allocations: 49.01 MB / 0.9264 GB, free: 284 MB / 0.6511 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