Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_8_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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002192/0.002192, allocations: 192.8 kB / 16.14 MB, free: 6.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.374/1.374, allocations: 205.1 MB / 222 MB, free: 4.715 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.593/1.593, allocations: 292.3 MB / 0.5484 GB, free: 13.68 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 69.17 kB / 0.6709 GB, free: 26.3 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1786/0.18, allocations: 114.5 MB / 0.7828 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter): time 0.001615/0.1817, allocations: 0.7467 MB / 0.7835 GB, free: 13.16 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001286/0.183, allocations: 1.224 MB / 0.7847 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.005e-05/0.183, allocations: 4 kB / 0.7847 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.86e-05/0.183, allocations: 7.922 kB / 0.7847 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.577e-05/0.1831, allocations: 7.922 kB / 0.7847 GB, free: 11.9 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004957/0.1836, allocations: 202.9 kB / 0.7849 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001311/0.1837, allocations: 155.8 kB / 0.7851 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 7.7e-05/0.1838, allocations: 8 kB / 0.7851 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.61e-05/0.1839, allocations: 71.81 kB / 0.7852 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.081e-05/0.184, allocations: 47.86 kB / 0.7852 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.931e-05/0.184, allocations: 11.94 kB / 0.7852 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.566e-05/0.1841, allocations: 20 kB / 0.7852 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.324e-05/0.1841, allocations: 15.97 kB / 0.7853 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.642e-05/0.1842, allocations: 51.83 kB / 0.7853 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001759/0.1844, allocations: 147.9 kB / 0.7854 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.1844, allocations: 0 / 0.7854 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of FrontEnd: time 8.72e-07/0.1844, allocations: 0 / 0.7854 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.035e-06/0.1844, allocations: 4 kB / 0.7854 GB, free: 11.18 MB / 0.6075 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.0004517/0.1849, allocations: 442.7 kB / 0.7859 GB, free: 10.69 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.254e-05/0.1849, allocations: 8.031 kB / 0.7859 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.8e-05/0.1849, allocations: 34.75 kB / 0.7859 GB, free: 10.64 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.735e-05/0.185, allocations: 12.84 kB / 0.7859 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.451e-05/0.1851, allocations: 168.3 kB / 0.7861 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.764e-05/0.1851, allocations: 8.375 kB / 0.7861 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.008e-05/0.1852, allocations: 12.38 kB / 0.7861 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001012/0.1853, allocations: 54.16 kB / 0.7862 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.1853, allocations: 11.94 kB / 0.7862 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.395e-06/0.1853, allocations: 7.938 kB / 0.7862 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.1853, allocations: 0 / 0.7862 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.357e-05/0.1853, allocations: 12 kB / 0.7862 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004314/0.1858, allocations: 360.6 kB / 0.7865 GB, free: 9.91 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 7.942e-05/0.1859, allocations: 38.5 kB / 0.7866 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.902e-05/0.1859, allocations: 20.86 kB / 0.7866 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 5.079e-06/0.1859, allocations: 0 / 0.7866 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001425/0.1861, allocations: 91.44 kB / 0.7867 GB, free: 9.738 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=9): time 1.162e-06/0.1861, allocations: 0 / 0.7867 GB, free: 9.738 MB / 0.6075 GB Notification: Performance of matching and sorting (n=9): time 0.0002469/0.1863, allocations: 125.5 kB / 0.7868 GB, free: 9.609 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.535e-05/0.1864, allocations: 55.41 kB / 0.7868 GB, free: 9.543 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.364e-05/0.1865, allocations: 121.8 kB / 0.787 GB, free: 9.414 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.176e-05/0.1865, allocations: 41.7 kB / 0.787 GB, free: 9.367 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.219e-05/0.1866, allocations: 92.28 kB / 0.7871 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.886e-05/0.1866, allocations: 19.8 kB / 0.7871 GB, free: 9.25 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.651e-05/0.1867, allocations: 49.69 kB / 0.7872 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.283e-05/0.1868, allocations: 318.8 kB / 0.7875 GB, free: 8.875 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001255/0.1869, allocations: 63.95 kB / 0.7875 GB, free: 8.812 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001543/0.1871, allocations: 114 kB / 0.7876 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000189/0.1873, allocations: 177.3 kB / 0.7878 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1873, allocations: 4 kB / 0.7878 GB, free: 8.469 MB / 0.6075 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004023/0.1877, allocations: 284.8 kB / 0.7881 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.69e-05/0.1877, allocations: 69.42 kB / 0.7881 GB, free: 8.094 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.1877, allocations: 3.938 kB / 0.7881 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.1878, allocations: 4 kB / 0.7881 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.133e-05/0.1878, allocations: 8 kB / 0.7882 GB, free: 8.078 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.845e-06/0.1878, allocations: 7.938 kB / 0.7882 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003245/0.1882, allocations: 60.41 kB / 0.7882 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.736e-05/0.1882, allocations: 15.92 kB / 0.7882 GB, free: 7.996 MB / 0.6075 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 (onCounter.y,$PRE.onCounter.y,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,reset.y,$PRE.reset.y,$whenCondition2,booPul.y,$PRE.booPul.y,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.838e-05/0.1883, allocations: 133.8 kB / 0.7884 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.357e-05/0.1883, allocations: 7.906 kB / 0.7884 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.077e-05/0.1883, allocations: 8.375 kB / 0.7884 GB, free: 7.84 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.1883, allocations: 0 / 0.7884 GB, free: 7.84 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.1883, allocations: 4 kB / 0.7884 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.1883, allocations: 0 / 0.7884 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002826/0.1886, allocations: 354.5 kB / 0.7887 GB, free: 7.434 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1886, allocations: 3.984 kB / 0.7887 GB, free: 7.43 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.217e-05/0.1887, allocations: 7.938 kB / 0.7887 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.1887, allocations: 0 / 0.7887 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.765e-06/0.1887, allocations: 0 / 0.7887 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1887, allocations: 0 / 0.7887 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.1887, allocations: 4 kB / 0.7887 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001677/0.1889, allocations: 203.3 kB / 0.7889 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.055e-05/0.1889, allocations: 85 kB / 0.789 GB, free: 7.102 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.753e-05/0.1889, allocations: 4 kB / 0.789 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.875e-05/0.189, allocations: 0 / 0.789 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.896e-05/0.189, allocations: 11.98 kB / 0.789 GB, free: 7.086 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.247e-05/0.189, allocations: 7.938 kB / 0.789 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.177e-05/0.1891, allocations: 91.81 kB / 0.7891 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1891, allocations: 0 / 0.7891 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002519/0.1893, allocations: 36 kB / 0.7892 GB, free: 6.953 MB / 0.6075 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004222/0.1898, allocations: 0.7398 MB / 0.7899 GB, free: 6.188 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000305/0.1901, allocations: 254.6 kB / 0.7901 GB, free: 5.914 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1901, allocations: 4.312 kB / 0.7901 GB, free: 5.91 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 5.845e-05/0.1902, allocations: 31.98 kB / 0.7902 GB, free: 5.879 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/0.1904, allocations: 26.86 kB / 0.7902 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001778/0.1922, allocations: 1.865 MB / 0.792 GB, free: 3.859 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002177/0.1925, allocations: 0.689 MB / 0.7927 GB, free: 3.145 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.492e-05/0.1925, allocations: 4.672 kB / 0.7927 GB, free: 3.141 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.332e-05/0.1925, allocations: 19.44 kB / 0.7927 GB, free: 3.121 MB / 0.6075 GB Notification: Performance of SimCode: time 2.31e-07/0.1925, allocations: 0 / 0.7927 GB, free: 3.121 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2207/0.4132, allocations: 2.793 MB / 0.7954 GB, free: 456 kB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001926/0.4134, allocations: 211.4 kB / 0.7956 GB, free: 188 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.607/2.02, allocations: 3.938 kB / 0.7956 GB, free: 184 kB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1)