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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001072/0.001072, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.007877/0.007877, allocations: 172.4 kB / 16.26 MB, free: 6.613 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.274/1.274, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.41/2.41, allocations: 437.8 MB / 0.7121 GB, free: 6.988 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003048/0.0003049, allocations: 8 kB / 0.8729 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5175/0.5178, allocations: 153.8 MB / 1.023 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.003501/0.5213, allocations: 3.487 MB / 1.027 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001633/0.523, allocations: 1.25 MB / 1.028 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002349/0.5232, allocations: 15.94 kB / 1.028 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002239/0.5235, allocations: 103.1 kB / 1.028 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.000234/0.5237, allocations: 75.44 kB / 1.028 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004718/0.5242, allocations: 315.7 kB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006872/0.5249, allocations: 0.916 MB / 1.029 GB, free: 9.652 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000613/0.5255, allocations: 0.5191 MB / 1.03 GB, free: 9.109 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001966/0.5257, allocations: 222.7 kB / 1.03 GB, free: 8.891 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002387/0.526, allocations: 282.1 kB / 1.03 GB, free: 8.613 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.562e-05/0.526, allocations: 24 kB / 1.03 GB, free: 8.59 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 4.88e-05/0.5261, allocations: 24 kB / 1.03 GB, free: 8.566 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 9.067e-05/0.5262, allocations: 119.3 kB / 1.03 GB, free: 8.449 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002151/0.5264, allocations: 335.5 kB / 1.031 GB, free: 8.113 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000769/0.5272, allocations: 1.15 MB / 1.032 GB, free: 6.961 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.5272, allocations: 0 / 1.032 GB, free: 6.961 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.613e-06/0.5272, allocations: 0 / 1.032 GB, free: 6.961 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.295e-06/0.5272, allocations: 0 / 1.032 GB, free: 6.961 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.001944/0.5292, allocations: 1.111 MB / 1.033 GB, free: 5.785 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.311e-05/0.5292, allocations: 8.031 kB / 1.033 GB, free: 5.777 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001242/0.5293, allocations: 126.7 kB / 1.033 GB, free: 5.645 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001246/0.5295, allocations: 91.91 kB / 1.033 GB, free: 5.555 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005759/0.53, allocations: 0.5305 MB / 1.034 GB, free: 4.984 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.334e-05/0.5301, allocations: 62.36 kB / 1.034 GB, free: 4.922 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.445e-05/0.5302, allocations: 68.38 kB / 1.034 GB, free: 4.855 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001588/0.5318, allocations: 0.8503 MB / 1.034 GB, free: 3.988 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.5318, allocations: 0 / 1.034 GB, free: 3.988 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.851e-05/0.5319, allocations: 35.94 kB / 1.035 GB, free: 3.953 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.55e-05/0.5319, allocations: 16 kB / 1.035 GB, free: 3.938 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001829/0.5337, allocations: 0.7612 MB / 1.035 GB, free: 3.176 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003009/0.5368, allocations: 2.501 MB / 1.038 GB, free: 0.5938 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001898/0.5387, allocations: 0.8048 MB / 1.039 GB, free: 15.78 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008516/0.5395, allocations: 394 kB / 1.039 GB, free: 15.39 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.868e-05/0.5396, allocations: 12.38 kB / 1.039 GB, free: 15.38 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009666/0.5406, allocations: 409.2 kB / 1.039 GB, free: 14.96 MB / 0.795 GB Notification: Performance of pre-optimization done (n=51): time 3.436e-06/0.5406, allocations: 0 / 1.039 GB, free: 14.96 MB / 0.795 GB Notification: Performance of matching and sorting (n=51): time 0.002436/0.543, allocations: 0.9744 MB / 1.04 GB, free: 13.99 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.613e-05/0.5431, allocations: 146 kB / 1.04 GB, free: 13.82 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006005/0.5437, allocations: 0.5693 MB / 1.041 GB, free: 13.24 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 5.309e-05/0.5438, allocations: 41.7 kB / 1.041 GB, free: 13.19 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.000231/0.544, allocations: 360.2 kB / 1.041 GB, free: 12.83 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001169/0.5441, allocations: 169.5 kB / 1.041 GB, free: 12.66 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.444e-05/0.5442, allocations: 57.69 kB / 1.042 GB, free: 12.6 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001281/0.5443, allocations: 374.7 kB / 1.042 GB, free: 12.23 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008132/0.5452, allocations: 317 kB / 1.042 GB, free: 11.92 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008898/0.5461, allocations: 457.1 kB / 1.043 GB, free: 11.42 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001601/0.5477, allocations: 0.7405 MB / 1.043 GB, free: 10.64 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.5477, allocations: 0 / 1.043 GB, free: 10.64 MB / 0.795 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001881/0.5496, allocations: 0.892 MB / 1.044 GB, free: 9.723 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001062/0.5497, allocations: 218.3 kB / 1.044 GB, free: 9.465 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.5497, allocations: 3.938 kB / 1.044 GB, free: 9.461 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.5497, allocations: 8 kB / 1.044 GB, free: 9.453 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006324/0.5503, allocations: 163.8 kB / 1.045 GB, free: 9.293 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.5504, allocations: 11.94 kB / 1.045 GB, free: 9.281 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005856/0.551, allocations: 147.3 kB / 1.045 GB, free: 9.137 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.197e-05/0.551, allocations: 28.06 kB / 1.045 GB, free: 9.109 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.202e-06/0.551, allocations: 4 kB / 1.045 GB, free: 9.105 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001428/0.5525, allocations: 0.6921 MB / 1.045 GB, free: 8.402 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.5525, allocations: 4 kB / 1.045 GB, free: 8.398 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.62e-06/0.5525, allocations: 4 kB / 1.045 GB, free: 8.395 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004952/0.553, allocations: 135.8 kB / 1.046 GB, free: 8.262 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.553, allocations: 11.94 kB / 1.046 GB, free: 8.25 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004882/0.5535, allocations: 119.4 kB / 1.046 GB, free: 8.133 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.364e-05/0.5535, allocations: 20 kB / 1.046 GB, free: 8.113 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.0002745/0.5538, allocations: 305.4 kB / 1.046 GB, free: 7.805 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.582e-05/0.5539, allocations: 59.25 kB / 1.046 GB, free: 7.746 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001751/0.5557, allocations: 0.7329 MB / 1.047 GB, free: 7.008 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.5557, allocations: 4 kB / 1.047 GB, free: 7.004 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.5557, allocations: 4 kB / 1.047 GB, free: 7 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.5557, allocations: 3.984 kB / 1.047 GB, free: 6.996 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006649/0.5564, allocations: 0.712 MB / 1.048 GB, free: 6.234 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.5564, allocations: 3.984 kB / 1.048 GB, free: 6.23 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005861/0.557, allocations: 139.8 kB / 1.048 GB, free: 6.094 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.557, allocations: 7.938 kB / 1.048 GB, free: 6.086 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.059e-05/0.557, allocations: 8 kB / 1.048 GB, free: 6.078 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.557, allocations: 4 kB / 1.048 GB, free: 6.074 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.557, allocations: 3.984 kB / 1.048 GB, free: 6.07 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002518/0.5596, allocations: 1.108 MB / 1.049 GB, free: 4.941 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.5597, allocations: 144.3 kB / 1.049 GB, free: 4.781 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.39e-05/0.5598, allocations: 12 kB / 1.049 GB, free: 4.77 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004883/0.5603, allocations: 87.92 kB / 1.049 GB, free: 4.684 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/0.5604, allocations: 48.36 kB / 1.049 GB, free: 4.637 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.283e-05/0.5604, allocations: 16 kB / 1.049 GB, free: 4.621 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0004261/0.5608, allocations: 406.8 kB / 1.049 GB, free: 4.227 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5608, allocations: 0 / 1.049 GB, free: 4.227 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000587/0.5614, allocations: 258.9 kB / 1.05 GB, free: 3.973 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.002805/0.5642, allocations: 1.673 MB / 1.051 GB, free: 2.273 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.002503/0.5668, allocations: 1.253 MB / 1.053 GB, free: 0.9727 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.5668, allocations: 0 / 1.053 GB, free: 0.9727 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0008271/0.5676, allocations: 350.9 kB / 1.053 GB, free: 0.6328 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006212/0.5682, allocations: 117.5 kB / 1.053 GB, free: 0.5195 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009835/0.5781, allocations: 6.344 MB / 1.059 GB, free: 9.984 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003868/0.5785, allocations: 0.9065 MB / 1.06 GB, free: 9.051 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0003113/0.5788, allocations: 72.98 kB / 1.06 GB, free: 8.977 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003555/0.5792, allocations: 267.3 kB / 1.06 GB, free: 8.715 MB / 0.8106 GB Notification: Performance of SimCode: time 5.91e-07/0.5792, allocations: 0 / 1.06 GB, free: 8.715 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.784/2.363, allocations: 12.41 MB / 1.073 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000285/2.364, allocations: 226.6 kB / 1.073 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.995/4.359, allocations: 6.281 kB / 1.073 GB, free: 12.29 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)