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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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.006555/0.006555, allocations: 100.2 kB / 15.73 MB, free: 6.047 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.001656/0.001656, allocations: 195.4 kB / 16.67 MB, free: 5.949 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.318/1.318, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6856/0.6856, allocations: 89.46 MB / 380 MB, free: 8.582 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002186/0.002186, allocations: 83.86 kB / 0.5139 GB, free: 7.164 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2973/0.2995, allocations: 67.3 MB / 0.5796 GB, free: 15.25 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.5132/0.8128, allocations: 214.1 MB / 0.7887 GB, free: 1.016 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01383/0.8267, allocations: 17.33 MB / 0.8056 GB, free: 0.6172 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008925/0.8276, allocations: 20.12 kB / 0.8056 GB, free: 0.6172 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001551/0.8292, allocations: 0.6094 MB / 0.8062 GB, free: 0.5898 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003949/0.8332, allocations: 1.661 MB / 0.8079 GB, free: 0.5234 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003874/0.837, allocations: 1.667 MB / 0.8095 GB, free: 480 kB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001783/0.8388, allocations: 1.522 MB / 0.811 GB, free: 436 kB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003745/0.8392, allocations: 290.7 kB / 0.8113 GB, free: 352 kB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001858/0.8411, allocations: 1.098 MB / 0.8123 GB, free: 236 kB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005529/0.8417, allocations: 0.5981 MB / 0.8129 GB, free: 100 kB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001166/0.8418, allocations: 99.59 kB / 0.813 GB, free: 100 kB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005777/0.8476, allocations: 3.424 MB / 0.8164 GB, free: 0 / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002225/0.8478, allocations: 238.2 kB / 0.8166 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0005653/0.8484, allocations: 0.5663 MB / 0.8171 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003586/0.852, allocations: 2.214 MB / 0.8193 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.852, allocations: 0 / 0.8193 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.253e-06/0.852, allocations: 0 / 0.8193 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.636e-05/0.852, allocations: 0 / 0.8193 GB, free: 14.89 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: 227 * Number of variables: 227 Notification: Performance of Generate backend data structure: time 0.003008/0.855, allocations: 1.703 MB / 0.821 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.8551, allocations: 17.66 kB / 0.821 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001634/0.8552, allocations: 143.8 kB / 0.8211 GB, free: 13.49 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001884/0.8571, allocations: 275.9 kB / 0.8214 GB, free: 13.35 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001055/0.8582, allocations: 0.6363 MB / 0.822 GB, free: 12.85 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002412/0.8585, allocations: 201 kB / 0.8222 GB, free: 12.68 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001477/0.8586, allocations: 91.44 kB / 0.8223 GB, free: 12.65 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001847/0.8605, allocations: 1.01 MB / 0.8233 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.316e-05/0.8605, allocations: 2.25 kB / 0.8233 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.984e-05/0.8606, allocations: 38.5 kB / 0.8233 GB, free: 12.01 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.661e-05/0.8606, allocations: 22 kB / 0.8233 GB, free: 12.01 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001674/0.8623, allocations: 0.7944 MB / 0.8241 GB, free: 11.64 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.004887/0.8672, allocations: 4.054 MB / 0.8281 GB, free: 8.062 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001906/0.8691, allocations: 0.8729 MB / 0.8289 GB, free: 7.609 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000849/0.87, allocations: 436.6 kB / 0.8293 GB, free: 7.398 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001015/0.871, allocations: 1.3 MB / 0.8306 GB, free: 5.867 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/0.8711, allocations: 45.25 kB / 0.8306 GB, free: 5.82 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=80): time 2.575e-06/0.8711, allocations: 0 / 0.8306 GB, free: 5.82 MB / 0.5919 GB Notification: Performance of matching and sorting (n=80): time 0.005424/0.8765, allocations: 1.911 MB / 0.8325 GB, free: 3.859 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.752e-05/0.8766, allocations: 62.59 kB / 0.8326 GB, free: 3.789 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007478/0.8773, allocations: 0.61 MB / 0.8332 GB, free: 3.172 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.176e-05/0.8774, allocations: 45.69 kB / 0.8332 GB, free: 3.121 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003281/0.8777, allocations: 435 kB / 0.8336 GB, free: 2.691 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002289/0.8779, allocations: 290.4 kB / 0.8339 GB, free: 2.41 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000263/0.8782, allocations: 158.6 kB / 0.834 GB, free: 2.25 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001455/0.8784, allocations: 334 kB / 0.8344 GB, free: 1.918 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007393/0.8791, allocations: 313.8 kB / 0.8347 GB, free: 1.609 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007982/0.8799, allocations: 391.1 kB / 0.835 GB, free: 1.211 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001528/0.8815, allocations: 0.6952 MB / 0.8357 GB, free: 0.5078 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.8815, allocations: 3.938 kB / 0.8357 GB, free: 0.5039 MB / 0.5919 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003147/0.8846, allocations: 1.218 MB / 0.8369 GB, free: 15.29 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.8847, allocations: 13.17 kB / 0.8369 GB, free: 15.28 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.8847, allocations: 4 kB / 0.8369 GB, free: 15.27 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008611/0.8855, allocations: 254.3 kB / 0.8372 GB, free: 15.02 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009312/0.8865, allocations: 203.5 kB / 0.8374 GB, free: 14.82 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006387/0.8929, allocations: 5.227 MB / 0.8425 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000634/0.8935, allocations: 83.53 kB / 0.8425 GB, free: 9.113 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001127/0.8936, allocations: 59.97 kB / 0.8426 GB, free: 9.055 MB / 0.6075 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.0003953/0.8941, allocations: 218.3 kB / 0.8428 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001702/0.8942, allocations: 87.44 kB / 0.8429 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004188/0.8984, allocations: 1.811 MB / 0.8447 GB, free: 6.934 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-05/0.8984, allocations: 11.98 kB / 0.8447 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.8985, allocations: 0 / 0.8447 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.8985, allocations: 7.984 kB / 0.8447 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004898/0.9034, allocations: 2.426 MB / 0.847 GB, free: 4.43 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.9034, allocations: 0 / 0.847 GB, free: 4.43 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009503/0.9043, allocations: 191.6 kB / 0.8472 GB, free: 4.25 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007916/0.9052, allocations: 258.4 kB / 0.8475 GB, free: 3.988 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.46e-05/0.9052, allocations: 35.92 kB / 0.8475 GB, free: 3.953 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006208/0.9114, allocations: 5.235 MB / 0.8526 GB, free: 14.32 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.9115, allocations: 0 / 0.8526 GB, free: 14.32 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003909/0.9154, allocations: 1.704 MB / 0.8543 GB, free: 12.59 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003634/0.9158, allocations: 244.2 kB / 0.8545 GB, free: 12.33 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001232/0.9159, allocations: 24.27 kB / 0.8545 GB, free: 12.3 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005241/0.9164, allocations: 39.97 kB / 0.8546 GB, free: 12.27 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001341/0.9166, allocations: 64.56 kB / 0.8546 GB, free: 12.2 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.305e-05/0.9167, allocations: 63.97 kB / 0.8547 GB, free: 12.14 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0005479/0.9172, allocations: 443 kB / 0.8551 GB, free: 11.71 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.8e-07/0.9172, allocations: 4 kB / 0.8551 GB, free: 11.71 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001275/0.9185, allocations: 478.8 kB / 0.8556 GB, free: 11.24 MB / 0.6231 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.005196/0.9237, allocations: 2.721 MB / 0.8582 GB, free: 8.527 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002742/0.9265, allocations: 1.251 MB / 0.8595 GB, free: 7.25 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.9265, allocations: 0 / 0.8595 GB, free: 7.25 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001846/0.9283, allocations: 0.9055 MB / 0.8604 GB, free: 6.324 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001193/0.9295, allocations: 248.6 kB / 0.8606 GB, free: 6.09 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01403/0.9436, allocations: 7.813 MB / 0.8682 GB, free: 14.13 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006422/0.9442, allocations: 1.009 MB / 0.8692 GB, free: 13.1 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001246/0.9455, allocations: 0.6116 MB / 0.8698 GB, free: 12.49 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006849/0.9462, allocations: 439.2 kB / 0.8702 GB, free: 12.06 MB / 0.6387 GB Notification: Performance of SimCode: time 9.42e-07/0.9462, allocations: 0 / 0.8702 GB, free: 12.06 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2624/1.209, allocations: 28.12 MB / 0.8977 GB, free: 216 kB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/13.12, allocations: 33.34 kB / 0.8977 GB, free: 188 kB / 0.6544 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