Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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: translateModel(Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.m1_flow|hex.m2_flow|hex.sta_a1.X.1.|hex.sta_b1.X.1.|hex.sta_a2.X.1.|hex.sta_b2.X.1.|hex.dp1|hex.dp2|hex.mWat1_flow|hex.mWat2_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness") translateModel(Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hex.m1_flow|hex.m2_flow|hex.sta_a1.X.1.|hex.sta_b1.X.1.|hex.sta_a2.X.1.|hex.sta_b2.X.1.|hex.dp1|hex.dp2|hex.mWat1_flow|hex.mWat2_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001476/0.001476, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 223.2 MB / 239.9 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.65/2.65, allocations: 436.5 MB / 0.7104 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003508/0.0003509, allocations: 15.97 kB / 0.8707 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6175/0.6179, allocations: 153.6 MB / 1.021 GB, free: 1.145 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness): time 0.1854/0.8033, allocations: 176.7 MB / 1.193 GB, free: 48 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.01016/0.8135, allocations: 6.971 MB / 1.2 GB, free: 9.062 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001174/0.8147, allocations: 39.69 kB / 1.2 GB, free: 9.023 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.002029/0.8168, allocations: 0.7194 MB / 1.201 GB, free: 8.301 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.005687/0.8225, allocations: 2.255 MB / 1.203 GB, free: 6.039 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.002765/0.8253, allocations: 1.056 MB / 1.204 GB, free: 5 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.00271/0.828, allocations: 1.631 MB / 1.206 GB, free: 3.367 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001394/0.8294, allocations: 0.8392 MB / 1.207 GB, free: 2.504 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002999/0.8324, allocations: 1.309 MB / 1.208 GB, free: 1.191 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00105/0.8335, allocations: 0.6302 MB / 1.208 GB, free: 0.5586 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001207/0.8336, allocations: 48 kB / 1.208 GB, free: 0.5117 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0029/0.8365, allocations: 1.326 MB / 1.21 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0004118/0.8369, allocations: 315 kB / 1.21 GB, free: 14.88 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0003457/0.8373, allocations: 273 kB / 1.21 GB, free: 14.6 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001969/0.8393, allocations: 1.606 MB / 1.212 GB, free: 12.99 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.434e-06/0.8393, allocations: 0 / 1.212 GB, free: 12.99 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.503e-06/0.8393, allocations: 0 / 1.212 GB, free: 12.99 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.145e-05/0.8393, allocations: 0 / 1.212 GB, free: 12.99 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 209 * Number of variables: 209 Notification: Performance of Generate backend data structure: time 0.003831/0.8431, allocations: 1.575 MB / 1.213 GB, free: 11.36 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.408e-05/0.8432, allocations: 11.98 kB / 1.213 GB, free: 11.35 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003068/0.8462, allocations: 0.5878 MB / 1.214 GB, free: 10.76 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00171/0.848, allocations: 0.9373 MB / 1.215 GB, free: 9.781 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006402/0.8486, allocations: 197.9 kB / 1.215 GB, free: 9.586 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001379/0.8488, allocations: 84 kB / 1.215 GB, free: 9.504 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002678/0.8515, allocations: 1.249 MB / 1.216 GB, free: 8.25 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/0.8515, allocations: 0 / 1.216 GB, free: 8.25 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001022/0.8516, allocations: 36 kB / 1.216 GB, free: 8.215 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.253e-05/0.8517, allocations: 45.97 kB / 1.216 GB, free: 8.172 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003758/0.8554, allocations: 1.612 MB / 1.218 GB, free: 6.555 MB / 0.9669 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.006738/0.8622, allocations: 4.084 MB / 1.222 GB, free: 2.195 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002606/0.8648, allocations: 1.075 MB / 1.223 GB, free: 1.113 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007519/0.8656, allocations: 298.9 kB / 1.223 GB, free: 0.7852 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.729e-05/0.8656, allocations: 47.17 kB / 1.223 GB, free: 0.7305 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=76): time 3.877e-06/0.8656, allocations: 4 kB / 1.223 GB, free: 0.7266 MB / 0.9669 GB Notification: Performance of matching and sorting (n=76): time 0.004945/0.8706, allocations: 1.914 MB / 1.225 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.375e-05/0.8706, allocations: 60.06 kB / 1.225 GB, free: 14.73 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001013/0.8716, allocations: 0.8076 MB / 1.226 GB, free: 13.9 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0001043/0.8718, allocations: 53.58 kB / 1.226 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003347/0.8721, allocations: 440.5 kB / 1.227 GB, free: 13.41 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002216/0.8723, allocations: 260.1 kB / 1.227 GB, free: 13.15 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.65e-05/0.8724, allocations: 12 kB / 1.227 GB, free: 13.14 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.8725, allocations: 334 kB / 1.227 GB, free: 12.8 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00141/0.8739, allocations: 0.5602 MB / 1.228 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001494/0.8754, allocations: 0.6833 MB / 1.228 GB, free: 11.53 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001431/0.8769, allocations: 0.6099 MB / 1.229 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.8769, allocations: 4 kB / 1.229 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003228/0.8801, allocations: 1.404 MB / 1.23 GB, free: 9.492 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001945/0.8803, allocations: 481.3 kB / 1.231 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.8804, allocations: 7.938 kB / 1.231 GB, free: 8.977 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.834e-05/0.8804, allocations: 7.953 kB / 1.231 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001527/0.8819, allocations: 279.6 kB / 1.231 GB, free: 8.695 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000705/0.8826, allocations: 1.199 MB / 1.232 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001208/0.8839, allocations: 191.3 kB / 1.232 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.328e-05/0.884, allocations: 35.94 kB / 1.233 GB, free: 7.227 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 9.898e-06/0.884, allocations: 4 kB / 1.233 GB, free: 7.223 MB / 0.9825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003105/0.8871, allocations: 1.298 MB / 1.234 GB, free: 5.918 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.8871, allocations: 0 / 1.234 GB, free: 5.918 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.552e-06/0.8871, allocations: 7.938 kB / 1.234 GB, free: 5.91 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001183/0.8883, allocations: 251.8 kB / 1.234 GB, free: 5.664 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.8883, allocations: 7.938 kB / 1.234 GB, free: 5.656 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001168/0.8895, allocations: 191.1 kB / 1.234 GB, free: 5.469 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.98e-05/0.8896, allocations: 39.97 kB / 1.234 GB, free: 5.43 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (hex.i1_w,hex.i2_w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005347/0.8901, allocations: 365 kB / 1.235 GB, free: 5.062 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001908/0.8903, allocations: 106.7 kB / 1.235 GB, free: 4.957 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003476/0.8938, allocations: 1.429 MB / 1.236 GB, free: 3.516 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.909e-06/0.8938, allocations: 11.98 kB / 1.236 GB, free: 3.504 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.8939, allocations: 7.984 kB / 1.236 GB, free: 3.496 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/0.8939, allocations: 4 kB / 1.236 GB, free: 3.492 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005625/0.8995, allocations: 2.985 MB / 1.239 GB, free: 404 kB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.439e-05/0.8995, allocations: 7.938 kB / 1.239 GB, free: 396 kB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001209/0.9007, allocations: 256.2 kB / 1.239 GB, free: 140 kB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.235e-05/0.9008, allocations: 8 kB / 1.239 GB, free: 132 kB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.11e-05/0.9008, allocations: 23.98 kB / 1.239 GB, free: 108 kB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000567/0.9014, allocations: 1.195 MB / 1.24 GB, free: 14.86 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.9014, allocations: 7.984 kB / 1.24 GB, free: 14.86 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003302/0.9047, allocations: 1.742 MB / 1.242 GB, free: 12.94 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005664/0.9053, allocations: 307.6 kB / 1.242 GB, free: 12.62 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001743/0.9055, allocations: 16 kB / 1.243 GB, free: 12.61 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001282/0.9068, allocations: 175.6 kB / 1.243 GB, free: 12.43 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001251/0.9069, allocations: 64.36 kB / 1.243 GB, free: 12.37 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.945e-05/0.907, allocations: 35.97 kB / 1.243 GB, free: 12.34 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0007402/0.9078, allocations: 0.57 MB / 1.243 GB, free: 11.75 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9078, allocations: 0 / 1.243 GB, free: 11.75 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001368/0.9091, allocations: 0.5302 MB / 1.244 GB, free: 11.22 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * 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 simulation (76): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005715/0.9097, allocations: 271.4 kB / 1.244 GB, free: 10.96 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.005196/0.9149, allocations: 2.131 MB / 1.246 GB, free: 8.812 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.915, allocations: 0 / 1.246 GB, free: 8.812 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001692/0.9167, allocations: 0.7068 MB / 1.247 GB, free: 8.105 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002483/0.9191, allocations: 0.5093 MB / 1.247 GB, free: 7.598 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004547/0.9237, allocations: 2.49 MB / 1.25 GB, free: 5.027 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007017/0.9244, allocations: 1.118 MB / 1.251 GB, free: 3.879 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001684/0.9261, allocations: 387.5 kB / 1.251 GB, free: 3.496 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003266/0.9265, allocations: 91.39 kB / 1.251 GB, free: 3.406 MB / 0.9981 GB Notification: Performance of SimCode: time 5.11e-07/0.9265, allocations: 0 / 1.251 GB, free: 3.406 MB / 0.9981 GB Notification: Performance of Templates: time 0.5065/1.433, allocations: 19.61 MB / 1.271 GB, free: 227.5 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.makefile (rm -f Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe ; mkfifo Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe >> ../files/Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.sim & ./Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_MassExchangers_Examples_ConstantEffectiveness.csv","../files/Buildings_latest_Buildings.Fluid.MassExchangers.Examples.ConstantEffectiveness.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches