Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.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 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",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.0007876/0.0007877, allocations: 91.14 kB / 15.06 MB, free: 1.098 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.0008023/0.0008024, allocations: 172.7 kB / 15.95 MB, free: 208 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.328/1.328, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.381/2.381, allocations: 390.4 MB / 0.6655 GB, free: 2.875 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004086/0.0004087, allocations: 8 kB / 0.8149 GB, free: 14.1 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6221/0.6225, allocations: 142.3 MB / 0.9539 GB, free: 8.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.001482/0.6241, allocations: 1.217 MB / 0.955 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006244/0.6247, allocations: 426.3 kB / 0.9555 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.621e-05/0.6248, allocations: 5.125 kB / 0.9555 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.063e-05/0.6249, allocations: 3.938 kB / 0.9555 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.001e-05/0.6249, allocations: 14.12 kB / 0.9555 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001775/0.6251, allocations: 20.61 kB / 0.9555 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000102/0.6252, allocations: 70.36 kB / 0.9556 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.743e-05/0.6253, allocations: 19.98 kB / 0.9556 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001089/0.6254, allocations: 38.03 kB / 0.9556 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.515e-05/0.6255, allocations: 33.45 kB / 0.9556 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.208e-05/0.6256, allocations: 3.656 kB / 0.9557 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.481e-05/0.6256, allocations: 3.562 kB / 0.9557 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.009e-05/0.6256, allocations: 10.09 kB / 0.9557 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.547e-05/0.6257, allocations: 31.42 kB / 0.9557 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.989e-05/0.6257, allocations: 50.77 kB / 0.9557 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.6258, allocations: 0 / 0.9557 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.363e-06/0.6258, allocations: 3.938 kB / 0.9557 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.777e-06/0.6258, allocations: 0.9375 kB / 0.9557 GB, free: 6.648 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005211/0.6263, allocations: 443.1 kB / 0.9562 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.6263, allocations: 9.969 kB / 0.9562 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.223e-05/0.6264, allocations: 39.94 kB / 0.9562 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.601e-05/0.6264, allocations: 12.3 kB / 0.9562 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001357/0.6266, allocations: 186.2 kB / 0.9564 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.307e-05/0.6266, allocations: 7.5 kB / 0.9564 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.857e-05/0.6266, allocations: 7.438 kB / 0.9564 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002708/0.6269, allocations: 98.16 kB / 0.9565 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.6269, allocations: 7.922 kB / 0.9565 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.6269, allocations: 1.062 kB / 0.9565 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.6269, allocations: 1.469 kB / 0.9565 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002701/0.6272, allocations: 94.36 kB / 0.9566 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004861/0.6277, allocations: 348.5 kB / 0.9569 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002599/0.628, allocations: 100.4 kB / 0.957 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001454/0.6281, allocations: 54.92 kB / 0.9571 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.808e-05/0.6282, allocations: 5.047 kB / 0.9571 GB, free: 5.379 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002699/0.6284, allocations: 115 kB / 0.9572 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.864e-06/0.6284, allocations: 0 / 0.9572 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0005874/0.629, allocations: 232.2 kB / 0.9574 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.03e-05/0.6291, allocations: 84.7 kB / 0.9575 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.368e-05/0.6292, allocations: 132.1 kB / 0.9576 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.477e-05/0.6292, allocations: 27.48 kB / 0.9577 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.206e-05/0.6292, allocations: 103.6 kB / 0.9578 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.937e-05/0.6293, allocations: 19.36 kB / 0.9578 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.935e-06/0.6293, allocations: 4 kB / 0.9578 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.752e-05/0.6293, allocations: 322.4 kB / 0.9581 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001544/0.6295, allocations: 50.81 kB / 0.9581 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001466/0.6297, allocations: 60.98 kB / 0.9582 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000159/0.6298, allocations: 97.78 kB / 0.9583 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.6298, allocations: 3.938 kB / 0.9583 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003979/0.6302, allocations: 233.2 kB / 0.9585 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.857e-05/0.6303, allocations: 61.59 kB / 0.9586 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.6303, allocations: 3.984 kB / 0.9586 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.6303, allocations: 1.156 kB / 0.9586 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001311/0.6304, allocations: 31.05 kB / 0.9586 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.291e-06/0.6305, allocations: 0 / 0.9586 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001273/0.6306, allocations: 19.2 kB / 0.9586 GB, free: 4.102 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.661e-05/0.6306, allocations: 6.25 kB / 0.9586 GB, free: 4.098 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,reqCou.nInc,$PRE.act1.T_start,act1.T_start,$PRE.act1.count,act1.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 7 * 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 9e-05/0.6307, allocations: 155 kB / 0.9588 GB, free: 3.938 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.876e-05/0.6307, allocations: 12.02 kB / 0.9588 GB, free: 3.93 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.908e-05/0.6308, allocations: 14.41 kB / 0.9588 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.6308, allocations: 1.531 kB / 0.9588 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.6308, allocations: 0 / 0.9588 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.6308, allocations: 1.438 kB / 0.9588 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004635/0.6313, allocations: 450.8 kB / 0.9592 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.6313, allocations: 3.953 kB / 0.9592 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.376e-05/0.6314, allocations: 17.98 kB / 0.9593 GB, free: 3.496 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.6314, allocations: 3.984 kB / 0.9593 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.6314, allocations: 1.156 kB / 0.9593 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.6314, allocations: 0 / 0.9593 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.6314, allocations: 1.312 kB / 0.9593 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003741/0.6318, allocations: 282 kB / 0.9595 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.327e-05/0.6318, allocations: 91.66 kB / 0.9596 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.457e-05/0.6319, allocations: 5.375 kB / 0.9596 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001423/0.632, allocations: 17.73 kB / 0.9596 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.304e-05/0.6321, allocations: 29.58 kB / 0.9597 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.6321, allocations: 1.375 kB / 0.9597 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.426e-05/0.6322, allocations: 101 kB / 0.9598 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6322, allocations: 0 / 0.9598 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002479/0.6324, allocations: 20.5 kB / 0.9598 GB, free: 3.055 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,reqCou.nInc,act1.T_start,act1.count) * Number of discrete states: 2 (act1.count,reqCou.nInc) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.0005358/0.633, allocations: 0.8174 MB / 0.9606 GB, free: 2.305 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003821/0.6334, allocations: 241.1 kB / 0.9608 GB, free: 2.125 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.6334, allocations: 4 kB / 0.9608 GB, free: 2.121 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001828/0.6336, allocations: 116.5 kB / 0.9609 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002823/0.6339, allocations: 8.031 kB / 0.9609 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001281/0.6351, allocations: 0.7184 MB / 0.9616 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001034/0.6353, allocations: 0.6928 MB / 0.9623 GB, free: 0.8047 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.142e-05/0.6353, allocations: 18.48 kB / 0.9623 GB, free: 0.793 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.142e-05/0.6354, allocations: 25.55 kB / 0.9624 GB, free: 0.7695 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.6354, allocations: 1.125 kB / 0.9624 GB, free: 0.7695 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01233/0.6477, allocations: 2.15 MB / 0.9645 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001749/0.6479, allocations: 215.8 kB / 0.9647 GB, free: 15.55 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.662/2.31, allocations: 0 / 0.9647 GB, free: 15.55 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat does not exist to compare? outputFormat=mat