Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 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.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_latest_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.0008199/0.00082, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001401/0.001401, allocations: 168.7 kB / 15.95 MB, free: 204 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.447/1.447, allocations: 223.2 MB / 240 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.811/2.811, allocations: 409.4 MB / 0.684 GB, free: 0.9258 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003718/0.0003719, allocations: 8 kB / 0.8378 GB, free: 6.512 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7424/0.7428, allocations: 146.8 MB / 0.9811 GB, free: 6.258 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.001584/0.7444, allocations: 1.221 MB / 0.9823 GB, free: 5.031 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.000644/0.7451, allocations: 427.3 kB / 0.9827 GB, free: 4.605 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.132e-05/0.7452, allocations: 4 kB / 0.9828 GB, free: 4.602 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 8.202e-05/0.7452, allocations: 3.938 kB / 0.9828 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.196e-05/0.7453, allocations: 7.875 kB / 0.9828 GB, free: 4.59 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001884/0.7455, allocations: 27.95 kB / 0.9828 GB, free: 4.562 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001122/0.7456, allocations: 71.77 kB / 0.9829 GB, free: 4.492 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.7457, allocations: 20.17 kB / 0.9829 GB, free: 4.473 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 9.644e-05/0.7458, allocations: 35.83 kB / 0.9829 GB, free: 4.438 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 7.439e-05/0.7459, allocations: 31.91 kB / 0.9829 GB, free: 4.406 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.991e-05/0.7459, allocations: 4 kB / 0.9829 GB, free: 4.402 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.277e-05/0.746, allocations: 0 / 0.9829 GB, free: 4.402 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.869e-05/0.746, allocations: 15.92 kB / 0.983 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.059e-05/0.7461, allocations: 33.64 kB / 0.983 GB, free: 4.348 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 8.872e-05/0.7462, allocations: 62.14 kB / 0.9831 GB, free: 4.289 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.7462, allocations: 0 / 0.9831 GB, free: 4.289 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.693e-06/0.7462, allocations: 0 / 0.9831 GB, free: 4.289 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.7462, allocations: 0 / 0.9831 GB, free: 4.289 MB / 0.7325 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.000613/0.7468, allocations: 434.4 kB / 0.9835 GB, free: 3.805 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.7468, allocations: 8.031 kB / 0.9835 GB, free: 3.797 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.671e-05/0.7469, allocations: 46.55 kB / 0.9835 GB, free: 3.742 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.287e-05/0.7469, allocations: 7.906 kB / 0.9835 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000164/0.7471, allocations: 179 kB / 0.9837 GB, free: 3.52 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.7471, allocations: 4 kB / 0.9837 GB, free: 3.516 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.74e-05/0.7471, allocations: 4 kB / 0.9837 GB, free: 3.512 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002858/0.7474, allocations: 109.5 kB / 0.9838 GB, free: 3.398 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.184e-06/0.7474, allocations: 0 / 0.9838 GB, free: 3.398 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.7475, allocations: 4 kB / 0.9838 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.7475, allocations: 4 kB / 0.9838 GB, free: 3.391 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002732/0.7478, allocations: 87.86 kB / 0.9839 GB, free: 3.305 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005451/0.7483, allocations: 348.6 kB / 0.9842 GB, free: 2.914 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002802/0.7486, allocations: 98.52 kB / 0.9843 GB, free: 2.809 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00016/0.7488, allocations: 56.94 kB / 0.9844 GB, free: 2.75 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.933e-05/0.7488, allocations: 7.984 kB / 0.9844 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002814/0.7491, allocations: 111.4 kB / 0.9845 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 1.462e-06/0.7491, allocations: 0 / 0.9845 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of matching and sorting (n=7): time 0.0005962/0.7497, allocations: 231.2 kB / 0.9847 GB, free: 2.383 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.624e-05/0.7498, allocations: 81.11 kB / 0.9848 GB, free: 2.285 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.7499, allocations: 131.9 kB / 0.9849 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.7499, allocations: 33.7 kB / 0.985 GB, free: 2.105 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.227e-05/0.75, allocations: 100 kB / 0.985 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.811e-05/0.75, allocations: 11.75 kB / 0.9851 GB, free: 1.992 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.111e-05/0.75, allocations: 8 kB / 0.9851 GB, free: 1.984 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.332e-05/0.7501, allocations: 322.8 kB / 0.9854 GB, free: 1.66 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001634/0.7503, allocations: 59.95 kB / 0.9854 GB, free: 1.602 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001442/0.7504, allocations: 51.91 kB / 0.9855 GB, free: 1.551 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001755/0.7506, allocations: 107.4 kB / 0.9856 GB, free: 1.434 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.7506, allocations: 4 kB / 0.9856 GB, free: 1.43 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004112/0.751, allocations: 220.9 kB / 0.9858 GB, free: 1.195 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.413e-05/0.7511, allocations: 63.39 kB / 0.9859 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.7511, allocations: 8 kB / 0.9859 GB, free: 1.113 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.7511, allocations: 3.984 kB / 0.9859 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.7513, allocations: 24.27 kB / 0.9859 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.7513, allocations: 0 / 0.9859 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001237/0.7514, allocations: 23.88 kB / 0.9859 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.602e-05/0.7514, allocations: 7.938 kB / 0.9859 GB, free: 1.055 MB / 0.7325 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.0001086/0.7516, allocations: 151.5 kB / 0.9861 GB, free: 0.8906 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.794e-05/0.7516, allocations: 4 kB / 0.9861 GB, free: 0.8867 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.357e-05/0.7516, allocations: 24.64 kB / 0.9861 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.7516, allocations: 0 / 0.9861 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.7516, allocations: 0 / 0.9861 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.7516, allocations: 0 / 0.9861 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005445/0.7522, allocations: 456 kB / 0.9865 GB, free: 360 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.7522, allocations: 0 / 0.9865 GB, free: 360 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.596e-05/0.7523, allocations: 15.98 kB / 0.9865 GB, free: 344 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.7523, allocations: 0 / 0.9865 GB, free: 344 kB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.355e-05/0.7523, allocations: 4 kB / 0.9865 GB, free: 340 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.7523, allocations: 4 kB / 0.9866 GB, free: 336 kB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.7523, allocations: 0 / 0.9866 GB, free: 336 kB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004067/0.7528, allocations: 297.3 kB / 0.9868 GB, free: 16 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.418e-05/0.7528, allocations: 88.95 kB / 0.9869 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.464e-05/0.7528, allocations: 3.984 kB / 0.9869 GB, free: 15.91 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000142/0.753, allocations: 15.98 kB / 0.9869 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.924e-05/0.7531, allocations: 23.97 kB / 0.987 GB, free: 15.87 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.219e-05/0.7531, allocations: 4 kB / 0.987 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 6.188e-05/0.7532, allocations: 105.2 kB / 0.9871 GB, free: 15.76 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7532, allocations: 0 / 0.9871 GB, free: 15.76 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002417/0.7534, allocations: 20 kB / 0.9871 GB, free: 15.74 MB / 0.7481 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.0007053/0.7542, allocations: 0.8204 MB / 0.9879 GB, free: 14.89 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0004236/0.7546, allocations: 238.7 kB / 0.9881 GB, free: 14.63 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.7546, allocations: 0 / 0.9881 GB, free: 14.63 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001976/0.7548, allocations: 115.3 kB / 0.9882 GB, free: 14.51 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002814/0.7551, allocations: 15.98 kB / 0.9882 GB, free: 14.49 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001378/0.7565, allocations: 0.7216 MB / 0.9889 GB, free: 13.73 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000237/0.7567, allocations: 0.6965 MB / 0.9896 GB, free: 13 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.2e-05/0.7568, allocations: 7.984 kB / 0.9896 GB, free: 13 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.595e-05/0.7569, allocations: 23.44 kB / 0.9897 GB, free: 12.97 MB / 0.7481 GB Notification: Performance of SimCode: time 2.4e-07/0.7569, allocations: 0 / 0.9897 GB, free: 12.97 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01276/0.7696, allocations: 2.144 MB / 0.9917 GB, free: 11.02 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001966/0.7699, allocations: 227.5 kB / 0.992 GB, free: 10.77 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.856/2.625, allocations: 2.188 kB / 0.992 GB, free: 10.77 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_res.mat does not exist to compare? outputFormat=mat