Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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: "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,fileNamePrefix="Buildings_latest_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox,fileNamePrefix="Buildings_latest_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.001657/0.001657, allocations: 100.3 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.002122/0.002122, 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 2.791/2.791, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.847/4.847, allocations: 409.2 MB / 0.6838 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0005715/0.0005715, allocations: 8 kB / 0.8375 GB, free: 6.562 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.726/1.727, allocations: 146.8 MB / 0.9809 GB, free: 6.312 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox): time 0.006557/1.734, allocations: 3.278 MB / 0.9841 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.004557/1.738, allocations: 1.212 MB / 0.9852 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001205/1.74, allocations: 15.94 kB / 0.9853 GB, free: 1.789 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0003173/1.74, allocations: 59.3 kB / 0.9853 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0007951/1.741, allocations: 127.5 kB / 0.9854 GB, free: 1.605 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.00117/1.742, allocations: 238 kB / 0.9857 GB, free: 1.375 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001429/1.743, allocations: 0.5459 MB / 0.9862 GB, free: 0.8281 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001025/1.744, allocations: 371.5 kB / 0.9866 GB, free: 452 kB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005141/1.745, allocations: 214.8 kB / 0.9868 GB, free: 236 kB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004789/1.745, allocations: 270.5 kB / 0.987 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 9.842e-05/1.746, allocations: 24 kB / 0.987 GB, free: 15.94 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 8.089e-05/1.746, allocations: 24 kB / 0.9871 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001519/1.746, allocations: 111.4 kB / 0.9872 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0002083/1.746, allocations: 153.3 kB / 0.9873 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001369/1.747, allocations: 0.9723 MB / 0.9883 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/1.747, allocations: 0 / 0.9883 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of FrontEnd: time 3.707e-06/1.747, allocations: 0 / 0.9883 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 2.133e-05/1.748, allocations: 0 / 0.9883 GB, free: 14.68 MB / 0.7481 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.003511/1.751, allocations: 1.13 MB / 0.9894 GB, free: 13.49 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 6.542e-05/1.751, allocations: 8.031 kB / 0.9894 GB, free: 13.48 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002365/1.751, allocations: 114.5 kB / 0.9895 GB, free: 13.36 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000271/1.752, allocations: 98.86 kB / 0.9896 GB, free: 13.26 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001126/1.753, allocations: 0.5101 MB / 0.9901 GB, free: 12.71 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.675e-05/1.753, allocations: 58 kB / 0.9901 GB, free: 12.66 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001592/1.753, allocations: 76 kB / 0.9902 GB, free: 12.58 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002742/1.756, allocations: 0.8423 MB / 0.991 GB, free: 11.72 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.814e-05/1.756, allocations: 3.938 kB / 0.991 GB, free: 11.71 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001036/1.756, allocations: 36 kB / 0.9911 GB, free: 11.68 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.547e-05/1.756, allocations: 16 kB / 0.9911 GB, free: 11.66 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002912/1.759, allocations: 0.7534 MB / 0.9918 GB, free: 10.91 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006532/1.765, allocations: 2.501 MB / 0.9943 GB, free: 8.32 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003249/1.769, allocations: 0.8205 MB / 0.9951 GB, free: 7.492 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 7.415e-05/1.769, allocations: 5.453 kB / 0.9951 GB, free: 7.488 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001589/1.771, allocations: 421.1 kB / 0.9955 GB, free: 7.062 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=51): time 6.102e-06/1.771, allocations: 0 / 0.9955 GB, free: 7.062 MB / 0.7481 GB Notification: Performance of matching and sorting (n=51): time 0.00393/1.775, allocations: 0.9668 MB / 0.9964 GB, free: 6.094 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001711/1.775, allocations: 140.9 kB / 0.9965 GB, free: 5.926 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001347/1.776, allocations: 0.5576 MB / 0.9971 GB, free: 5.359 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0001275/1.776, allocations: 45.7 kB / 0.9971 GB, free: 5.309 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005717/1.777, allocations: 368 kB / 0.9975 GB, free: 4.945 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002475/1.777, allocations: 161.7 kB / 0.9976 GB, free: 4.785 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.824e-05/1.777, allocations: 16 kB / 0.9977 GB, free: 4.77 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0003164/1.777, allocations: 370.8 kB / 0.998 GB, free: 4.398 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001167/1.779, allocations: 309 kB / 0.9983 GB, free: 4.098 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001404/1.78, allocations: 453.1 kB / 0.9987 GB, free: 3.609 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00135/1.781, allocations: 389.4 kB / 0.9991 GB, free: 3.219 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.714e-06/1.781, allocations: 0 / 0.9991 GB, free: 3.219 MB / 0.7481 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00296/1.784, allocations: 0.8803 MB / 1 GB, free: 2.316 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008013/1.785, allocations: 0.937 MB / 1.001 GB, free: 1.301 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.026e-05/1.785, allocations: 8 kB / 1.001 GB, free: 1.293 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.512e-05/1.785, allocations: 4 kB / 1.001 GB, free: 1.289 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009675/1.786, allocations: 163.8 kB / 1.001 GB, free: 1.129 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.033e-05/1.786, allocations: 11.92 kB / 1.001 GB, free: 1.117 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001075/1.787, allocations: 147.3 kB / 1.001 GB, free: 0.9727 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.054e-05/1.788, allocations: 24 kB / 1.001 GB, free: 0.9492 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.02e-05/1.788, allocations: 5.562 kB / 1.001 GB, free: 0.9453 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002207/1.79, allocations: 0.692 MB / 1.002 GB, free: 248 kB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/1.79, allocations: 0 / 1.002 GB, free: 248 kB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/1.79, allocations: 8 kB / 1.002 GB, free: 240 kB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007019/1.791, allocations: 135.8 kB / 1.002 GB, free: 104 kB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/1.791, allocations: 4 kB / 1.002 GB, free: 100 kB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009423/1.792, allocations: 123.4 kB / 1.002 GB, free: 15.98 MB / 0.7638 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.503e-05/1.792, allocations: 19.94 kB / 1.002 GB, free: 15.96 MB / 0.7638 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.0009286/1.793, allocations: 300.9 kB / 1.002 GB, free: 15.65 MB / 0.7638 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002456/1.793, allocations: 75.05 kB / 1.003 GB, free: 15.58 MB / 0.7638 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003088/1.796, allocations: 0.7328 MB / 1.003 GB, free: 14.84 MB / 0.7638 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.981e-05/1.796, allocations: 8 kB / 1.003 GB, free: 14.83 MB / 0.7638 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.33e-05/1.796, allocations: 0 / 1.003 GB, free: 14.83 MB / 0.7638 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/1.796, allocations: 0 / 1.003 GB, free: 14.83 MB / 0.7638 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001504/1.798, allocations: 0.7081 MB / 1.004 GB, free: 14.07 MB / 0.7638 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.397e-05/1.798, allocations: 0 / 1.004 GB, free: 14.07 MB / 0.7638 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008549/1.798, allocations: 139.8 kB / 1.004 GB, free: 13.93 MB / 0.7638 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.374e-05/1.798, allocations: 0 / 1.004 GB, free: 13.93 MB / 0.7638 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.742e-05/1.799, allocations: 27.92 kB / 1.004 GB, free: 13.9 MB / 0.7638 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.006e-05/1.799, allocations: 4 kB / 1.004 GB, free: 13.9 MB / 0.7638 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/1.799, allocations: 0 / 1.004 GB, free: 13.9 MB / 0.7638 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00385/1.802, allocations: 1.097 MB / 1.005 GB, free: 12.79 MB / 0.7638 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003119/1.803, allocations: 148.2 kB / 1.005 GB, free: 12.62 MB / 0.7638 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000161/1.803, allocations: 12 kB / 1.005 GB, free: 12.61 MB / 0.7638 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007149/1.804, allocations: 95.86 kB / 1.005 GB, free: 12.52 MB / 0.7638 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000244/1.804, allocations: 48.36 kB / 1.005 GB, free: 12.47 MB / 0.7638 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.519e-05/1.804, allocations: 16 kB / 1.005 GB, free: 12.45 MB / 0.7638 GB Notification: Performance of sorting global known variables: time 0.0009578/1.805, allocations: 398.8 kB / 1.006 GB, free: 12.07 MB / 0.7638 GB Notification: Performance of sort global known variables: time 5.61e-07/1.805, allocations: 0 / 1.006 GB, free: 12.07 MB / 0.7638 GB Notification: Performance of remove unused functions: time 0.001496/1.806, allocations: 262.9 kB / 1.006 GB, free: 11.81 MB / 0.7638 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.004452/1.811, allocations: 1.655 MB / 1.008 GB, free: 10.12 MB / 0.7638 GB Notification: Performance of simCode: created initialization part: time 0.00438/1.815, allocations: 1.245 MB / 1.009 GB, free: 8.832 MB / 0.7638 GB Notification: Performance of simCode: created event and clocks part: time 1.171e-05/1.815, allocations: 0 / 1.009 GB, free: 8.832 MB / 0.7638 GB Notification: Performance of simCode: created simulation system equations: time 0.001394/1.817, allocations: 350.9 kB / 1.009 GB, free: 8.492 MB / 0.7638 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001469/1.818, allocations: 107.7 kB / 1.009 GB, free: 8.387 MB / 0.7638 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01527/1.834, allocations: 5.497 MB / 1.015 GB, free: 2.789 MB / 0.7638 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007666/1.835, allocations: 0.9259 MB / 1.016 GB, free: 1.836 MB / 0.7638 GB Notification: Performance of simCode: alias equations: time 0.000632/1.835, allocations: 84.97 kB / 1.016 GB, free: 1.75 MB / 0.7638 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006161/1.836, allocations: 259.3 kB / 1.016 GB, free: 1.496 MB / 0.7638 GB Notification: Performance of SimCode: time 1.913e-06/1.836, allocations: 0 / 1.016 GB, free: 1.496 MB / 0.7638 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04618/1.882, allocations: 12.69 MB / 1.028 GB, free: 5.051 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004849/1.883, allocations: 218.3 kB / 1.029 GB, free: 4.797 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.976/5.858, allocations: 0 / 1.029 GB, free: 4.797 MB / 0.7794 GB (rm -f Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; mkfifo Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe >> ../files/Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_DualFanDualDuct_Controls_Examples_RoomMixingBox.fmu > Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Examples.DualFanDualDuct.Controls.Examples.RoomMixingBox_res.mat does not exist to compare? outputFormat=mat