Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,fileNamePrefix="Buildings_8_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,fileNamePrefix="Buildings_8_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox",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.0008672/0.0008672, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.001017/0.001017, allocations: 168.7 kB / 15.95 MB, free: 200 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.537/1.537, allocations: 205.4 MB / 222.1 MB, free: 5.887 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.667/1.667, allocations: 292.7 MB / 0.5499 GB, free: 14.57 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0007434/0.0007434, allocations: 13.62 kB / 0.6738 GB, free: 26.39 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.2523, allocations: 116.3 MB / 0.7874 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.004007/0.2564, allocations: 3.279 MB / 0.7906 GB, free: 8.582 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002436/0.2589, allocations: 1.237 MB / 0.7918 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006309/0.2595, allocations: 12 kB / 0.7918 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0003466/0.2599, allocations: 91.09 kB / 0.7919 GB, free: 7.234 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003982/0.2603, allocations: 79.25 kB / 0.792 GB, free: 7.156 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006131/0.2609, allocations: 207.7 kB / 0.7922 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0009892/0.2619, allocations: 0.8849 MB / 0.7931 GB, free: 6.066 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005461/0.2625, allocations: 367.6 kB / 0.7934 GB, free: 5.684 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00026/0.2628, allocations: 226.7 kB / 0.7936 GB, free: 5.461 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002933/0.2631, allocations: 282.2 kB / 0.7939 GB, free: 5.184 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 7.572e-05/0.2631, allocations: 28 kB / 0.7939 GB, free: 5.156 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.52e-05/0.2632, allocations: 24 kB / 0.7939 GB, free: 5.133 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.000104/0.2633, allocations: 115.4 kB / 0.7941 GB, free: 5.02 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001326/0.2635, allocations: 157.3 kB / 0.7942 GB, free: 4.859 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0007942/0.2643, allocations: 1.017 MB / 0.7952 GB, free: 3.84 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.2643, allocations: 4 kB / 0.7952 GB, free: 3.836 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.844e-06/0.2643, allocations: 0 / 0.7952 GB, free: 3.836 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.247e-06/0.2643, allocations: 0 / 0.7952 GB, free: 3.836 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: 179 * Number of variables: 179 Notification: Performance of Generate backend data structure: time 0.002142/0.2664, allocations: 1.173 MB / 0.7963 GB, free: 2.602 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.2665, allocations: 8.031 kB / 0.7964 GB, free: 2.594 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001439/0.2666, allocations: 114.5 kB / 0.7965 GB, free: 2.473 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001458/0.2668, allocations: 98.78 kB / 0.7966 GB, free: 2.375 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007733/0.2676, allocations: 0.5552 MB / 0.7971 GB, free: 1.773 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.192e-05/0.2676, allocations: 61.94 kB / 0.7972 GB, free: 1.715 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001116/0.2678, allocations: 80 kB / 0.7972 GB, free: 1.637 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00165/0.2694, allocations: 0.8501 MB / 0.7981 GB, free: 0.7656 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.804e-05/0.2694, allocations: 0 / 0.7981 GB, free: 0.7656 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.97e-05/0.2695, allocations: 32 kB / 0.7981 GB, free: 0.7344 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.807e-05/0.2695, allocations: 16 kB / 0.7981 GB, free: 0.7188 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001745/0.2713, allocations: 0.7573 MB / 0.7989 GB, free: 15.96 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00339/0.2747, allocations: 2.52 MB / 0.8013 GB, free: 13.36 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001791/0.2765, allocations: 0.8009 MB / 0.8021 GB, free: 12.55 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008089/0.2773, allocations: 397.7 kB / 0.8025 GB, free: 12.16 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 4.66e-05/0.2774, allocations: 9.438 kB / 0.8025 GB, free: 12.15 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009265/0.2783, allocations: 405.2 kB / 0.8029 GB, free: 11.74 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=51): time 2.455e-06/0.2783, allocations: 0 / 0.8029 GB, free: 11.74 MB / 0.6231 GB Notification: Performance of matching and sorting (n=51): time 0.002412/0.2808, allocations: 0.9861 MB / 0.8038 GB, free: 10.75 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/0.2809, allocations: 137 kB / 0.804 GB, free: 10.58 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008753/0.2818, allocations: 0.6095 MB / 0.8046 GB, free: 9.965 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 6.021e-05/0.2818, allocations: 37.7 kB / 0.8046 GB, free: 9.922 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003467/0.2822, allocations: 384.1 kB / 0.805 GB, free: 9.539 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001848/0.2824, allocations: 173.5 kB / 0.8051 GB, free: 9.367 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.495e-05/0.2824, allocations: 8 kB / 0.8051 GB, free: 9.359 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001778/0.2826, allocations: 382.7 kB / 0.8055 GB, free: 8.977 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000784/0.2834, allocations: 313 kB / 0.8058 GB, free: 8.672 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008438/0.2843, allocations: 453.1 kB / 0.8062 GB, free: 8.18 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000808/0.2851, allocations: 385.5 kB / 0.8066 GB, free: 7.789 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.2851, allocations: 0 / 0.8066 GB, free: 7.789 MB / 0.6231 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001925/0.287, allocations: 0.892 MB / 0.8075 GB, free: 6.883 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002019/0.2872, allocations: 202.4 kB / 0.8077 GB, free: 6.633 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.2873, allocations: 4 kB / 0.8077 GB, free: 6.629 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.576e-05/0.2873, allocations: 8 kB / 0.8077 GB, free: 6.621 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006474/0.2879, allocations: 167.8 kB / 0.8078 GB, free: 6.457 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.018e-05/0.288, allocations: 4 kB / 0.8078 GB, free: 6.453 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006177/0.2886, allocations: 159.1 kB / 0.808 GB, free: 6.297 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.999e-05/0.2887, allocations: 20 kB / 0.808 GB, free: 6.277 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 8.777e-06/0.2887, allocations: 4 kB / 0.808 GB, free: 6.273 MB / 0.6231 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001361/0.29, allocations: 0.6959 MB / 0.8087 GB, free: 5.57 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.2901, allocations: 4 kB / 0.8087 GB, free: 5.566 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.804e-06/0.2901, allocations: 4 kB / 0.8087 GB, free: 5.562 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004787/0.2906, allocations: 135.8 kB / 0.8088 GB, free: 5.43 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.2906, allocations: 7.984 kB / 0.8088 GB, free: 5.422 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005079/0.2911, allocations: 123.3 kB / 0.809 GB, free: 5.301 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.747e-05/0.2911, allocations: 23.94 kB / 0.809 GB, free: 5.277 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 13 (conMix.conFloRat.con1.y,conMix.conCoo.con1.y,conMix.conHea.con1.y,$whenCondition2,$whenCondition1,$PRE.TRoo.T_start,TRoo.T_start,$PRE.TRoo.count,TRoo.count,$PRE.m_flow.T_start,m_flow.T_start,$PRE.m_flow.count,m_flow.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003932/0.2915, allocations: 301 kB / 0.8093 GB, free: 4.973 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.2916, allocations: 71.11 kB / 0.8093 GB, free: 4.902 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001637/0.2933, allocations: 0.7373 MB / 0.8101 GB, free: 4.152 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.2933, allocations: 4 kB / 0.8101 GB, free: 4.148 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.2933, allocations: 0 / 0.8101 GB, free: 4.148 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-06/0.2933, allocations: 3.984 kB / 0.8101 GB, free: 4.145 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008557/0.2942, allocations: 0.7237 MB / 0.8108 GB, free: 3.371 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.2942, allocations: 0 / 0.8108 GB, free: 3.371 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006034/0.2948, allocations: 135.8 kB / 0.8109 GB, free: 3.238 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.041e-05/0.2948, allocations: 11.94 kB / 0.8109 GB, free: 3.227 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.859e-05/0.2949, allocations: 8 kB / 0.8109 GB, free: 3.219 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.193e-06/0.2949, allocations: 8 kB / 0.8109 GB, free: 3.211 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.2949, allocations: 3.938 kB / 0.8109 GB, free: 3.207 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002388/0.2973, allocations: 1.105 MB / 0.812 GB, free: 2.082 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001487/0.2975, allocations: 144.2 kB / 0.8121 GB, free: 1.922 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.417e-05/0.2976, allocations: 19.95 kB / 0.8122 GB, free: 1.902 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000432/0.298, allocations: 91.91 kB / 0.8122 GB, free: 1.812 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.2981, allocations: 52.3 kB / 0.8123 GB, free: 1.762 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.605e-05/0.2982, allocations: 16 kB / 0.8123 GB, free: 1.746 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0005499/0.2987, allocations: 435.1 kB / 0.8127 GB, free: 1.324 MB / 0.6231 GB Notification: Performance of sort global known variables: time 3.41e-07/0.2987, allocations: 0 / 0.8127 GB, free: 1.324 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0007461/0.2995, allocations: 258.9 kB / 0.813 GB, free: 1.07 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (conMix.conHea.I.y,conMix.conCoo.I.y,conMix.conFloRat.I.y) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,TRoo.T_start,TRoo.count,m_flow.T_start,m_flow.count) * Number of discrete states: 2 (m_flow.count,TRoo.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002778/0.3023, allocations: 1.664 MB / 0.8146 GB, free: 15.38 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0026/0.3049, allocations: 1.253 MB / 0.8158 GB, free: 14.07 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.3049, allocations: 0 / 0.8158 GB, free: 14.07 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.000769/0.3057, allocations: 354.8 kB / 0.8162 GB, free: 13.73 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006519/0.3063, allocations: 131 kB / 0.8163 GB, free: 13.61 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008386/0.3147, allocations: 4.371 MB / 0.8206 GB, free: 9.148 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005216/0.3153, allocations: 0.9222 MB / 0.8215 GB, free: 8.195 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0003685/0.3157, allocations: 76.89 kB / 0.8215 GB, free: 8.121 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003969/0.3161, allocations: 271.3 kB / 0.8218 GB, free: 7.855 MB / 0.6387 GB Notification: Performance of SimCode: time 6.31e-07/0.3161, allocations: 0 / 0.8218 GB, free: 7.855 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02959/0.3457, allocations: 13.16 MB / 0.8346 GB, free: 10.92 MB / 0.6544 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001612/0.3459, allocations: 204.2 kB / 0.8348 GB, free: 10.68 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.217/2.563, allocations: 4 kB / 0.8348 GB, free: 10.67 MB / 0.6544 GB (rm -f Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; mkfifo Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe >> ../files/Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox.fmu > Buildings_8_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe 2>&1) Environment - environmentSimulation: