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: "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_zeroMassFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_zeroMassFlow",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.007898/0.007898, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001836/0.001836, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.35/1.35, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7263/0.7263, allocations: 91.2 MB / 381.7 MB, free: 7.5 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001598/0.001598, allocations: 79.89 kB / 0.5164 GB, free: 4.613 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3142/0.3158, allocations: 67.69 MB / 0.5825 GB, free: 13.55 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow): time 0.5721/0.8879, allocations: 201.8 MB / 0.7796 GB, free: 1.207 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01948/0.9075, allocations: 15.03 MB / 0.7942 GB, free: 0.9727 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001604/0.9091, allocations: 37.16 kB / 0.7943 GB, free: 0.9727 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002/0.9111, allocations: 0.5196 MB / 0.7948 GB, free: 0.9531 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004593/0.9158, allocations: 1.331 MB / 0.7961 GB, free: 0.9141 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003594/0.9194, allocations: 1.48 MB / 0.7975 GB, free: 0.8711 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001449/0.9209, allocations: 1.35 MB / 0.7988 GB, free: 0.8438 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005348/0.9214, allocations: 275.2 kB / 0.7991 GB, free: 0.7656 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001918/0.9234, allocations: 1.075 MB / 0.8002 GB, free: 0.6602 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005769/0.924, allocations: 0.5076 MB / 0.8007 GB, free: 0.5312 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001534/0.9241, allocations: 79.19 kB / 0.8007 GB, free: 0.5312 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004455/0.9286, allocations: 2.617 MB / 0.8033 GB, free: 480 kB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001694/0.9288, allocations: 199 kB / 0.8035 GB, free: 440 kB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004894/0.9293, allocations: 0.5019 MB / 0.804 GB, free: 268 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003298/0.9326, allocations: 1.959 MB / 0.8059 GB, free: 15.97 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.9326, allocations: 3.938 kB / 0.8059 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.253e-06/0.9326, allocations: 0 / 0.8059 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 3.476e-05/0.9326, allocations: 4.906 kB / 0.8059 GB, free: 15.96 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.003308/0.936, allocations: 1.581 MB / 0.8074 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.936, allocations: 12.69 kB / 0.8074 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001325/0.9361, allocations: 117.4 kB / 0.8076 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00181/0.938, allocations: 246.1 kB / 0.8078 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001364/0.9393, allocations: 0.784 MB / 0.8086 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002025/0.9395, allocations: 180.4 kB / 0.8087 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.9397, allocations: 79.38 kB / 0.8088 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00156/0.9412, allocations: 0.8248 MB / 0.8096 GB, free: 14.42 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.9413, allocations: 7.094 kB / 0.8096 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.112e-05/0.9413, allocations: 32.77 kB / 0.8096 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.199e-05/0.9414, allocations: 18.53 kB / 0.8097 GB, free: 14.41 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001444/0.9428, allocations: 0.6544 MB / 0.8103 GB, free: 14.4 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.004149/0.947, allocations: 3.174 MB / 0.8134 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001453/0.9484, allocations: 0.602 MB / 0.814 GB, free: 12.56 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006876/0.9491, allocations: 347.6 kB / 0.8143 GB, free: 12.44 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005784/0.9497, allocations: 0.9006 MB / 0.8152 GB, free: 11.4 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/0.9498, allocations: 38.56 kB / 0.8152 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=58): time 1.993e-06/0.9498, allocations: 3.938 kB / 0.8152 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of matching and sorting (n=58): time 0.00498/0.9548, allocations: 1.69 MB / 0.8169 GB, free: 10.44 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.434e-05/0.9548, allocations: 58.66 kB / 0.8169 GB, free: 10.38 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008773/0.9557, allocations: 0.663 MB / 0.8176 GB, free: 9.996 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.725e-05/0.9558, allocations: 36.39 kB / 0.8176 GB, free: 9.957 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002986/0.9561, allocations: 439.9 kB / 0.818 GB, free: 9.574 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001687/0.9562, allocations: 215.7 kB / 0.8183 GB, free: 9.391 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001997/0.9564, allocations: 111.7 kB / 0.8184 GB, free: 9.324 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.9566, allocations: 331.2 kB / 0.8187 GB, free: 9 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006665/0.9572, allocations: 258.5 kB / 0.8189 GB, free: 8.879 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007834/0.958, allocations: 312.4 kB / 0.8192 GB, free: 8.711 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001391/0.9594, allocations: 0.5439 MB / 0.8198 GB, free: 8.438 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.9594, allocations: 0 / 0.8198 GB, free: 8.438 MB / 0.5919 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002964/0.9624, allocations: 1.035 MB / 0.8208 GB, free: 7.922 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.9624, allocations: 4.906 kB / 0.8208 GB, free: 7.922 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.9625, allocations: 0 / 0.8208 GB, free: 7.922 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007978/0.9633, allocations: 231.4 kB / 0.821 GB, free: 7.805 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008328/0.9641, allocations: 150.8 kB / 0.8211 GB, free: 7.77 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005769/0.9699, allocations: 5.105 MB / 0.8261 GB, free: 2.953 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005768/0.9705, allocations: 72.88 kB / 0.8262 GB, free: 2.906 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000153/0.9707, allocations: 36.8 kB / 0.8262 GB, free: 2.898 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.000312/0.971, allocations: 210.4 kB / 0.8264 GB, free: 2.723 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001493/0.9711, allocations: 87.59 kB / 0.8265 GB, free: 2.676 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003705/0.9749, allocations: 1.4 MB / 0.8279 GB, free: 1.617 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.9749, allocations: 11.94 kB / 0.8279 GB, free: 1.605 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.9749, allocations: 4 kB / 0.8279 GB, free: 1.602 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.9749, allocations: 3.984 kB / 0.8279 GB, free: 1.598 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004533/0.9794, allocations: 2.062 MB / 0.8299 GB, free: 15.46 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.9795, allocations: 3.984 kB / 0.8299 GB, free: 15.45 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007961/0.9803, allocations: 138.3 kB / 0.83 GB, free: 15.32 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007824/0.981, allocations: 230.3 kB / 0.8303 GB, free: 15.09 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.542e-05/0.9811, allocations: 31.92 kB / 0.8303 GB, free: 15.06 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006009/0.9871, allocations: 5.107 MB / 0.8353 GB, free: 9.559 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/0.9872, allocations: 7.094 kB / 0.8353 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003714/0.9909, allocations: 1.397 MB / 0.8367 GB, free: 8.125 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003858/0.9913, allocations: 223.5 kB / 0.8369 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001261/0.9914, allocations: 12 kB / 0.8369 GB, free: 7.879 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005776/0.992, allocations: 43.95 kB / 0.8369 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001806/0.9922, allocations: 48.38 kB / 0.837 GB, free: 7.789 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.165e-05/0.9923, allocations: 31.98 kB / 0.837 GB, free: 7.758 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0005753/0.9929, allocations: 487 kB / 0.8375 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.61e-07/0.9929, allocations: 0 / 0.8375 GB, free: 7.289 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001194/0.9941, allocations: 398.9 kB / 0.8378 GB, free: 6.898 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.004776/0.9989, allocations: 2.38 MB / 0.8402 GB, free: 4.523 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002517/1.001, allocations: 1.066 MB / 0.8412 GB, free: 3.43 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/1.001, allocations: 0 / 0.8412 GB, free: 3.43 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001751/1.003, allocations: 0.799 MB / 0.842 GB, free: 2.602 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001089/1.004, allocations: 217.8 kB / 0.8422 GB, free: 2.398 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01322/1.018, allocations: 7.138 MB / 0.8492 GB, free: 11.11 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005993/1.018, allocations: 0.9893 MB / 0.8501 GB, free: 10.1 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001061/1.019, allocations: 451.8 kB / 0.8506 GB, free: 9.672 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006183/1.02, allocations: 407.2 kB / 0.8509 GB, free: 9.273 MB / 0.6231 GB Notification: Performance of SimCode: time 1.252e-06/1.02, allocations: 0 / 0.8509 GB, free: 9.273 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06028/1.08, allocations: 25.46 MB / 0.8758 GB, free: 128 kB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.5/13.58, allocations: 7.984 kB / 0.8758 GB, free: 120 kB / 0.6387 GB (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 & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow_res.csv --start-time 0 --stop-time 100 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_zeroMassFlow.fmu > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow_res.csv","/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