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/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_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.006814/0.006814, allocations: 97.62 kB / 15.73 MB, free: 6.039 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.001238/0.001238, allocations: 201.5 kB / 16.68 MB, free: 5.961 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.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6809/0.6809, allocations: 89.46 MB / 380 MB, free: 10.94 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002359/0.002359, allocations: 79.88 kB / 0.5139 GB, free: 11.75 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1287/0.1311, allocations: 67.3 MB / 0.5796 GB, free: 8.375 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow): time 0.4966/0.6277, allocations: 201.6 MB / 0.7766 GB, free: 2.402 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.01817/0.6459, allocations: 14.95 MB / 0.7912 GB, free: 3.398 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007789/0.6468, allocations: 19.88 kB / 0.7912 GB, free: 3.379 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.001457/0.6483, allocations: 0.5122 MB / 0.7917 GB, free: 2.867 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.0036/0.6519, allocations: 1.252 MB / 0.7929 GB, free: 1.609 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.003756/0.6556, allocations: 1.469 MB / 0.7943 GB, free: 148 kB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.00176/0.6574, allocations: 1.227 MB / 0.7955 GB, free: 14.91 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004476/0.6579, allocations: 252 kB / 0.7958 GB, free: 14.66 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002006/0.6599, allocations: 0.9941 MB / 0.7967 GB, free: 13.66 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007586/0.6607, allocations: 493.8 kB / 0.7972 GB, free: 13.18 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0001795/0.6609, allocations: 76 kB / 0.7973 GB, free: 13.1 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005125/0.666, allocations: 2.605 MB / 0.7998 GB, free: 10.49 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0002259/0.6662, allocations: 199.2 kB / 0.8 GB, free: 10.3 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0005722/0.6668, allocations: 465.6 kB / 0.8005 GB, free: 9.84 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.003717/0.6705, allocations: 1.834 MB / 0.8023 GB, free: 8 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.6706, allocations: 0 / 0.8023 GB, free: 8 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.332e-06/0.6706, allocations: 0 / 0.8023 GB, free: 8 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 3.945e-05/0.6706, allocations: 0 / 0.8023 GB, free: 8 MB / 0.6387 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.002943/0.6736, allocations: 1.432 MB / 0.8037 GB, free: 6.516 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.426e-05/0.6736, allocations: 8.031 kB / 0.8037 GB, free: 6.508 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001512/0.6738, allocations: 118.5 kB / 0.8038 GB, free: 6.383 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001718/0.6755, allocations: 239.2 kB / 0.804 GB, free: 6.148 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009081/0.6764, allocations: 0.5298 MB / 0.8045 GB, free: 5.578 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00024/0.6767, allocations: 184.7 kB / 0.8047 GB, free: 5.371 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001324/0.6768, allocations: 72 kB / 0.8048 GB, free: 5.301 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001623/0.6784, allocations: 0.8297 MB / 0.8056 GB, free: 4.457 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/0.6785, allocations: 0 / 0.8056 GB, free: 4.457 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.019e-05/0.6785, allocations: 32 kB / 0.8056 GB, free: 4.426 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.107e-05/0.6786, allocations: 20 kB / 0.8056 GB, free: 4.406 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001468/0.68, allocations: 0.6519 MB / 0.8063 GB, free: 3.754 MB / 0.6387 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.004148/0.6842, allocations: 3.149 MB / 0.8093 GB, free: 340 kB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001415/0.6856, allocations: 0.6034 MB / 0.8099 GB, free: 15.72 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007204/0.6864, allocations: 342.4 kB / 0.8103 GB, free: 15.38 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006785/0.6871, allocations: 0.903 MB / 0.8111 GB, free: 14.28 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.6871, allocations: 43.06 kB / 0.8112 GB, free: 14.23 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=58): time 2.204e-06/0.6871, allocations: 0 / 0.8112 GB, free: 14.23 MB / 0.6544 GB Notification: Performance of matching and sorting (n=58): time 0.004819/0.6919, allocations: 1.671 MB / 0.8128 GB, free: 12.48 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.134e-05/0.692, allocations: 55.97 kB / 0.8129 GB, free: 12.42 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006417/0.6926, allocations: 0.5187 MB / 0.8134 GB, free: 11.89 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 5.346e-05/0.6927, allocations: 37.7 kB / 0.8134 GB, free: 11.85 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002733/0.693, allocations: 368.8 kB / 0.8138 GB, free: 11.48 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001695/0.6932, allocations: 214.2 kB / 0.814 GB, free: 11.27 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002023/0.6934, allocations: 114.2 kB / 0.8141 GB, free: 11.15 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001769/0.6935, allocations: 370.8 kB / 0.8144 GB, free: 10.78 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006455/0.6942, allocations: 253 kB / 0.8147 GB, free: 10.53 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006849/0.6949, allocations: 316.6 kB / 0.815 GB, free: 10.21 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001311/0.6962, allocations: 0.5406 MB / 0.8155 GB, free: 9.664 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.6962, allocations: 4 kB / 0.8155 GB, free: 9.66 MB / 0.6544 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002861/0.6991, allocations: 1.016 MB / 0.8165 GB, free: 8.629 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.6991, allocations: 4 kB / 0.8165 GB, free: 8.625 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.6991, allocations: 0 / 0.8165 GB, free: 8.625 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008483/0.7, allocations: 234.3 kB / 0.8167 GB, free: 8.387 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007508/0.7007, allocations: 148.6 kB / 0.8169 GB, free: 8.242 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00606/0.7068, allocations: 5.102 MB / 0.8218 GB, free: 2.719 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005633/0.7074, allocations: 79.53 kB / 0.8219 GB, free: 2.641 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.37e-05/0.7075, allocations: 39.92 kB / 0.822 GB, free: 2.602 MB / 0.6544 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.0003105/0.7078, allocations: 193.7 kB / 0.8221 GB, free: 2.402 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001378/0.708, allocations: 71.52 kB / 0.8222 GB, free: 2.332 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003507/0.7115, allocations: 1.386 MB / 0.8236 GB, free: 0.9375 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.7115, allocations: 4 kB / 0.8236 GB, free: 0.9336 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.7115, allocations: 4 kB / 0.8236 GB, free: 0.9297 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.658e-06/0.7115, allocations: 7.922 kB / 0.8236 GB, free: 0.9219 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004267/0.7158, allocations: 2.028 MB / 0.8256 GB, free: 14.79 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.7158, allocations: 0 / 0.8256 GB, free: 14.79 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007361/0.7166, allocations: 132.7 kB / 0.8257 GB, free: 14.66 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007493/0.7173, allocations: 242.4 kB / 0.8259 GB, free: 14.41 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.114e-05/0.7174, allocations: 23.98 kB / 0.8259 GB, free: 14.39 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005947/0.7233, allocations: 5.105 MB / 0.8309 GB, free: 8.867 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.63e-06/0.7234, allocations: 11.94 kB / 0.8309 GB, free: 8.855 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003452/0.7268, allocations: 1.384 MB / 0.8323 GB, free: 7.426 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002794/0.7271, allocations: 200.5 kB / 0.8325 GB, free: 7.211 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.926e-05/0.7272, allocations: 15.95 kB / 0.8325 GB, free: 7.195 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004591/0.7277, allocations: 43.89 kB / 0.8325 GB, free: 7.152 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/0.7278, allocations: 48.38 kB / 0.8326 GB, free: 7.105 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.853e-05/0.7279, allocations: 35.92 kB / 0.8326 GB, free: 7.07 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.000471/0.7284, allocations: 390.8 kB / 0.833 GB, free: 6.691 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.11e-07/0.7284, allocations: 0 / 0.833 GB, free: 6.691 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.00103/0.7294, allocations: 391 kB / 0.8334 GB, free: 6.309 MB / 0.67 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.004572/0.734, allocations: 2.355 MB / 0.8357 GB, free: 3.922 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.002425/0.7365, allocations: 1.068 MB / 0.8367 GB, free: 2.812 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.7365, allocations: 0 / 0.8367 GB, free: 2.812 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001606/0.7381, allocations: 0.7915 MB / 0.8375 GB, free: 1.98 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009525/0.7391, allocations: 198.7 kB / 0.8377 GB, free: 1.797 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2503/0.9894, allocations: 6.514 MB / 0.844 GB, free: 227.8 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003552/0.9898, allocations: 0.9406 MB / 0.8449 GB, free: 227.1 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0008743/0.9906, allocations: 426 kB / 0.8453 GB, free: 227.1 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004446/0.9911, allocations: 337.7 kB / 0.8457 GB, free: 226.9 MB / 0.67 GB Notification: Performance of SimCode: time 6.31e-07/0.9911, allocations: 3.969 kB / 0.8457 GB, free: 226.9 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5764/1.568, allocations: 23.54 MB / 0.8687 GB, free: 220.5 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 12/13.57, allocations: 16.5 kB / 0.8687 GB, free: 220.5 MB / 0.67 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_zeroMassFlow_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_zeroMassFlow.fmu > 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