Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU") translateModel(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001487/0.001487, allocations: 177.1 kB / 15.78 MB, free: 6.352 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.765/1.765, allocations: 205.4 MB / 221.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009104/0.0009105, allocations: 90.3 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.8753/0.8753, allocations: 90.6 MB / 409.1 MB, free: 15 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003437/0.0003437, allocations: 8 kB / 485.9 MB, free: 2.094 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4421/0.4425, allocations: 66.27 MB / 0.5392 GB, free: 45.66 MB / 426.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.2519/0.6944, allocations: 205.7 MB / 0.7401 GB, free: 13.9 MB / 0.5574 GB Notification: Performance of NFInst.instExpressions: time 0.4294/1.124, allocations: 17.39 MB / 0.757 GB, free: 6.766 MB / 0.5574 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001344/1.125, allocations: 19.69 kB / 0.7571 GB, free: 6.766 MB / 0.5574 GB Notification: Performance of NFTyping.typeComponents: time 0.00137/1.127, allocations: 453.4 kB / 0.7575 GB, free: 6.762 MB / 0.5574 GB Notification: Performance of NFTyping.typeBindings: time 0.004699/1.131, allocations: 1.409 MB / 0.7589 GB, free: 6.75 MB / 0.5574 GB Notification: Performance of NFTyping.typeClassSections: time 0.006928/1.138, allocations: 2.214 MB / 0.761 GB, free: 6.727 MB / 0.5574 GB Notification: Performance of NFFlatten.flatten: time 0.002418/1.141, allocations: 1.481 MB / 0.7625 GB, free: 6.727 MB / 0.5574 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005389/1.141, allocations: 225.6 kB / 0.7627 GB, free: 6.676 MB / 0.5574 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002115/1.143, allocations: 0.9593 MB / 0.7636 GB, free: 6.664 MB / 0.5574 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005772/1.144, allocations: 496.6 kB / 0.7641 GB, free: 6.664 MB / 0.5574 GB Notification: Performance of NFPackage.collectConstants: time 8.492e-05/1.144, allocations: 40.62 kB / 0.7641 GB, free: 6.664 MB / 0.5574 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01247/1.157, allocations: 4.97 MB / 0.769 GB, free: 6.621 MB / 0.5574 GB Notification: Performance of NFScalarize.scalarize: time 0.0004898/1.157, allocations: 156.1 kB / 0.7691 GB, free: 6.621 MB / 0.5574 GB Notification: Performance of NFVerifyModel.verify: time 0.001099/1.158, allocations: 209.9 kB / 0.7693 GB, free: 22.59 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.00614/1.164, allocations: 1.98 MB / 0.7713 GB, free: 22.45 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/1.164, allocations: 1.906 kB / 0.7713 GB, free: 22.45 MB / 0.573 GB Notification: Performance of FrontEnd: time 3.016e-06/1.164, allocations: 0 / 0.7713 GB, free: 22.45 MB / 0.573 GB Notification: Performance of Transformations before backend: time 1.672e-05/1.164, allocations: 0 / 0.7713 GB, free: 22.45 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.00484/1.169, allocations: 1.602 MB / 0.7728 GB, free: 21.55 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.96e-05/1.169, allocations: 9 kB / 0.7728 GB, free: 21.55 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001846/1.171, allocations: 236.5 kB / 0.7731 GB, free: 21.5 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001225/1.172, allocations: 0.5609 MB / 0.7736 GB, free: 21.23 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002832/1.173, allocations: 199.3 kB / 0.7738 GB, free: 21.1 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001892/1.173, allocations: 85.73 kB / 0.7739 GB, free: 21.1 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002405/1.175, allocations: 0.9897 MB / 0.7749 GB, free: 21 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.274e-05/1.175, allocations: 1.219 kB / 0.7749 GB, free: 21 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001024/1.175, allocations: 31 kB / 0.7749 GB, free: 21 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-05/1.176, allocations: 23.59 kB / 0.7749 GB, free: 21 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002054/1.178, allocations: 0.7875 MB / 0.7757 GB, free: 20.98 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005474/1.183, allocations: 3.679 MB / 0.7793 GB, free: 19 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002177/1.185, allocations: 0.9406 MB / 0.7802 GB, free: 18.96 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009039/1.186, allocations: 453.7 kB / 0.7806 GB, free: 18.95 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003157/1.189, allocations: 3.106 MB / 0.7837 GB, free: 15.84 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.25e-05/1.189, allocations: 38 kB / 0.7837 GB, free: 15.8 MB / 0.573 GB Notification: Performance of pre-optimization done (n=83): time 2.605e-06/1.189, allocations: 4 kB / 0.7837 GB, free: 15.8 MB / 0.573 GB Notification: Performance of matching and sorting (n=83): time 0.006326/1.196, allocations: 2.212 MB / 0.7859 GB, free: 15.36 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.829e-05/1.196, allocations: 59.75 kB / 0.7859 GB, free: 15.3 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007993/1.197, allocations: 493.5 kB / 0.7864 GB, free: 15.19 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 8.425e-05/1.197, allocations: 36.77 kB / 0.7864 GB, free: 15.16 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002779/1.197, allocations: 386.8 kB / 0.7868 GB, free: 14.98 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002366/1.197, allocations: 285.1 kB / 0.7871 GB, free: 14.79 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.018e-05/1.197, allocations: 14.78 kB / 0.7871 GB, free: 14.79 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001952/1.198, allocations: 395.5 kB / 0.7874 GB, free: 14.47 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008326/1.198, allocations: 344.6 kB / 0.7878 GB, free: 14.47 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008073/1.199, allocations: 419.7 kB / 0.7882 GB, free: 14.42 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000828/1.2, allocations: 370.7 kB / 0.7885 GB, free: 14.41 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/1.2, allocations: 0 / 0.7885 GB, free: 14.41 MB / 0.573 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003528/1.204, allocations: 1.348 MB / 0.7898 GB, free: 14.25 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/1.204, allocations: 6.125 kB / 0.7899 GB, free: 14.25 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/1.204, allocations: 1.031 kB / 0.7899 GB, free: 14.25 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008719/1.204, allocations: 282.2 kB / 0.7901 GB, free: 14.22 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008995/1.205, allocations: 197.3 kB / 0.7903 GB, free: 14.21 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005889/1.211, allocations: 5.021 MB / 0.7952 GB, free: 10.39 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001094/1.212, allocations: 106 kB / 0.7953 GB, free: 10.36 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001508/1.213, allocations: 61.33 kB / 0.7954 GB, free: 10.36 MB / 0.573 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 (80): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,88.9%) 1,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005472/1.213, allocations: 216 kB / 0.7956 GB, free: 10.23 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/1.213, allocations: 70.19 kB / 0.7956 GB, free: 10.2 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004143/1.217, allocations: 1.636 MB / 0.7972 GB, free: 10.01 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-05/1.217, allocations: 9.406 kB / 0.7973 GB, free: 10.01 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/1.217, allocations: 1.969 kB / 0.7973 GB, free: 10.01 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/1.218, allocations: 9.344 kB / 0.7973 GB, free: 10.01 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004982/1.223, allocations: 2.52 MB / 0.7997 GB, free: 9.578 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/1.223, allocations: 4.062 kB / 0.7997 GB, free: 9.574 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009573/1.224, allocations: 204 kB / 0.7999 GB, free: 9.574 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008542/1.224, allocations: 277.6 kB / 0.8002 GB, free: 9.539 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001079/1.224, allocations: 43.66 kB / 0.8002 GB, free: 9.539 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005807/1.23, allocations: 5.019 MB / 0.8051 GB, free: 5.719 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/1.23, allocations: 7.656 kB / 0.8051 GB, free: 5.715 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00437/1.235, allocations: 1.896 MB / 0.807 GB, free: 5.434 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003975/1.235, allocations: 156.7 kB / 0.8071 GB, free: 5.289 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001114/1.235, allocations: 17.19 kB / 0.8072 GB, free: 5.289 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00059/1.236, allocations: 65.28 kB / 0.8072 GB, free: 5.281 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001674/1.236, allocations: 80.36 kB / 0.8073 GB, free: 5.273 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001388/1.236, allocations: 62.77 kB / 0.8074 GB, free: 5.273 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.000413/1.237, allocations: 339.2 kB / 0.8077 GB, free: 5.191 MB / 0.573 GB Notification: Performance of sort global known variables: time 4.71e-07/1.237, allocations: 0 / 0.8077 GB, free: 5.191 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.003029/1.24, allocations: 0.6849 MB / 0.8083 GB, free: 5.09 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (81): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 4,(1,100.0%) 4,(3,88.9%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003335/1.243, allocations: 1.035 MB / 0.8094 GB, free: 4.816 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.003431/1.246, allocations: 1.44 MB / 0.8108 GB, free: 4.371 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/1.246, allocations: 0.6562 kB / 0.8108 GB, free: 4.371 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.002007/1.248, allocations: 1.061 MB / 0.8118 GB, free: 3.949 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00143/1.25, allocations: 201.7 kB / 0.812 GB, free: 3.934 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004882/1.255, allocations: 2.545 MB / 0.8145 GB, free: 2.637 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008948/1.256, allocations: 0.9918 MB / 0.8154 GB, free: 1.918 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000754/1.257, allocations: 144.3 kB / 0.8156 GB, free: 1.902 MB / 0.573 GB Notification: Performance of SimCode: time 2.245e-06/1.257, allocations: 0 / 0.8156 GB, free: 1.902 MB / 0.573 GB Notification: Performance of Templates: time 0.04592/1.302, allocations: 30.34 MB / 0.8452 GB, free: 11.34 MB / 0.6042 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches