Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.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_zeroMassFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow") translateModel(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001539/0.001539, allocations: 107 kB / 16.41 MB, free: 6.508 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.001565/0.001565, allocations: 189.7 kB / 17.34 MB, free: 5.742 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.456/1.456, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.779/0.779, allocations: 91.19 MB / 382.4 MB, free: 7.484 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001807/0.001807, allocations: 79.86 kB / 0.5175 GB, free: 4.109 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3654/0.3672, allocations: 67.7 MB / 0.5836 GB, free: 13.87 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow): time 0.5486/0.9159, allocations: 201.8 MB / 0.7807 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01288/0.9288, allocations: 15.04 MB / 0.7954 GB, free: 0.9219 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001236/0.9301, allocations: 44.31 kB / 0.7954 GB, free: 0.9219 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.00135/0.9314, allocations: 0.5125 MB / 0.7959 GB, free: 0.9023 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003267/0.9348, allocations: 1.312 MB / 0.7972 GB, free: 0.8594 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003335/0.9381, allocations: 1.468 MB / 0.7986 GB, free: 0.8164 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001628/0.9397, allocations: 1.352 MB / 0.8 GB, free: 0.7891 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003705/0.9401, allocations: 268.4 kB / 0.8002 GB, free: 0.7109 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00185/0.942, allocations: 1.072 MB / 0.8013 GB, free: 0.6094 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004484/0.9424, allocations: 0.5033 MB / 0.8018 GB, free: 492 kB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.951e-05/0.9426, allocations: 79.38 kB / 0.8018 GB, free: 492 kB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005282/0.9478, allocations: 2.612 MB / 0.8044 GB, free: 432 kB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0003007/0.9482, allocations: 202.5 kB / 0.8046 GB, free: 392 kB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006269/0.9488, allocations: 0.5004 MB / 0.8051 GB, free: 220 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003698/0.9525, allocations: 1.953 MB / 0.807 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.9525, allocations: 3.938 kB / 0.807 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.093e-06/0.9526, allocations: 0 / 0.807 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.275e-05/0.9526, allocations: 0 / 0.807 GB, free: 15.93 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.00279/0.9554, allocations: 1.547 MB / 0.8085 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.9554, allocations: 10.25 kB / 0.8085 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001697/0.9571, allocations: 235.9 kB / 0.8087 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001208/0.9583, allocations: 0.7683 MB / 0.8095 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002157/0.9586, allocations: 183.9 kB / 0.8097 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001168/0.9587, allocations: 76.31 kB / 0.8097 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001463/0.9602, allocations: 0.8249 MB / 0.8105 GB, free: 14.49 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.715e-05/0.9602, allocations: 0 / 0.8105 GB, free: 14.49 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.169e-05/0.9603, allocations: 34.53 kB / 0.8106 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.342e-05/0.9603, allocations: 17.72 kB / 0.8106 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.9616, allocations: 0.6535 MB / 0.8112 GB, free: 14.48 MB / 0.5919 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.004013/0.9656, allocations: 3.178 MB / 0.8143 GB, free: 12.76 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001302/0.9669, allocations: 0.5981 MB / 0.8149 GB, free: 12.67 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006613/0.9676, allocations: 342.9 kB / 0.8152 GB, free: 12.55 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006034/0.9682, allocations: 0.9031 MB / 0.8161 GB, free: 11.51 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.594e-05/0.9682, allocations: 41.62 kB / 0.8162 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=58): time 4.108e-06/0.9683, allocations: 0 / 0.8162 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of matching and sorting (n=58): time 0.004642/0.9729, allocations: 1.686 MB / 0.8178 GB, free: 10.6 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.873e-05/0.973, allocations: 68.28 kB / 0.8179 GB, free: 10.53 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008034/0.9738, allocations: 0.6617 MB / 0.8185 GB, free: 10.15 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.688e-05/0.9738, allocations: 35.11 kB / 0.8185 GB, free: 10.11 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002982/0.9741, allocations: 436.4 kB / 0.819 GB, free: 9.734 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001698/0.9743, allocations: 201.5 kB / 0.8192 GB, free: 9.562 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001945/0.9745, allocations: 115.4 kB / 0.8193 GB, free: 9.492 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001261/0.9747, allocations: 327.1 kB / 0.8196 GB, free: 9.172 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000624/0.9753, allocations: 260.2 kB / 0.8198 GB, free: 9.047 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006581/0.976, allocations: 310.9 kB / 0.8201 GB, free: 8.887 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001213/0.9772, allocations: 0.5466 MB / 0.8207 GB, free: 8.605 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.9772, allocations: 0 / 0.8207 GB, free: 8.605 MB / 0.5919 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002731/0.9799, allocations: 1.029 MB / 0.8217 GB, free: 8.098 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.027e-05/0.98, allocations: 9.078 kB / 0.8217 GB, free: 8.094 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.98, allocations: 3.188 kB / 0.8217 GB, free: 8.094 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007708/0.9808, allocations: 225.5 kB / 0.8219 GB, free: 7.977 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007505/0.9815, allocations: 141.5 kB / 0.822 GB, free: 7.949 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005628/0.9872, allocations: 5.094 MB / 0.827 GB, free: 3.141 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007314/0.9879, allocations: 77.11 kB / 0.8271 GB, free: 3.09 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.437e-05/0.988, allocations: 36.05 kB / 0.8271 GB, free: 3.082 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (58): * Single equations (assignments): 55 * 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,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000418/0.9884, allocations: 210.9 kB / 0.8273 GB, free: 2.906 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001704/0.9886, allocations: 86 kB / 0.8274 GB, free: 2.859 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003495/0.9921, allocations: 1.4 MB / 0.8288 GB, free: 1.848 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.023e-05/0.9922, allocations: 7.938 kB / 0.8288 GB, free: 1.84 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.9922, allocations: 4 kB / 0.8288 GB, free: 1.836 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.646e-06/0.9922, allocations: 3.984 kB / 0.8288 GB, free: 1.832 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004313/0.9965, allocations: 2.076 MB / 0.8308 GB, free: 15.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.9965, allocations: 4 kB / 0.8308 GB, free: 15.68 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007486/0.9973, allocations: 133.1 kB / 0.8309 GB, free: 15.55 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007258/0.998, allocations: 241.6 kB / 0.8312 GB, free: 15.31 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.585e-05/0.9981, allocations: 23.92 kB / 0.8312 GB, free: 15.29 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005678/1.004, allocations: 5.111 MB / 0.8362 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/1.004, allocations: 0 / 0.8362 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00348/1.007, allocations: 1.399 MB / 0.8375 GB, free: 8.355 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003947/1.008, allocations: 211.9 kB / 0.8377 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001697/1.008, allocations: 15.94 kB / 0.8378 GB, free: 8.113 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006047/1.009, allocations: 35.97 kB / 0.8378 GB, free: 8.078 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001436/1.009, allocations: 55.45 kB / 0.8378 GB, free: 8.027 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.64e-05/1.009, allocations: 35.98 kB / 0.8379 GB, free: 7.992 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0007041/1.009, allocations: 483 kB / 0.8383 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.6e-07/1.009, allocations: 0 / 0.8383 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001354/1.011, allocations: 395.3 kB / 0.8387 GB, free: 7.141 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (counterFlowNTU.h_out_A,counterFlowNTU.h_out_B,flowResistanceB.inlet.m_flow,flowResistanceA.inlet.m_flow) * 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 (50): * Single equations (assignments): 47 * 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,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001209/1.012, allocations: 0.5184 MB / 0.8392 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002525/1.015, allocations: 1.062 MB / 0.8403 GB, free: 5.566 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/1.015, allocations: 0 / 0.8403 GB, free: 5.566 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001614/1.016, allocations: 0.7879 MB / 0.841 GB, free: 4.758 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001203/1.017, allocations: 222.6 kB / 0.8412 GB, free: 4.547 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003634/1.021, allocations: 1.828 MB / 0.843 GB, free: 2.676 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006378/1.022, allocations: 0.9854 MB / 0.844 GB, free: 1.66 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000455/1.022, allocations: 135.3 kB / 0.8441 GB, free: 1.527 MB / 0.6075 GB Notification: Performance of SimCode: time 2.004e-06/1.022, allocations: 0 / 0.8441 GB, free: 1.527 MB / 0.6075 GB Notification: Performance of Templates: time 0.0337/1.056, allocations: 26.45 MB / 0.8699 GB, free: 7.145 MB / 0.6387 GB make -j1 -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.makefile (rm -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.pipe ; mkfifo ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.pipe >> ../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.sim & ./ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches