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: "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001185/0.001185, allocations: 194.1 kB / 16.25 MB, free: 6.629 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.165/1.165, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.5905/0.5905, allocations: 91.2 MB / 381.3 MB, free: 9.535 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 81.56 kB / 459.9 MB, free: 23.25 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1077, allocations: 67.69 MB / 0.5152 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.3905/0.4983, allocations: 212.5 MB / 0.7228 GB, free: 11.07 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01726/0.5156, allocations: 17.39 MB / 0.7398 GB, free: 9.621 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009961/0.5166, allocations: 55.62 kB / 0.7398 GB, free: 9.566 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001351/0.518, allocations: 0.5362 MB / 0.7404 GB, free: 9.027 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.003525/0.5215, allocations: 1.575 MB / 0.7419 GB, free: 7.445 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.00344/0.525, allocations: 1.538 MB / 0.7434 GB, free: 5.906 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001619/0.5266, allocations: 1.658 MB / 0.745 GB, free: 4.242 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003842/0.527, allocations: 306.8 kB / 0.7453 GB, free: 3.934 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0018/0.5288, allocations: 1.214 MB / 0.7465 GB, free: 2.715 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005457/0.5294, allocations: 0.6258 MB / 0.7471 GB, free: 2.086 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001111/0.5295, allocations: 96 kB / 0.7472 GB, free: 1.992 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005404/0.5349, allocations: 3.708 MB / 0.7508 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002021/0.5351, allocations: 254.9 kB / 0.7511 GB, free: 14.03 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004861/0.5356, allocations: 0.6138 MB / 0.7517 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.003117/0.5387, allocations: 2.318 MB / 0.7539 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.5388, allocations: 0 / 0.7539 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of FrontEnd: time 5.07e-06/0.5388, allocations: 7.984 kB / 0.7539 GB, free: 11.08 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.095e-05/0.5388, allocations: 0 / 0.7539 GB, free: 11.08 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.002825/0.5416, allocations: 1.811 MB / 0.7557 GB, free: 9.211 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.5417, allocations: 12.03 kB / 0.7557 GB, free: 9.199 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001359/0.5418, allocations: 135.6 kB / 0.7558 GB, free: 9.059 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001806/0.5436, allocations: 290 kB / 0.7561 GB, free: 8.773 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001119/0.5447, allocations: 0.8078 MB / 0.7569 GB, free: 7.922 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001936/0.5449, allocations: 200.7 kB / 0.7571 GB, free: 7.703 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001415/0.5451, allocations: 92 kB / 0.7572 GB, free: 7.613 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001717/0.5468, allocations: 1.013 MB / 0.7582 GB, free: 6.57 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.5468, allocations: 0 / 0.7582 GB, free: 6.57 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.162e-05/0.5469, allocations: 36 kB / 0.7582 GB, free: 6.535 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.786e-05/0.547, allocations: 24 kB / 0.7582 GB, free: 6.512 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001528/0.5485, allocations: 0.7885 MB / 0.759 GB, free: 5.727 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.004312/0.5528, allocations: 4.116 MB / 0.763 GB, free: 1.262 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001738/0.5546, allocations: 0.8628 MB / 0.7639 GB, free: 400 kB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007239/0.5553, allocations: 435.3 kB / 0.7643 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007965/0.5561, allocations: 1.307 MB / 0.7656 GB, free: 14.36 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.5561, allocations: 47.22 kB / 0.7656 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=80): time 2.285e-06/0.5562, allocations: 0 / 0.7656 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of matching and sorting (n=80): time 0.004877/0.561, allocations: 1.923 MB / 0.7675 GB, free: 12.31 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.382e-05/0.5611, allocations: 60.06 kB / 0.7675 GB, free: 12.24 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007823/0.5619, allocations: 0.7692 MB / 0.7683 GB, free: 11.45 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 6.346e-05/0.562, allocations: 41.7 kB / 0.7683 GB, free: 11.4 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003084/0.5623, allocations: 0.4884 MB / 0.7688 GB, free: 10.91 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001921/0.5625, allocations: 283.9 kB / 0.7691 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002368/0.5627, allocations: 154.6 kB / 0.7692 GB, free: 10.47 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001048/0.5628, allocations: 333.9 kB / 0.7695 GB, free: 10.14 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006478/0.5635, allocations: 309.8 kB / 0.7698 GB, free: 9.836 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006944/0.5642, allocations: 395.1 kB / 0.7702 GB, free: 9.434 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001327/0.5655, allocations: 0.694 MB / 0.7709 GB, free: 8.727 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.5655, allocations: 0 / 0.7709 GB, free: 8.727 MB / 0.5762 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002822/0.5684, allocations: 1.24 MB / 0.7721 GB, free: 7.465 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.5684, allocations: 4 kB / 0.7721 GB, free: 7.461 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.5684, allocations: 0 / 0.7721 GB, free: 7.461 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000748/0.5691, allocations: 254.4 kB / 0.7724 GB, free: 7.203 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008652/0.57, allocations: 195.8 kB / 0.7725 GB, free: 7.012 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005248/0.5753, allocations: 5.238 MB / 0.7777 GB, free: 1.355 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006199/0.5759, allocations: 99.28 kB / 0.7777 GB, free: 1.258 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.153e-05/0.576, allocations: 47.98 kB / 0.7778 GB, free: 1.211 MB / 0.5762 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.0003373/0.5764, allocations: 231.2 kB / 0.778 GB, free: 0.9766 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001594/0.5765, allocations: 98.69 kB / 0.7781 GB, free: 0.8789 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003965/0.5805, allocations: 1.821 MB / 0.7799 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.5805, allocations: 8 kB / 0.7799 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.5805, allocations: 4 kB / 0.7799 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.5805, allocations: 7.922 kB / 0.7799 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004337/0.5849, allocations: 2.482 MB / 0.7823 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.5849, allocations: 4 kB / 0.7823 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009159/0.5858, allocations: 191.8 kB / 0.7825 GB, free: 12.24 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006923/0.5865, allocations: 255.3 kB / 0.7828 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.17e-05/0.5866, allocations: 35.97 kB / 0.7828 GB, free: 11.95 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005138/0.5918, allocations: 5.236 MB / 0.7879 GB, free: 6.297 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.5918, allocations: 4 kB / 0.7879 GB, free: 6.293 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003488/0.5953, allocations: 1.729 MB / 0.7896 GB, free: 4.523 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000305/0.5956, allocations: 247.6 kB / 0.7898 GB, free: 4.262 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001277/0.5957, allocations: 20 kB / 0.7899 GB, free: 4.242 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005733/0.5963, allocations: 51.95 kB / 0.7899 GB, free: 4.191 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/0.5964, allocations: 72.5 kB / 0.79 GB, free: 4.121 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.043e-05/0.5965, allocations: 47.97 kB / 0.79 GB, free: 4.074 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0005719/0.5971, allocations: 0.5356 MB / 0.7905 GB, free: 3.527 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5971, allocations: 0 / 0.7905 GB, free: 3.527 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001121/0.5982, allocations: 479 kB / 0.791 GB, free: 3.059 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.004602/0.6028, allocations: 2.745 MB / 0.7937 GB, free: 276 kB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002682/0.6055, allocations: 1.275 MB / 0.7949 GB, free: 14.95 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.6056, allocations: 0 / 0.7949 GB, free: 14.95 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001552/0.6071, allocations: 0.9059 MB / 0.7958 GB, free: 14.01 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001103/0.6082, allocations: 259.3 kB / 0.7961 GB, free: 13.77 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01373/0.622, allocations: 9.326 MB / 0.8052 GB, free: 4.105 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005378/0.6225, allocations: 1.064 MB / 0.8062 GB, free: 3.016 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.00138/0.6239, allocations: 0.6384 MB / 0.8068 GB, free: 2.375 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007428/0.6247, allocations: 0.4992 MB / 0.8073 GB, free: 1.875 MB / 0.6075 GB Notification: Performance of SimCode: time 3.31e-07/0.6247, allocations: 0 / 0.8073 GB, free: 1.875 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.844/1.469, allocations: 29.78 MB / 0.8364 GB, free: 242.1 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001857/1.469, allocations: 274.9 kB / 0.8367 GB, free: 241.7 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.022/4.49, allocations: 3.75 kB / 0.8367 GB, free: 241.7 MB / 0.6231 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches