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.001117/0.001117, allocations: 103.3 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.001296/0.001296, allocations: 173.3 kB / 15.95 MB, free: 212 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.413/1.413, allocations: 223.2 MB / 239.9 MB, free: 5.363 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.517/2.517, allocations: 390.3 MB / 0.6653 GB, free: 3.031 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003501/0.0003501, allocations: 8 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8282/0.8286, allocations: 142.3 MB / 0.9536 GB, free: 8.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.00176/0.8304, allocations: 1.204 MB / 0.9548 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000702/0.8311, allocations: 430 kB / 0.9552 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.935e-05/0.8312, allocations: 0 / 0.9552 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 8.932e-05/0.8313, allocations: 5.062 kB / 0.9552 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.306e-05/0.8313, allocations: 18.38 kB / 0.9552 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002064/0.8315, allocations: 31.56 kB / 0.9552 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.874e-05/0.8316, allocations: 44.16 kB / 0.9553 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001167/0.8318, allocations: 11.67 kB / 0.9553 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001355/0.8319, allocations: 32.94 kB / 0.9553 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.131e-05/0.832, allocations: 41.33 kB / 0.9554 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.057e-05/0.832, allocations: 3.25 kB / 0.9554 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.539e-05/0.8321, allocations: 3.062 kB / 0.9554 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.584e-05/0.8321, allocations: 6.75 kB / 0.9554 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.734e-05/0.8321, allocations: 35.73 kB / 0.9554 GB, free: 6.676 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.508e-05/0.8322, allocations: 50.89 kB / 0.9555 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.8323, allocations: 0 / 0.9555 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.144e-06/0.8323, allocations: 0 / 0.9555 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.909e-06/0.8323, allocations: 0 / 0.9555 GB, free: 6.641 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.0006643/0.8329, allocations: 443.9 kB / 0.9559 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.441e-05/0.833, allocations: 12.66 kB / 0.9559 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.888e-05/0.833, allocations: 37.19 kB / 0.9559 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.356e-05/0.8331, allocations: 12.23 kB / 0.9559 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001843/0.8333, allocations: 182.2 kB / 0.9561 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.167e-06/0.8333, allocations: 2.594 kB / 0.9561 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.281e-05/0.8333, allocations: 5.438 kB / 0.9561 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002981/0.8336, allocations: 112.2 kB / 0.9562 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.8337, allocations: 1.406 kB / 0.9562 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/0.8337, allocations: 0 / 0.9562 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.8337, allocations: 1.344 kB / 0.9562 GB, free: 5.84 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002966/0.834, allocations: 95.17 kB / 0.9563 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005555/0.8346, allocations: 347.8 kB / 0.9567 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003036/0.8349, allocations: 100.9 kB / 0.9568 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.995e-05/0.8349, allocations: 1.438 kB / 0.9568 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003215/0.8352, allocations: 111.1 kB / 0.9569 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.8352, allocations: 0 / 0.9569 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0006562/0.8359, allocations: 235.5 kB / 0.9571 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.603e-05/0.836, allocations: 79.17 kB / 0.9572 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.8361, allocations: 134.8 kB / 0.9573 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.931e-05/0.8361, allocations: 28.17 kB / 0.9573 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.446e-05/0.8362, allocations: 98.81 kB / 0.9574 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.007e-05/0.8362, allocations: 22.92 kB / 0.9574 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.195e-06/0.8362, allocations: 2.312 kB / 0.9574 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.31e-05/0.8363, allocations: 320 kB / 0.9577 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001659/0.8364, allocations: 58.3 kB / 0.9578 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001375/0.8366, allocations: 54.47 kB / 0.9579 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001692/0.8368, allocations: 102 kB / 0.9579 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.8368, allocations: 4 kB / 0.958 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004203/0.8372, allocations: 228.3 kB / 0.9582 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.281e-05/0.8373, allocations: 66.22 kB / 0.9582 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.8373, allocations: 1.469 kB / 0.9582 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.8373, allocations: 4 kB / 0.9582 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001361/0.8374, allocations: 21.61 kB / 0.9583 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.8374, allocations: 1.781 kB / 0.9583 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001347/0.8376, allocations: 22.56 kB / 0.9583 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.903e-05/0.8376, allocations: 5.812 kB / 0.9583 GB, free: 4.121 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 0.0001035/0.8377, allocations: 146.7 kB / 0.9584 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.817e-05/0.8377, allocations: 13.31 kB / 0.9584 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.556e-05/0.8378, allocations: 18.44 kB / 0.9585 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.8378, allocations: 1.781 kB / 0.9585 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.8378, allocations: 0 / 0.9585 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.8378, allocations: 0 / 0.9585 GB, free: 3.941 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005086/0.8383, allocations: 451 kB / 0.9589 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.8383, allocations: 0 / 0.9589 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.8e-05/0.8384, allocations: 21.69 kB / 0.9589 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.8384, allocations: 0 / 0.9589 GB, free: 3.523 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.8385, allocations: 9.312 kB / 0.9589 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.8385, allocations: 5.312 kB / 0.9589 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.8385, allocations: 0 / 0.9589 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004084/0.8389, allocations: 278.3 kB / 0.9592 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.396e-05/0.8389, allocations: 87.48 kB / 0.9593 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.574e-05/0.839, allocations: 13.34 kB / 0.9593 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001448/0.8391, allocations: 17.39 kB / 0.9593 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.8392, allocations: 21.97 kB / 0.9593 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.979e-06/0.8392, allocations: 1.531 kB / 0.9593 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.325e-05/0.8393, allocations: 105.8 kB / 0.9594 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.31e-07/0.8393, allocations: 4 kB / 0.9594 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002361/0.8396, allocations: 16.75 kB / 0.9594 GB, free: 3.078 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.0006172/0.8402, allocations: 0.8134 MB / 0.9602 GB, free: 2.332 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004358/0.8406, allocations: 246.1 kB / 0.9605 GB, free: 2.148 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.8406, allocations: 0 / 0.9605 GB, free: 2.148 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002086/0.8409, allocations: 111.9 kB / 0.9606 GB, free: 2.066 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002101/0.8411, allocations: 18 kB / 0.9606 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001375/0.8425, allocations: 0.7129 MB / 0.9613 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001491/0.8426, allocations: 0.6957 MB / 0.962 GB, free: 0.8242 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.995e-05/0.8427, allocations: 14.27 kB / 0.962 GB, free: 0.8164 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.06e-05/0.8427, allocations: 26.23 kB / 0.962 GB, free: 0.793 MB / 0.7169 GB Notification: Performance of SimCode: time 4.7e-07/0.8427, allocations: 0 / 0.962 GB, free: 0.793 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01223/0.855, allocations: 2.129 MB / 0.9641 GB, free: 15.83 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001774/0.8552, allocations: 214.9 kB / 0.9643 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.71/2.565, allocations: 3.844 kB / 0.9643 GB, free: 15.59 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