Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.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.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",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.72/2.72, allocations: 287.5 MB / 302.4 MB, free: 8.262 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.002573/0.002572, allocations: 182.4 kB / 371 MB, free: 10.89 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.22/2.22, allocations: 205.4 MB / 0.6297 GB, free: 10.65 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.0008935/0.0008933, allocations: 89.91 kB / 0.743 GB, free: 6.656 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005047/0.0005049, allocations: 12.25 kB / 0.8659 GB, free: 140.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2188/0.2194, allocations: 115.3 MB / 0.9785 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.0008952/0.2203, allocations: 401.8 kB / 0.9788 GB, free: 27.9 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001611/0.2219, allocations: 1.177 MB / 0.98 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.065e-05/0.222, allocations: 0 / 0.98 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.165e-05/0.222, allocations: 3.938 kB / 0.98 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.795e-05/0.2221, allocations: 15.91 kB / 0.98 GB, free: 26.69 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008213/0.223, allocations: 196.7 kB / 0.9802 GB, free: 26.5 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001706/0.2231, allocations: 139.7 kB / 0.9803 GB, free: 26.37 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.86e-05/0.2232, allocations: 11.98 kB / 0.9804 GB, free: 26.36 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001001/0.2234, allocations: 63.88 kB / 0.9804 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001014/0.2235, allocations: 39.88 kB / 0.9804 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.374e-05/0.2235, allocations: 12 kB / 0.9805 GB, free: 26.24 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000111/0.2236, allocations: 19.98 kB / 0.9805 GB, free: 26.22 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.11e-05/0.2237, allocations: 11.98 kB / 0.9805 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.481e-05/0.2237, allocations: 45.64 kB / 0.9805 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001661/0.2239, allocations: 112 kB / 0.9806 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.2239, allocations: 0 / 0.9806 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.663e-06/0.224, allocations: 4 kB / 0.9806 GB, free: 26.05 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.488e-06/0.224, allocations: 0 / 0.9806 GB, free: 26.05 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004294/0.2244, allocations: 408.6 kB / 0.981 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.2245, allocations: 12.02 kB / 0.981 GB, free: 25.58 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.77e-05/0.2245, allocations: 30.56 kB / 0.9811 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.758e-05/0.2246, allocations: 15.95 kB / 0.9811 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.652e-05/0.2247, allocations: 175 kB / 0.9813 GB, free: 25.31 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.569e-05/0.2247, allocations: 4 kB / 0.9813 GB, free: 25.31 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.326e-05/0.2248, allocations: 8 kB / 0.9813 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001319/0.2249, allocations: 61.61 kB / 0.9813 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.769e-06/0.2249, allocations: 0 / 0.9813 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.2249, allocations: 0 / 0.9813 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.72e-06/0.225, allocations: 0 / 0.9813 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.22e-05/0.225, allocations: 15.98 kB / 0.9813 GB, free: 25.22 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005509/0.2256, allocations: 360.7 kB / 0.9817 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 9.964e-05/0.2257, allocations: 46.44 kB / 0.9817 GB, free: 24.76 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.162e-05/0.2257, allocations: 16.86 kB / 0.9817 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.084e-05/0.2258, allocations: 96 / 0.9817 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002069/0.226, allocations: 91.25 kB / 0.9818 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=9): time 1.964e-06/0.226, allocations: 4 kB / 0.9818 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of matching and sorting (n=9): time 0.0003477/0.2264, allocations: 129.5 kB / 0.982 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.223e-05/0.2264, allocations: 51.41 kB / 0.982 GB, free: 24.44 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.79e-05/0.2265, allocations: 126.1 kB / 0.9821 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.95e-05/0.2266, allocations: 33.7 kB / 0.9822 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 6.376e-05/0.2266, allocations: 88.38 kB / 0.9822 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.26e-05/0.2267, allocations: 23.72 kB / 0.9823 GB, free: 24.15 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.025e-05/0.2267, allocations: 8 kB / 0.9823 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.057e-05/0.2268, allocations: 318.8 kB / 0.9826 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002069/0.227, allocations: 63.95 kB / 0.9826 GB, free: 23.76 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002257/0.2272, allocations: 106 kB / 0.9827 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002163/0.2274, allocations: 119.4 kB / 0.9829 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.2275, allocations: 0 / 0.9829 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006571/0.2281, allocations: 284.7 kB / 0.9831 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.502e-05/0.2282, allocations: 69.42 kB / 0.9832 GB, free: 23.13 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.2282, allocations: 4 kB / 0.9832 GB, free: 23.13 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.2282, allocations: 4 kB / 0.9832 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.155e-05/0.2283, allocations: 11.94 kB / 0.9832 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.2283, allocations: 0 / 0.9832 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006423/0.229, allocations: 85.77 kB / 0.9833 GB, free: 23.03 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.654e-05/0.2291, allocations: 19.98 kB / 0.9833 GB, free: 23.01 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.onCounter.y,onCounter.y,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition2,$PRE.reset.y,reset.y,$whenCondition1,$PRE.booPul.y,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * 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.0001186/0.2292, allocations: 123.1 kB / 0.9834 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.117e-05/0.2292, allocations: 7.906 kB / 0.9834 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.464e-05/0.2293, allocations: 12.36 kB / 0.9835 GB, free: 22.87 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.2293, allocations: 0 / 0.9835 GB, free: 22.87 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.2293, allocations: 7.953 kB / 0.9835 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.2293, allocations: 3.938 kB / 0.9835 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003714/0.2297, allocations: 354.5 kB / 0.9838 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.2297, allocations: 480 / 0.9838 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.347e-05/0.2297, allocations: 4 kB / 0.9838 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.2297, allocations: 0 / 0.9838 GB, free: 22.45 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.505e-05/0.2298, allocations: 7.984 kB / 0.9838 GB, free: 22.44 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.827e-06/0.2298, allocations: 7.953 kB / 0.9838 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.2298, allocations: 3.938 kB / 0.9838 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002171/0.23, allocations: 195.4 kB / 0.984 GB, free: 22.22 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.805e-05/0.2301, allocations: 77.11 kB / 0.9841 GB, free: 22.13 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.753e-05/0.2301, allocations: 11.98 kB / 0.9841 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.499e-05/0.2302, allocations: 0 / 0.9841 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.42e-05/0.2302, allocations: 7.953 kB / 0.9841 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.892e-05/0.2303, allocations: 11.92 kB / 0.9841 GB, free: 22.1 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.933e-05/0.2303, allocations: 95.44 kB / 0.9842 GB, free: 22 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.51e-07/0.2303, allocations: 0 / 0.9842 GB, free: 22 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003577/0.2307, allocations: 35.98 kB / 0.9842 GB, free: 21.97 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: 9 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition2,$whenCondition1,onCounter.y,booPul.y,reset.y) * Number of discrete states: 1 (onCounter.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0004788/0.2312, allocations: 0.7358 MB / 0.985 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004748/0.2317, allocations: 250.7 kB / 0.9852 GB, free: 20.93 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.2317, allocations: 0 / 0.9852 GB, free: 20.93 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 8.183e-05/0.2318, allocations: 35.92 kB / 0.9852 GB, free: 20.9 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003972/0.2322, allocations: 24.62 kB / 0.9853 GB, free: 20.88 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001559/0.2338, allocations: 0.7548 MB / 0.986 GB, free: 20.06 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001396/0.2339, allocations: 0.6887 MB / 0.9867 GB, free: 19.35 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.98e-05/0.234, allocations: 12.67 kB / 0.9867 GB, free: 19.34 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.663e-05/0.234, allocations: 23.42 kB / 0.9867 GB, free: 19.31 MB / 0.6198 GB Notification: Performance of SimCode: time 7.21e-07/0.234, allocations: 0 / 0.9867 GB, free: 19.31 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02125/0.2553, allocations: 2.694 MB / 0.9893 GB, free: 16.77 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001577/0.2555, allocations: 192.3 kB / 0.9895 GB, free: 16.54 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.634/2.889, allocations: 0 / 0.9895 GB, free: 16.54 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1)