Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,fileNamePrefix="Buildings_8_0_0_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/Buildings 8.0.0/package.mo): time 2.585/2.585, allocations: 287.5 MB / 302.4 MB, free: 8.246 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001431/0.001431, allocations: 186 kB / 371 MB, free: 10.87 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.292/2.292, allocations: 205.4 MB / 0.6297 GB, free: 10.53 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001284/0.001284, allocations: 92.55 kB / 0.743 GB, free: 6.52 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007016/0.0007019, allocations: 11.66 kB / 0.8659 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2787, allocations: 115.3 MB / 0.9785 GB, free: 28.25 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.001853/0.2807, allocations: 1.223 MB / 0.9797 GB, free: 27.01 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0009137/0.2816, allocations: 472.9 kB / 0.9801 GB, free: 26.54 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.473e-05/0.2817, allocations: 4 kB / 0.9801 GB, free: 26.54 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 8.858e-05/0.2818, allocations: 7.922 kB / 0.9801 GB, free: 26.53 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 5.836e-05/0.2819, allocations: 7.875 kB / 0.9801 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002013/0.2821, allocations: 23.95 kB / 0.9801 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001175/0.2822, allocations: 67.78 kB / 0.9802 GB, free: 26.43 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.2824, allocations: 20.17 kB / 0.9802 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.2825, allocations: 31.84 kB / 0.9803 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 8.642e-05/0.2826, allocations: 31.89 kB / 0.9803 GB, free: 26.35 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.679e-05/0.2826, allocations: 4 kB / 0.9803 GB, free: 26.34 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 2.056e-05/0.2827, allocations: 0 / 0.9803 GB, free: 26.34 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 3.553e-05/0.2827, allocations: 15.92 kB / 0.9803 GB, free: 26.33 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.016e-05/0.2828, allocations: 37.64 kB / 0.9803 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001001/0.2829, allocations: 52.12 kB / 0.9804 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.2829, allocations: 0 / 0.9804 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.525e-06/0.2829, allocations: 4 kB / 0.9804 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.468e-06/0.2829, allocations: 0 / 0.9804 GB, free: 26.23 MB / 0.6198 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.0007469/0.2837, allocations: 436.6 kB / 0.9808 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.2837, allocations: 8.031 kB / 0.9808 GB, free: 25.74 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.115e-05/0.2838, allocations: 42.5 kB / 0.9809 GB, free: 25.69 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.625e-05/0.2838, allocations: 19.84 kB / 0.9809 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001733/0.284, allocations: 182.9 kB / 0.9811 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.541e-05/0.2841, allocations: 8 kB / 0.9811 GB, free: 25.44 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.565e-05/0.2841, allocations: 4 kB / 0.9811 GB, free: 25.44 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004268/0.2845, allocations: 105.6 kB / 0.9812 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.2846, allocations: 0 / 0.9812 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.639e-05/0.2846, allocations: 0 / 0.9812 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.2846, allocations: 4 kB / 0.9812 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004542/0.2851, allocations: 83.94 kB / 0.9813 GB, free: 25.24 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007014/0.2858, allocations: 344.6 kB / 0.9816 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004464/0.2862, allocations: 98.52 kB / 0.9817 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002633/0.2865, allocations: 64.88 kB / 0.9817 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.2866, allocations: 0 / 0.9817 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004167/0.287, allocations: 115.4 kB / 0.9819 GB, free: 24.56 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 2.204e-06/0.287, allocations: 0 / 0.9819 GB, free: 24.56 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0009453/0.288, allocations: 239.1 kB / 0.9821 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.979e-05/0.288, allocations: 77.11 kB / 0.9822 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.2882, allocations: 136 kB / 0.9823 GB, free: 24.08 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.2882, allocations: 29.7 kB / 0.9823 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.247e-05/0.2883, allocations: 100.1 kB / 0.9824 GB, free: 23.94 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.613e-05/0.2883, allocations: 15.72 kB / 0.9824 GB, free: 23.93 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.19e-05/0.2883, allocations: 4 kB / 0.9824 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.199e-05/0.2884, allocations: 318.8 kB / 0.9827 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002709/0.2887, allocations: 59.91 kB / 0.9828 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002653/0.289, allocations: 55.95 kB / 0.9828 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002755/0.2893, allocations: 103.5 kB / 0.9829 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.2893, allocations: 0 / 0.9829 GB, free: 23.38 MB / 0.6198 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0006802/0.29, allocations: 232.9 kB / 0.9832 GB, free: 23.13 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.78e-05/0.29, allocations: 63.39 kB / 0.9832 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.2901, allocations: 3.953 kB / 0.9832 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.2901, allocations: 0 / 0.9832 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002059/0.2903, allocations: 23.98 kB / 0.9832 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.2903, allocations: 0 / 0.9832 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002308/0.2906, allocations: 23.92 kB / 0.9833 GB, free: 23 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.236e-05/0.2906, allocations: 4 kB / 0.9833 GB, free: 23 MB / 0.6198 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.0001203/0.2907, allocations: 151.5 kB / 0.9834 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.615e-05/0.2908, allocations: 11.91 kB / 0.9834 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.62e-05/0.2908, allocations: 12.72 kB / 0.9834 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.2908, allocations: 3.953 kB / 0.9834 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.2908, allocations: 0 / 0.9834 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.2908, allocations: 3.984 kB / 0.9834 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007928/0.2916, allocations: 444.2 kB / 0.9839 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.2917, allocations: 3.984 kB / 0.9839 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001584/0.2918, allocations: 19.98 kB / 0.9839 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.583e-06/0.2919, allocations: 3.953 kB / 0.9839 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.772e-05/0.2919, allocations: 4 kB / 0.9839 GB, free: 22.28 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/0.2919, allocations: 0 / 0.9839 GB, free: 22.28 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.2919, allocations: 3.938 kB / 0.9839 GB, free: 22.28 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006813/0.2926, allocations: 289.4 kB / 0.9842 GB, free: 21.97 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.596e-05/0.2927, allocations: 89.02 kB / 0.9843 GB, free: 21.87 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.535e-05/0.2927, allocations: 7.953 kB / 0.9843 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002445/0.293, allocations: 23.97 kB / 0.9843 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/0.2931, allocations: 23.97 kB / 0.9843 GB, free: 21.81 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.2931, allocations: 0 / 0.9843 GB, free: 21.81 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 7.32e-05/0.2932, allocations: 103.3 kB / 0.9844 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.51e-07/0.2932, allocations: 0 / 0.9844 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003089/0.2936, allocations: 16 kB / 0.9844 GB, free: 21.7 MB / 0.6198 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.0009029/0.2945, allocations: 0.8233 MB / 0.9852 GB, free: 20.84 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0006673/0.2952, allocations: 238.8 kB / 0.9855 GB, free: 20.58 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.2952, allocations: 0 / 0.9855 GB, free: 20.58 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.000318/0.2955, allocations: 123.3 kB / 0.9856 GB, free: 20.45 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000388/0.2959, allocations: 19.88 kB / 0.9856 GB, free: 20.43 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001965/0.2979, allocations: 0.72 MB / 0.9863 GB, free: 19.66 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001487/0.2981, allocations: 0.6965 MB / 0.987 GB, free: 18.94 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001035/0.2982, allocations: 11.98 kB / 0.987 GB, free: 18.93 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.242e-05/0.2983, allocations: 19.44 kB / 0.987 GB, free: 18.91 MB / 0.6198 GB Notification: Performance of SimCode: time 8.477e-06/0.2983, allocations: 0 / 0.987 GB, free: 18.91 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02416/0.3225, allocations: 2.138 MB / 0.9891 GB, free: 16.95 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002508/0.3228, allocations: 222.3 kB / 0.9893 GB, free: 16.71 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.424/2.747, allocations: 0 / 0.9893 GB, free: 16.71 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; mkfifo Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe >> ../files/Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter.fmu > Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.pipe 2>&1)