Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,fileNamePrefix="Buildings_10_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,fileNamePrefix="Buildings_10_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.00125/0.00125, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 195.8 kB / 16.53 MB, free: 6.391 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.219/1.219, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.27/2.27, allocations: 437 MB / 0.7104 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 67.91 kB / 0.8693 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.49/0.4912, allocations: 151.6 MB / 1.017 GB, free: 2.512 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.00467/0.4959, allocations: 3.916 MB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002032/0.498, allocations: 1.312 MB / 1.023 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003453/0.4983, allocations: 15.94 kB / 1.023 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002972/0.4986, allocations: 138.6 kB / 1.023 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002488/0.4989, allocations: 122.8 kB / 1.023 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005024/0.4994, allocations: 359.5 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0007364/0.5001, allocations: 1.022 MB / 1.024 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006192/0.5008, allocations: 0.5387 MB / 1.025 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002708/0.5011, allocations: 366.6 kB / 1.025 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003034/0.5014, allocations: 406 kB / 1.025 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001206/0.5015, allocations: 128 kB / 1.026 GB, free: 10.15 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001119/0.5016, allocations: 120 kB / 1.026 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001468/0.5018, allocations: 231.3 kB / 1.026 GB, free: 9.809 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002815/0.5021, allocations: 437.7 kB / 1.026 GB, free: 9.379 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0008293/0.5029, allocations: 1.237 MB / 1.027 GB, free: 8.141 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.5029, allocations: 0 / 1.027 GB, free: 8.141 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.422e-06/0.5029, allocations: 3.938 kB / 1.027 GB, free: 8.137 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.145e-06/0.5029, allocations: 0 / 1.027 GB, free: 8.137 MB / 0.7794 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.002024/0.5049, allocations: 1.231 MB / 1.029 GB, free: 6.84 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.205e-05/0.505, allocations: 8.031 kB / 1.029 GB, free: 6.832 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001167/0.5051, allocations: 118.7 kB / 1.029 GB, free: 6.707 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001264/0.5052, allocations: 95.81 kB / 1.029 GB, free: 6.613 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005705/0.5058, allocations: 0.5306 MB / 1.029 GB, free: 6.043 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.289e-05/0.5059, allocations: 58.38 kB / 1.029 GB, free: 5.984 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.46e-05/0.506, allocations: 72.38 kB / 1.03 GB, free: 5.914 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00147/0.5074, allocations: 0.8112 MB / 1.03 GB, free: 5.086 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.5075, allocations: 7.938 kB / 1.03 GB, free: 5.078 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.749e-05/0.5075, allocations: 28 kB / 1.03 GB, free: 5.051 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.445e-05/0.5075, allocations: 16 kB / 1.03 GB, free: 5.035 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001725/0.5093, allocations: 0.6753 MB / 1.031 GB, free: 4.359 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00291/0.5122, allocations: 2.481 MB / 1.033 GB, free: 1.797 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001768/0.514, allocations: 0.7033 MB / 1.034 GB, free: 1.086 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008064/0.5148, allocations: 350 kB / 1.034 GB, free: 0.7422 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.582e-05/0.5148, allocations: 12.42 kB / 1.034 GB, free: 0.7266 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008894/0.5157, allocations: 365.2 kB / 1.035 GB, free: 364 kB / 0.7794 GB Notification: Performance of pre-optimization done (n=51): time 1.863e-06/0.5157, allocations: 0 / 1.035 GB, free: 364 kB / 0.7794 GB Notification: Performance of matching and sorting (n=51): time 0.002311/0.5181, allocations: 0.8574 MB / 1.036 GB, free: 15.5 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.919e-05/0.5181, allocations: 136.9 kB / 1.036 GB, free: 15.33 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006059/0.5188, allocations: 0.5693 MB / 1.036 GB, free: 14.75 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.587e-05/0.5188, allocations: 41.64 kB / 1.036 GB, free: 14.71 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002478/0.5191, allocations: 373.1 kB / 1.037 GB, free: 14.34 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.5192, allocations: 161.7 kB / 1.037 GB, free: 14.18 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001582/0.5194, allocations: 110.1 kB / 1.037 GB, free: 14.06 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001383/0.5195, allocations: 382.7 kB / 1.037 GB, free: 13.68 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007715/0.5203, allocations: 271 kB / 1.038 GB, free: 13.41 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000854/0.5211, allocations: 425.1 kB / 1.038 GB, free: 12.95 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001507/0.5227, allocations: 0.6546 MB / 1.039 GB, free: 12.25 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.5227, allocations: 0 / 1.039 GB, free: 12.25 MB / 0.795 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001807/0.5245, allocations: 0.8139 MB / 1.039 GB, free: 11.41 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.34e-05/0.5245, allocations: 55.41 kB / 1.04 GB, free: 11.35 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.5245, allocations: 7.938 kB / 1.04 GB, free: 11.34 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.5246, allocations: 7.984 kB / 1.04 GB, free: 11.33 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006316/0.5252, allocations: 147.8 kB / 1.04 GB, free: 11.19 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/0.5252, allocations: 7.938 kB / 1.04 GB, free: 11.18 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005549/0.5258, allocations: 115.3 kB / 1.04 GB, free: 11.07 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.305e-05/0.5258, allocations: 27.92 kB / 1.04 GB, free: 11.04 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007386/0.5266, allocations: 385.2 kB / 1.04 GB, free: 10.66 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006652/0.5273, allocations: 357.2 kB / 1.041 GB, free: 10.25 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001169/0.5284, allocations: 0.5688 MB / 1.041 GB, free: 9.645 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.043e-06/0.5285, allocations: 0 / 1.041 GB, free: 9.645 MB / 0.795 GB Notification: Performance of matching and sorting (n=71) (initialization_lambda0): time 0.001437/0.5299, allocations: 0.7121 MB / 1.042 GB, free: 8.914 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.288e-05/0.5299, allocations: 63.41 kB / 1.042 GB, free: 8.84 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.5299, allocations: 8.266 kB / 1.042 GB, free: 8.832 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.75e-06/0.53, allocations: 8 kB / 1.042 GB, free: 8.824 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004938/0.5305, allocations: 127.8 kB / 1.042 GB, free: 8.699 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.5305, allocations: 4 kB / 1.042 GB, free: 8.695 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004942/0.531, allocations: 91.52 kB / 1.042 GB, free: 8.605 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.714e-05/0.531, allocations: 27.98 kB / 1.042 GB, free: 8.578 MB / 0.795 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,m_flow.count,$PRE.m_flow.count,m_flow.T_start,$PRE.m_flow.T_start,TRoo.count,$PRE.TRoo.count,TRoo.T_start,$PRE.TRoo.T_start,$whenCondition1,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001591/0.5312, allocations: 224.5 kB / 1.042 GB, free: 8.352 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.128e-05/0.5313, allocations: 59.25 kB / 1.042 GB, free: 8.293 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001666/0.5329, allocations: 0.647 MB / 1.043 GB, free: 7.641 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.533, allocations: 4 kB / 1.043 GB, free: 7.637 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.533, allocations: 4 kB / 1.043 GB, free: 7.633 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.814e-06/0.533, allocations: 11.92 kB / 1.043 GB, free: 7.621 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006638/0.5337, allocations: 0.712 MB / 1.044 GB, free: 6.859 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.5337, allocations: 3.938 kB / 1.044 GB, free: 6.855 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000553/0.5342, allocations: 115.8 kB / 1.044 GB, free: 6.742 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.5342, allocations: 0 / 1.044 GB, free: 6.742 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.248e-05/0.5343, allocations: 11.98 kB / 1.044 GB, free: 6.73 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.5343, allocations: 7.938 kB / 1.044 GB, free: 6.723 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.5343, allocations: 4.156 kB / 1.044 GB, free: 6.719 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002351/0.5366, allocations: 0.9834 MB / 1.045 GB, free: 5.715 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001129/0.5368, allocations: 144.3 kB / 1.045 GB, free: 5.555 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.49e-05/0.5368, allocations: 12 kB / 1.045 GB, free: 5.543 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004543/0.5373, allocations: 63.91 kB / 1.045 GB, free: 5.48 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/0.5374, allocations: 44.47 kB / 1.045 GB, free: 5.438 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.452e-05/0.5375, allocations: 23.98 kB / 1.045 GB, free: 5.414 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0004144/0.5379, allocations: 406.7 kB / 1.045 GB, free: 5.02 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5379, allocations: 0 / 1.045 GB, free: 5.02 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0005659/0.5385, allocations: 262.9 kB / 1.046 GB, free: 4.762 MB / 0.795 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002619/0.5411, allocations: 1.538 MB / 1.047 GB, free: 3.195 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.00254/0.5436, allocations: 1.166 MB / 1.048 GB, free: 1.98 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.5436, allocations: 1.125 kB / 1.048 GB, free: 1.98 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0007724/0.5444, allocations: 314.2 kB / 1.049 GB, free: 1.672 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005768/0.545, allocations: 130.3 kB / 1.049 GB, free: 1.547 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00891/0.5539, allocations: 5.835 MB / 1.054 GB, free: 11.54 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004038/0.5543, allocations: 0.9101 MB / 1.055 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002984/0.5547, allocations: 76.8 kB / 1.055 GB, free: 10.53 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003515/0.555, allocations: 263.3 kB / 1.056 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of SimCode: time 2.61e-07/0.555, allocations: 0 / 1.056 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3729/0.9279, allocations: 13.25 MB / 1.069 GB, free: 13.21 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.95, allocations: 5.969 kB / 1.069 GB, free: 13.2 MB / 0.8262 GB (rm -f Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; mkfifo Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe >> ../files/Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox_res.mat --tempDir=temp_Buildings_10_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox.fmu > Buildings_10_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe 2>&1)