Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.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.Discrete.Examples.Sampler,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",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.0008956/0.0008957, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005528/0.005528, allocations: 169.9 kB / 16.26 MB, free: 6.676 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.292/1.292, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.535/1.535, allocations: 292.7 MB / 0.5502 GB, free: 14.46 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.0004669/0.0004669, allocations: 15.34 kB / 0.6744 GB, free: 25.68 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1832/0.1837, allocations: 116.3 MB / 0.788 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.0007184/0.1845, allocations: 409.5 kB / 0.7884 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001195/0.1857, allocations: 1.04 MB / 0.7894 GB, free: 10 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.921e-05/0.1857, allocations: 8 kB / 0.7894 GB, free: 9.996 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.734e-05/0.1857, allocations: 3.938 kB / 0.7894 GB, free: 9.992 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.811e-05/0.1858, allocations: 0 / 0.7894 GB, free: 9.992 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002174/0.186, allocations: 31.91 kB / 0.7895 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.586e-05/0.1861, allocations: 43.91 kB / 0.7895 GB, free: 9.918 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.879e-05/0.1862, allocations: 8 kB / 0.7895 GB, free: 9.91 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.579e-05/0.1863, allocations: 19.86 kB / 0.7895 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.726e-05/0.1863, allocations: 15.92 kB / 0.7895 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.522e-05/0.1864, allocations: 11.98 kB / 0.7896 GB, free: 9.863 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.195e-05/0.1864, allocations: 15.98 kB / 0.7896 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.98e-05/0.1865, allocations: 11.92 kB / 0.7896 GB, free: 9.836 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.178e-05/0.1865, allocations: 37.64 kB / 0.7896 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001184/0.1866, allocations: 51.83 kB / 0.7897 GB, free: 9.742 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1866, allocations: 0 / 0.7897 GB, free: 9.742 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.833e-06/0.1866, allocations: 0 / 0.7897 GB, free: 9.742 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.346e-06/0.1866, allocations: 0 / 0.7897 GB, free: 9.742 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004892/0.1871, allocations: 367.7 kB / 0.79 GB, free: 9.332 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.1872, allocations: 8.031 kB / 0.79 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.422e-05/0.1872, allocations: 34.75 kB / 0.7901 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.368e-05/0.1873, allocations: 8.844 kB / 0.7901 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001088/0.1874, allocations: 172.3 kB / 0.7902 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.367e-06/0.1874, allocations: 384 / 0.7902 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.516e-05/0.1874, allocations: 4.375 kB / 0.7902 GB, free: 9.062 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001825/0.1876, allocations: 74.11 kB / 0.7903 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.293e-06/0.1876, allocations: 3.938 kB / 0.7903 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.025e-05/0.1876, allocations: 3.984 kB / 0.7903 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.1876, allocations: 4 kB / 0.7903 GB, free: 8.973 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001818/0.1878, allocations: 51.97 kB / 0.7904 GB, free: 8.922 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003922/0.1882, allocations: 276.8 kB / 0.7906 GB, free: 8.602 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001575/0.1884, allocations: 66.48 kB / 0.7907 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/0.1885, allocations: 40.95 kB / 0.7907 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.531e-05/0.1885, allocations: 0 / 0.7907 GB, free: 8.484 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001782/0.1887, allocations: 79.23 kB / 0.7908 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 1.152e-06/0.1887, allocations: 4 kB / 0.7908 GB, free: 8.391 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.0003835/0.1891, allocations: 137.8 kB / 0.7909 GB, free: 8.25 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.65e-05/0.1892, allocations: 55.41 kB / 0.791 GB, free: 8.184 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.498e-05/0.1892, allocations: 109.9 kB / 0.7911 GB, free: 8.066 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.341e-05/0.1893, allocations: 25.7 kB / 0.7911 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.668e-05/0.1893, allocations: 92.12 kB / 0.7912 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.668e-05/0.1893, allocations: 7.812 kB / 0.7912 GB, free: 7.934 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.522e-05/0.1893, allocations: 17.72 kB / 0.7912 GB, free: 7.91 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001033/0.1895, allocations: 322.8 kB / 0.7915 GB, free: 7.586 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/0.1896, allocations: 31.98 kB / 0.7916 GB, free: 7.555 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001031/0.1897, allocations: 51.42 kB / 0.7916 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002059/0.1899, allocations: 95.31 kB / 0.7917 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.1899, allocations: 0 / 0.7917 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002513/0.1902, allocations: 117.5 kB / 0.7918 GB, free: 7.266 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.1902, allocations: 8 kB / 0.7918 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.1902, allocations: 0 / 0.7918 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.1902, allocations: 3.984 kB / 0.7918 GB, free: 7.254 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.373e-05/0.1903, allocations: 19.92 kB / 0.7919 GB, free: 7.234 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.1903, allocations: 4 kB / 0.7919 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.165e-05/0.1904, allocations: 12.03 kB / 0.7919 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.1904, allocations: 4 kB / 0.7919 GB, free: 7.215 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * 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.22e-05/0.1905, allocations: 121.8 kB / 0.792 GB, free: 7.086 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.265e-05/0.1905, allocations: 7.906 kB / 0.792 GB, free: 7.078 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002727/0.1908, allocations: 118 kB / 0.7921 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.1908, allocations: 0 / 0.7921 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.1908, allocations: 0 / 0.7921 GB, free: 6.957 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.1908, allocations: 3.938 kB / 0.7921 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003993/0.1912, allocations: 366.6 kB / 0.7925 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.1912, allocations: 0 / 0.7925 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.828e-05/0.1913, allocations: 15.92 kB / 0.7925 GB, free: 6.523 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.1913, allocations: 4 kB / 0.7925 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-06/0.1913, allocations: 0 / 0.7925 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1913, allocations: 0 / 0.7925 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1913, allocations: 0 / 0.7925 GB, free: 6.52 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002727/0.1916, allocations: 207.8 kB / 0.7927 GB, free: 6.301 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.937e-05/0.1916, allocations: 85 kB / 0.7928 GB, free: 6.199 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.353e-05/0.1917, allocations: 4.062 kB / 0.7928 GB, free: 6.195 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.513e-05/0.1918, allocations: 19.98 kB / 0.7928 GB, free: 6.176 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.88e-05/0.1918, allocations: 7.938 kB / 0.7928 GB, free: 6.168 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.046e-05/0.1918, allocations: 4 kB / 0.7928 GB, free: 6.164 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.545e-05/0.1918, allocations: 87.27 kB / 0.7929 GB, free: 6.078 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1919, allocations: 3.938 kB / 0.7929 GB, free: 6.074 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002199/0.1921, allocations: 8 kB / 0.7929 GB, free: 6.066 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: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0005307/0.1926, allocations: 0.7359 MB / 0.7936 GB, free: 5.305 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002381/0.1929, allocations: 79.89 kB / 0.7937 GB, free: 5.227 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.1929, allocations: 0 / 0.7937 GB, free: 5.227 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001056/0.193, allocations: 35.97 kB / 0.7937 GB, free: 5.191 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002336/0.1932, allocations: 12.12 kB / 0.7937 GB, free: 5.18 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001349/0.1946, allocations: 1.416 MB / 0.7951 GB, free: 3.664 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000219/0.1948, allocations: 0.6874 MB / 0.7958 GB, free: 2.953 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.386e-05/0.1948, allocations: 0 / 0.7958 GB, free: 2.953 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.144e-05/0.1949, allocations: 15.44 kB / 0.7958 GB, free: 2.938 MB / 0.6075 GB Notification: Performance of SimCode: time 2.4e-07/0.1949, allocations: 0 / 0.7958 GB, free: 2.938 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9389/1.134, allocations: 1.463 MB / 0.7972 GB, free: 1.598 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003281/1.134, allocations: 207.5 kB / 0.7974 GB, free: 1.34 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.852/2.986, allocations: 0 / 0.7974 GB, free: 1.34 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)