Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 97.92 kB / 19.73 MB, free: 2.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001776/0.001776, allocations: 220.6 kB / 23.03 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.526/1.526, allocations: 230.6 MB / 256.8 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.8382/0.8382, allocations: 100.3 MB / 413.5 MB, free: 3.438 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002406/0.002406, allocations: 92.84 kB / 0.564 GB, free: 35.96 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1371/0.1395, allocations: 74.46 MB / 0.6367 GB, free: 7.41 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.5957/0.7352, allocations: 187.1 MB / 0.8194 GB, free: 488 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02095/0.7561, allocations: 15.81 MB / 0.8348 GB, free: 6.293 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001811/0.7579, allocations: 74.19 kB / 0.8349 GB, free: 6.25 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002129/0.7601, allocations: 0.5498 MB / 0.8354 GB, free: 5.809 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005966/0.766, allocations: 1.791 MB / 0.8372 GB, free: 4.5 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.006116/0.7722, allocations: 1.688 MB / 0.8388 GB, free: 3.289 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003533/0.7757, allocations: 1.731 MB / 0.8405 GB, free: 2.246 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005191/0.7762, allocations: 191 kB / 0.8407 GB, free: 2.125 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002834/0.779, allocations: 1.256 MB / 0.8419 GB, free: 1.414 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009453/0.78, allocations: 0.6489 MB / 0.8426 GB, free: 0.9727 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001602/0.7801, allocations: 93.22 kB / 0.8427 GB, free: 0.9727 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006687/0.7868, allocations: 3.37 MB / 0.8459 GB, free: 15.43 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0004068/0.7872, allocations: 256.4 kB / 0.8462 GB, free: 15.22 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0006926/0.7879, allocations: 0.496 MB / 0.8467 GB, free: 14.91 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.005963/0.7939, allocations: 2.383 MB / 0.849 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.7939, allocations: 0 / 0.849 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.265e-06/0.7939, allocations: 0 / 0.849 GB, free: 13.46 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.194e-05/0.7939, allocations: 0 / 0.849 GB, free: 13.46 MB / 0.6075 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.003954/0.7979, allocations: 1.827 MB / 0.8508 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.7979, allocations: 16.09 kB / 0.8508 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.038e-05/0.798, allocations: 25.88 kB / 0.8508 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001849/0.7982, allocations: 145 kB / 0.851 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002116/0.8003, allocations: 295.4 kB / 0.8512 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00217/0.8025, allocations: 0.8423 MB / 0.8521 GB, free: 11.21 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003457/0.8028, allocations: 278.7 kB / 0.8523 GB, free: 10.95 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001941/0.803, allocations: 94.73 kB / 0.8524 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002097/0.8051, allocations: 1.009 MB / 0.8534 GB, free: 10.3 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.156e-05/0.8051, allocations: 3.938 kB / 0.8534 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.748e-05/0.8052, allocations: 36.31 kB / 0.8534 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.702e-05/0.8052, allocations: 25.47 kB / 0.8535 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001721/0.807, allocations: 0.7921 MB / 0.8542 GB, free: 9.895 MB / 0.6075 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.005143/0.8121, allocations: 2.759 MB / 0.8569 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002068/0.8142, allocations: 0.8208 MB / 0.8577 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007864/0.815, allocations: 393.8 kB / 0.8581 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003722/0.8153, allocations: 102 kB / 0.8582 GB, free: 7.148 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.737e-05/0.8154, allocations: 41.5 kB / 0.8583 GB, free: 7.102 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=80): time 2.705e-06/0.8154, allocations: 0 / 0.8583 GB, free: 7.102 MB / 0.6075 GB Notification: Performance of matching and sorting (n=80): time 0.005348/0.8207, allocations: 1.713 MB / 0.8599 GB, free: 6.281 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.64e-05/0.8208, allocations: 60.41 kB / 0.86 GB, free: 6.215 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001117/0.8219, allocations: 0.7957 MB / 0.8608 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 9.943e-05/0.822, allocations: 41.7 kB / 0.8608 GB, free: 5.59 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004523/0.8224, allocations: 0.5206 MB / 0.8613 GB, free: 5.062 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002839/0.8227, allocations: 285.5 kB / 0.8616 GB, free: 4.781 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000297/0.823, allocations: 158.6 kB / 0.8617 GB, free: 4.617 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001727/0.8232, allocations: 341.9 kB / 0.8621 GB, free: 4.277 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007519/0.8239, allocations: 313.8 kB / 0.8624 GB, free: 3.973 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008728/0.8248, allocations: 391.1 kB / 0.8627 GB, free: 3.574 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001603/0.8264, allocations: 0.6901 MB / 0.8634 GB, free: 2.871 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.8264, allocations: 7.938 kB / 0.8634 GB, free: 2.863 MB / 0.6075 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003473/0.8299, allocations: 1.237 MB / 0.8646 GB, free: 1.613 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.413e-05/0.8299, allocations: 7.938 kB / 0.8646 GB, free: 1.605 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.8299, allocations: 4 kB / 0.8646 GB, free: 1.602 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009381/0.8309, allocations: 242.4 kB / 0.8649 GB, free: 1.355 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/0.8319, allocations: 203.7 kB / 0.8651 GB, free: 1.156 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006849/0.8387, allocations: 4.903 MB / 0.8698 GB, free: 11.91 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009293/0.8397, allocations: 92.8 kB / 0.8699 GB, free: 11.82 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001408/0.8398, allocations: 55.97 kB / 0.87 GB, free: 11.77 MB / 0.6231 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.0005174/0.8403, allocations: 219.9 kB / 0.8702 GB, free: 11.55 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003255/0.8406, allocations: 111.3 kB / 0.8703 GB, free: 11.44 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004623/0.8453, allocations: 1.821 MB / 0.8721 GB, free: 9.598 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-05/0.8453, allocations: 8 kB / 0.8721 GB, free: 9.59 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.8453, allocations: 3.938 kB / 0.8721 GB, free: 9.586 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.537e-05/0.8453, allocations: 11.92 kB / 0.8721 GB, free: 9.574 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005755/0.8511, allocations: 2.267 MB / 0.8743 GB, free: 7.234 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.8511, allocations: 8.344 kB / 0.8743 GB, free: 7.227 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/0.8521, allocations: 191.8 kB / 0.8745 GB, free: 7.039 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008253/0.8529, allocations: 258.2 kB / 0.8748 GB, free: 6.777 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001039/0.8531, allocations: 35.97 kB / 0.8748 GB, free: 6.742 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006472/0.8595, allocations: 4.887 MB / 0.8796 GB, free: 1.508 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/0.8595, allocations: 8.016 kB / 0.8796 GB, free: 1.5 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004336/0.8639, allocations: 1.728 MB / 0.8813 GB, free: 15.72 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000502/0.8644, allocations: 175 kB / 0.8814 GB, free: 15.55 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001819/0.8646, allocations: 27.98 kB / 0.8814 GB, free: 15.52 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006076/0.8652, allocations: 35.97 kB / 0.8815 GB, free: 15.49 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001859/0.8653, allocations: 76.61 kB / 0.8816 GB, free: 15.41 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.84e-05/0.8654, allocations: 51.97 kB / 0.8816 GB, free: 15.36 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0008289/0.8663, allocations: 0.5604 MB / 0.8822 GB, free: 14.79 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.01e-07/0.8663, allocations: 4 kB / 0.8822 GB, free: 14.79 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001526/0.8678, allocations: 486.7 kB / 0.8826 GB, free: 14.31 MB / 0.6387 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.005478/0.8733, allocations: 2.723 MB / 0.8853 GB, free: 11.54 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002941/0.8762, allocations: 1.209 MB / 0.8865 GB, free: 10.3 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.8762, allocations: 0 / 0.8865 GB, free: 10.3 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001883/0.8781, allocations: 0.8902 MB / 0.8873 GB, free: 9.367 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001442/0.8795, allocations: 272.3 kB / 0.8876 GB, free: 9.113 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01671/0.8963, allocations: 8.631 MB / 0.896 GB, free: 292 kB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005393/0.8968, allocations: 495.2 kB / 0.8965 GB, free: 15.76 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0014/0.8982, allocations: 0.6394 MB / 0.8971 GB, free: 15.12 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008427/0.899, allocations: 0.5187 MB / 0.8976 GB, free: 14.61 MB / 0.6544 GB Notification: Performance of SimCode: time 9.12e-07/0.899, allocations: 4 kB / 0.8976 GB, free: 14.61 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07712/0.9762, allocations: 32.48 MB / 0.9293 GB, free: 14.5 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.39/15.36, allocations: 11.91 kB / 0.9294 GB, free: 14.48 MB / 0.6856 GB " [Timeout remaining time 644] (rm -f ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_fmu --startTime=0 --stopTime=100 --stepSize=0.1 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU.fmu > ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.36568366503343]