Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.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.HeatExchangers.Tests.CounterFlowNTU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU") translateModel(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001727/0.001727, allocations: 194.5 kB / 16.54 MB, free: 6.672 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.383/1.383, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6588/0.6588, allocations: 91.2 MB / 381.6 MB, free: 9.395 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 85.92 kB / 460.3 MB, free: 23.11 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.1301, allocations: 67.69 MB / 0.5156 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.503/0.6332, allocations: 214.3 MB / 0.7249 GB, free: 8.988 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02045/0.6537, allocations: 17.39 MB / 0.7419 GB, free: 7.543 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001128/0.6549, allocations: 43.69 kB / 0.7419 GB, free: 7.5 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001782/0.6567, allocations: 0.6131 MB / 0.7425 GB, free: 6.883 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.005058/0.6618, allocations: 1.718 MB / 0.7442 GB, free: 5.156 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004753/0.6666, allocations: 1.664 MB / 0.7458 GB, free: 3.488 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.002283/0.6689, allocations: 1.666 MB / 0.7475 GB, free: 1.816 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006099/0.6695, allocations: 290.9 kB / 0.7477 GB, free: 1.52 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002585/0.6721, allocations: 1.168 MB / 0.7489 GB, free: 356 kB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000956/0.6731, allocations: 0.626 MB / 0.7495 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002302/0.6733, allocations: 96 kB / 0.7496 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006932/0.6803, allocations: 3.377 MB / 0.7529 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0003391/0.6806, allocations: 246.9 kB / 0.7531 GB, free: 12 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0009045/0.6816, allocations: 0.6099 MB / 0.7537 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.005119/0.6867, allocations: 2.302 MB / 0.756 GB, free: 9.078 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.124e-06/0.6867, allocations: 7.938 kB / 0.756 GB, free: 9.07 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.704e-06/0.6867, allocations: 4 kB / 0.756 GB, free: 9.066 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.757e-05/0.6868, allocations: 0 / 0.756 GB, free: 9.066 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 227 * Number of variables: 227 Notification: Performance of Generate backend data structure: time 0.003897/0.6907, allocations: 1.811 MB / 0.7577 GB, free: 7.199 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.6907, allocations: 12.03 kB / 0.7577 GB, free: 7.188 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002073/0.6928, allocations: 286 kB / 0.758 GB, free: 6.906 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001491/0.6943, allocations: 0.8233 MB / 0.7588 GB, free: 6.039 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002201/0.6946, allocations: 196.7 kB / 0.759 GB, free: 5.824 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001744/0.6947, allocations: 92 kB / 0.7591 GB, free: 5.734 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001951/0.6967, allocations: 1.013 MB / 0.7601 GB, free: 4.691 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.6967, allocations: 0 / 0.7601 GB, free: 4.691 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.536e-05/0.6968, allocations: 36 kB / 0.7601 GB, free: 4.656 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.947e-05/0.6969, allocations: 20 kB / 0.7601 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001735/0.6986, allocations: 0.7924 MB / 0.7609 GB, free: 3.848 MB / 0.5606 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005641/0.7042, allocations: 4.12 MB / 0.7649 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002082/0.7063, allocations: 0.8648 MB / 0.7658 GB, free: 14.51 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008044/0.7072, allocations: 435.3 kB / 0.7662 GB, free: 14.08 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009514/0.7081, allocations: 1.307 MB / 0.7675 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.731e-05/0.7082, allocations: 39.22 kB / 0.7675 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=80): time 2.605e-06/0.7082, allocations: 0 / 0.7675 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of matching and sorting (n=80): time 0.0059/0.7141, allocations: 1.927 MB / 0.7694 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.792e-05/0.7142, allocations: 64 kB / 0.7694 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001285/0.7155, allocations: 0.7731 MB / 0.7702 GB, free: 9.562 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.987e-05/0.7156, allocations: 37.7 kB / 0.7702 GB, free: 9.52 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003737/0.7159, allocations: 0.4884 MB / 0.7707 GB, free: 9.023 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002424/0.7162, allocations: 276 kB / 0.771 GB, free: 8.75 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002548/0.7165, allocations: 150.6 kB / 0.7711 GB, free: 8.598 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001425/0.7166, allocations: 341.9 kB / 0.7714 GB, free: 8.258 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007077/0.7173, allocations: 313.8 kB / 0.7717 GB, free: 7.953 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007926/0.7181, allocations: 387.1 kB / 0.7721 GB, free: 7.555 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001513/0.7197, allocations: 0.6959 MB / 0.7728 GB, free: 6.848 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.7197, allocations: 0 / 0.7728 GB, free: 6.848 MB / 0.5762 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003112/0.7228, allocations: 1.24 MB / 0.774 GB, free: 5.59 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.7228, allocations: 8.062 kB / 0.774 GB, free: 5.582 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.7228, allocations: 4 kB / 0.774 GB, free: 5.578 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008472/0.7237, allocations: 246.3 kB / 0.7743 GB, free: 5.328 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009422/0.7247, allocations: 203.7 kB / 0.7744 GB, free: 5.129 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006046/0.7307, allocations: 5.236 MB / 0.7796 GB, free: 15.47 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007449/0.7315, allocations: 87.3 kB / 0.7796 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001361/0.7316, allocations: 59.97 kB / 0.7797 GB, free: 15.33 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,1,88.9%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004615/0.7321, allocations: 225.6 kB / 0.7799 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000261/0.7324, allocations: 102.8 kB / 0.78 GB, free: 15 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00445/0.7368, allocations: 1.824 MB / 0.7818 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.7369, allocations: 12 kB / 0.7818 GB, free: 13.14 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/0.7369, allocations: 0 / 0.7818 GB, free: 13.14 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.575e-05/0.7369, allocations: 11.92 kB / 0.7818 GB, free: 13.13 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005215/0.7421, allocations: 2.467 MB / 0.7842 GB, free: 10.56 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.7422, allocations: 0 / 0.7842 GB, free: 10.56 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009652/0.7431, allocations: 199.9 kB / 0.7844 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007665/0.7439, allocations: 254.2 kB / 0.7847 GB, free: 10.11 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.606e-05/0.744, allocations: 31.98 kB / 0.7847 GB, free: 10.07 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006255/0.7503, allocations: 5.235 MB / 0.7898 GB, free: 4.426 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.7503, allocations: 4.031 kB / 0.7898 GB, free: 4.422 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004146/0.7545, allocations: 1.722 MB / 0.7915 GB, free: 2.656 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004344/0.7549, allocations: 259.4 kB / 0.7917 GB, free: 2.383 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001851/0.7551, allocations: 16 kB / 0.7918 GB, free: 2.367 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006421/0.7558, allocations: 47.95 kB / 0.7918 GB, free: 2.32 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001478/0.7559, allocations: 68.56 kB / 0.7919 GB, free: 2.254 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.769e-05/0.756, allocations: 51.92 kB / 0.7919 GB, free: 2.203 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0007306/0.7568, allocations: 0.5356 MB / 0.7924 GB, free: 1.656 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7568, allocations: 0 / 0.7924 GB, free: 1.656 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001879/0.7586, allocations: 467.2 kB / 0.7929 GB, free: 1.199 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (counterFlowNTU.h_out_A,counterFlowNTU.h_out_B,mCV.inlet.m_flow,mCV.dp_int,mCV1.inlet.m_flow,mCV1.dp_int) * 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 (76): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (3,1,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001671/0.7603, allocations: 0.5862 MB / 0.7935 GB, free: 0.6133 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.003327/0.7637, allocations: 1.283 MB / 0.7947 GB, free: 15.29 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.7637, allocations: 0 / 0.7947 GB, free: 15.29 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001838/0.7655, allocations: 0.8981 MB / 0.7956 GB, free: 14.35 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001325/0.7669, allocations: 266.6 kB / 0.7958 GB, free: 14.1 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004253/0.7711, allocations: 2.324 MB / 0.7981 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006813/0.7718, allocations: 1.064 MB / 0.7991 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001532/0.7734, allocations: 0.6306 MB / 0.7998 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004762/0.7739, allocations: 143.3 kB / 0.7999 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of SimCode: time 7.51e-07/0.7739, allocations: 0 / 0.7999 GB, free: 9.871 MB / 0.6075 GB Notification: Performance of Templates: time 0.03351/0.8074, allocations: 19.45 MB / 0.8189 GB, free: 6.516 MB / 0.6231 GB make -j1 -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.makefile (rm -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; mkfifo ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe >> ../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.sim & ./ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches