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: "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU,fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009636/0.0009634, allocations: 180.2 kB / 15.45 MB, free: 6.227 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.101/1.101, allocations: 205 MB / 221.2 MB, free: 1.855 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006576/0.0006576, allocations: 94.22 kB / 269.2 MB, free: 1.797 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.4586/0.4586, allocations: 90.53 MB / 407.6 MB, free: 15.1 MB / 314.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002473/0.0002474, allocations: 12 kB / 484.3 MB, free: 3.496 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09165/0.09191, allocations: 65.82 MB / 0.5372 GB, free: 1.609 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.3582/0.4501, allocations: 221.9 MB / 0.7539 GB, free: 9.926 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.2367/0.6869, allocations: 18.92 MB / 0.7724 GB, free: 1.715 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008017/0.6877, allocations: 22.38 kB / 0.7724 GB, free: 1.715 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.001103/0.6888, allocations: 478.5 kB / 0.7729 GB, free: 1.711 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.003123/0.692, allocations: 1.453 MB / 0.7743 GB, free: 1.699 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.005374/0.6973, allocations: 2.401 MB / 0.7766 GB, free: 1.668 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.001557/0.6989, allocations: 1.673 MB / 0.7783 GB, free: 1.668 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003069/0.6992, allocations: 249.5 kB / 0.7785 GB, free: 1.598 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001569/0.7008, allocations: 1.017 MB / 0.7795 GB, free: 1.586 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004751/0.7013, allocations: 0.5102 MB / 0.78 GB, free: 1.586 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 8.641e-05/0.7014, allocations: 41.91 kB / 0.78 GB, free: 1.586 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008039/0.7094, allocations: 5.445 MB / 0.7854 GB, free: 1.523 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0001255/0.7096, allocations: 171 kB / 0.7855 GB, free: 1.523 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0003946/0.71, allocations: 481.5 kB / 0.786 GB, free: 1.52 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.003535/0.7135, allocations: 2.943 MB / 0.7889 GB, free: 1.34 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.7135, allocations: 1.438 kB / 0.7889 GB, free: 1.34 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.693e-06/0.7135, allocations: 3.656 kB / 0.7889 GB, free: 1.34 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 9.488e-06/0.7135, allocations: 0 / 0.7889 GB, free: 1.34 MB / 0.5573 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.002338/0.7159, allocations: 1.592 MB / 0.7904 GB, free: 16.45 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.7159, allocations: 10.97 kB / 0.7904 GB, free: 16.45 MB / 0.573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001141/0.7161, allocations: 128.3 kB / 0.7906 GB, free: 16.41 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001433/0.7175, allocations: 239.9 kB / 0.7908 GB, free: 16.36 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006738/0.7182, allocations: 0.5799 MB / 0.7913 GB, free: 16.07 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001794/0.7184, allocations: 199 kB / 0.7915 GB, free: 15.93 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001154/0.7185, allocations: 89.78 kB / 0.7916 GB, free: 15.93 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001533/0.72, allocations: 0.9883 MB / 0.7926 GB, free: 15.82 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.7201, allocations: 6.844 kB / 0.7926 GB, free: 15.82 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.648e-05/0.7201, allocations: 35.11 kB / 0.7926 GB, free: 15.82 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.593e-05/0.7202, allocations: 23.88 kB / 0.7927 GB, free: 15.82 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001536/0.7217, allocations: 0.7869 MB / 0.7934 GB, free: 15.81 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003751/0.7255, allocations: 3.688 MB / 0.797 GB, free: 13.82 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001656/0.7271, allocations: 0.9302 MB / 0.7979 GB, free: 13.78 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006524/0.7278, allocations: 461.7 kB / 0.7984 GB, free: 13.77 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002104/0.7299, allocations: 3.111 MB / 0.8014 GB, free: 10.67 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.778e-05/0.73, allocations: 37.81 kB / 0.8014 GB, free: 10.63 MB / 0.573 GB Notification: Performance of pre-optimization done (n=83): time 3.106e-06/0.73, allocations: 0 / 0.8014 GB, free: 10.63 MB / 0.573 GB Notification: Performance of matching and sorting (n=83): time 0.004643/0.7346, allocations: 2.226 MB / 0.8036 GB, free: 10.17 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.415e-05/0.7347, allocations: 60.66 kB / 0.8037 GB, free: 10.11 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004139/0.7351, allocations: 496.4 kB / 0.8041 GB, free: 9.992 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 5.249e-05/0.7351, allocations: 40.27 kB / 0.8042 GB, free: 9.961 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001735/0.7353, allocations: 382.6 kB / 0.8046 GB, free: 9.785 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001633/0.7355, allocations: 285.5 kB / 0.8048 GB, free: 9.602 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.425e-05/0.7355, allocations: 13.5 kB / 0.8048 GB, free: 9.602 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.7357, allocations: 393 kB / 0.8052 GB, free: 9.281 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005999/0.7363, allocations: 348.3 kB / 0.8055 GB, free: 9.277 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006396/0.7369, allocations: 424.9 kB / 0.8059 GB, free: 9.223 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001274/0.7382, allocations: 0.7685 MB / 0.8067 GB, free: 9.156 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.7382, allocations: 0 / 0.8067 GB, free: 9.156 MB / 0.573 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002614/0.7408, allocations: 1.351 MB / 0.808 GB, free: 9.004 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.7409, allocations: 5.812 kB / 0.808 GB, free: 9.004 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.7409, allocations: 0 / 0.808 GB, free: 9.004 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006983/0.7416, allocations: 284.8 kB / 0.8083 GB, free: 8.969 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007186/0.7423, allocations: 205.5 kB / 0.8085 GB, free: 8.965 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004645/0.747, allocations: 5.019 MB / 0.8134 GB, free: 5.137 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005185/0.7475, allocations: 105.1 kB / 0.8135 GB, free: 5.098 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.263e-05/0.7476, allocations: 58.05 kB / 0.8135 GB, free: 5.098 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 (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.0002601/0.7478, allocations: 215.1 kB / 0.8138 GB, free: 4.98 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001285/0.748, allocations: 77.06 kB / 0.8138 GB, free: 4.938 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003572/0.7516, allocations: 1.627 MB / 0.8154 GB, free: 4.742 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.513e-06/0.7516, allocations: 8.938 kB / 0.8154 GB, free: 4.742 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.7516, allocations: 6.031 kB / 0.8154 GB, free: 4.742 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.7516, allocations: 2.203 kB / 0.8154 GB, free: 4.742 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003923/0.7555, allocations: 2.537 MB / 0.8179 GB, free: 4.309 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.7555, allocations: 0 / 0.8179 GB, free: 4.309 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007773/0.7563, allocations: 205.5 kB / 0.8181 GB, free: 4.309 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006001/0.7569, allocations: 287.3 kB / 0.8184 GB, free: 4.266 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.161e-05/0.757, allocations: 43.17 kB / 0.8184 GB, free: 4.266 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004434/0.7615, allocations: 5.023 MB / 0.8233 GB, free: 444 kB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.7615, allocations: 0 / 0.8233 GB, free: 444 kB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003348/0.7648, allocations: 1.899 MB / 0.8252 GB, free: 24 kB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001705/0.765, allocations: 171.8 kB / 0.8253 GB, free: 15.86 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.513e-05/0.7651, allocations: 16.47 kB / 0.8254 GB, free: 15.86 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004852/0.7656, allocations: 68.17 kB / 0.8254 GB, free: 15.84 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.7658, allocations: 77.16 kB / 0.8255 GB, free: 15.82 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.459e-05/0.7659, allocations: 62.75 kB / 0.8256 GB, free: 15.81 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0003052/0.7662, allocations: 343.2 kB / 0.8259 GB, free: 15.68 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7662, allocations: 0 / 0.8259 GB, free: 15.68 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.001512/0.7677, allocations: 0.6865 MB / 0.8266 GB, free: 15.55 MB / 0.5886 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 (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.005146/0.7728, allocations: 3.378 MB / 0.8299 GB, free: 14.2 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.002344/0.7752, allocations: 1.441 MB / 0.8313 GB, free: 13.59 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.7752, allocations: 0 / 0.8313 GB, free: 13.59 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.001491/0.7767, allocations: 1.072 MB / 0.8323 GB, free: 13.06 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00087/0.7776, allocations: 197.8 kB / 0.8325 GB, free: 13.01 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01126/0.7889, allocations: 8.293 MB / 0.8406 GB, free: 9.09 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004871/0.7894, allocations: 0.9987 MB / 0.8416 GB, free: 8.266 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0009506/0.7903, allocations: 229.9 kB / 0.8418 GB, free: 8.152 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005224/0.7909, allocations: 407 kB / 0.8422 GB, free: 8.09 MB / 0.5886 GB Notification: Performance of SimCode: time 2.81e-07/0.7909, allocations: 2.094 kB / 0.8422 GB, free: 8.09 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7342/1.525, allocations: 31 MB / 0.8725 GB, free: 9.652 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002414/1.525, allocations: 285 kB / 0.8727 GB, free: 9.273 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.978/4.503, allocations: 0 / 0.8727 GB, free: 9.273 MB / 0.6198 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_res.mat --tempDir=temp_ThermofluidStream_OM_adaptions_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_fmu --startTime=0 --stopTime=100 --timeout=1200 --tolerance=1e-06 ThermofluidStream_OM_adaptions_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU.fmu > 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