Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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.TriggeredSampler,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",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.0008036/0.0008037, allocations: 91.14 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.004807/0.004807, allocations: 171.4 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.188/1.188, allocations: 205.4 MB / 222.4 MB, free: 5.559 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.526/1.526, allocations: 292.7 MB / 0.5502 GB, free: 14.45 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.0004771/0.0004771, allocations: 15.12 kB / 0.6744 GB, free: 25.79 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1784/0.1789, allocations: 116.3 MB / 0.788 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.0008148/0.1797, allocations: 493.2 kB / 0.7885 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001371/0.1811, allocations: 1.161 MB / 0.7896 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.781e-05/0.1812, allocations: 0 / 0.7896 GB, free: 9.812 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.747e-05/0.1812, allocations: 7.922 kB / 0.7896 GB, free: 9.805 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.42e-05/0.1813, allocations: 7.922 kB / 0.7896 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004057/0.1817, allocations: 127 kB / 0.7898 GB, free: 9.676 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001165/0.1818, allocations: 111.8 kB / 0.7899 GB, free: 9.566 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.979e-05/0.1819, allocations: 28.16 kB / 0.7899 GB, free: 9.535 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.955e-05/0.182, allocations: 39.84 kB / 0.7899 GB, free: 9.496 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.431e-05/0.1821, allocations: 35.83 kB / 0.79 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.078e-05/0.1821, allocations: 4 kB / 0.79 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.126e-05/0.1822, allocations: 19.98 kB / 0.79 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.97e-05/0.1822, allocations: 11.98 kB / 0.79 GB, free: 9.426 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.831e-05/0.1823, allocations: 65.48 kB / 0.7901 GB, free: 9.355 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000146/0.1824, allocations: 115.9 kB / 0.7902 GB, free: 9.242 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.1824, allocations: 0 / 0.7902 GB, free: 9.242 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.262e-06/0.1824, allocations: 4 kB / 0.7902 GB, free: 9.238 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.988e-06/0.1825, allocations: 0 / 0.7902 GB, free: 9.238 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000466/0.1829, allocations: 401 kB / 0.7905 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.183, allocations: 12.03 kB / 0.7906 GB, free: 8.781 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.923e-05/0.183, allocations: 34.75 kB / 0.7906 GB, free: 8.738 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.858e-05/0.1831, allocations: 12.84 kB / 0.7906 GB, free: 8.727 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001017/0.1832, allocations: 176.2 kB / 0.7908 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.316e-05/0.1832, allocations: 8.375 kB / 0.7908 GB, free: 8.508 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.334e-05/0.1832, allocations: 8.375 kB / 0.7908 GB, free: 8.5 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000185/0.1834, allocations: 81.91 kB / 0.7909 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.22e-06/0.1834, allocations: 0 / 0.7909 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.727e-06/0.1834, allocations: 0 / 0.7909 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.523e-06/0.1834, allocations: 4 kB / 0.7909 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001873/0.1836, allocations: 63.89 kB / 0.7909 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004365/0.1841, allocations: 348.6 kB / 0.7913 GB, free: 7.957 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001536/0.1842, allocations: 66.58 kB / 0.7913 GB, free: 7.883 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.675e-05/0.1844, allocations: 36.95 kB / 0.7914 GB, free: 7.844 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.001e-05/0.1844, allocations: 8 kB / 0.7914 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000206/0.1846, allocations: 99.25 kB / 0.7915 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.303e-06/0.1846, allocations: 0 / 0.7915 GB, free: 7.727 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8): time 0.0004291/0.185, allocations: 161.6 kB / 0.7916 GB, free: 7.562 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.285e-05/0.1851, allocations: 59.34 kB / 0.7917 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.668e-05/0.1852, allocations: 121.7 kB / 0.7918 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.408e-05/0.1852, allocations: 33.64 kB / 0.7918 GB, free: 7.324 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.018e-05/0.1853, allocations: 92.14 kB / 0.7919 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.132e-05/0.1853, allocations: 23.64 kB / 0.7919 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.525e-05/0.1853, allocations: 21.72 kB / 0.792 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.1854, allocations: 326.8 kB / 0.7923 GB, free: 6.852 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001539/0.1856, allocations: 55.97 kB / 0.7923 GB, free: 6.797 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001649/0.1858, allocations: 93.55 kB / 0.7924 GB, free: 6.688 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002808/0.1861, allocations: 170.7 kB / 0.7926 GB, free: 6.496 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.1861, allocations: 0 / 0.7926 GB, free: 6.496 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004301/0.1865, allocations: 219.2 kB / 0.7928 GB, free: 6.27 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.266e-05/0.1865, allocations: 33.7 kB / 0.7928 GB, free: 6.23 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.1866, allocations: 0 / 0.7928 GB, free: 6.23 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.1866, allocations: 4 kB / 0.7928 GB, free: 6.227 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.373e-05/0.1867, allocations: 19.92 kB / 0.7928 GB, free: 6.207 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.267e-05/0.1867, allocations: 4 kB / 0.7928 GB, free: 6.203 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002291/0.1869, allocations: 55.95 kB / 0.7929 GB, free: 6.148 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.939e-05/0.187, allocations: 7.938 kB / 0.7929 GB, free: 6.141 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.326e-05/0.187, allocations: 126.4 kB / 0.793 GB, free: 6.008 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.361e-05/0.1871, allocations: 11.91 kB / 0.793 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002921/0.1874, allocations: 134 kB / 0.7932 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.1874, allocations: 3.984 kB / 0.7932 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1874, allocations: 0 / 0.7932 GB, free: 5.855 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.1874, allocations: 4 kB / 0.7932 GB, free: 5.852 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000403/0.1878, allocations: 386.4 kB / 0.7935 GB, free: 5.418 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1878, allocations: 0 / 0.7935 GB, free: 5.418 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.827e-05/0.1879, allocations: 15.92 kB / 0.7936 GB, free: 5.402 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.1879, allocations: 4 kB / 0.7936 GB, free: 5.398 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.823e-06/0.1879, allocations: 4 kB / 0.7936 GB, free: 5.395 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.1879, allocations: 3.938 kB / 0.7936 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1879, allocations: 0 / 0.7936 GB, free: 5.391 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002882/0.1882, allocations: 231.4 kB / 0.7938 GB, free: 5.148 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.061e-05/0.1882, allocations: 81.09 kB / 0.7939 GB, free: 5.051 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.672e-05/0.1883, allocations: 4 kB / 0.7939 GB, free: 5.047 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.543e-05/0.1884, allocations: 11.88 kB / 0.7939 GB, free: 5.035 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.98e-05/0.1884, allocations: 11.92 kB / 0.7939 GB, free: 5.023 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.335e-06/0.1884, allocations: 8 kB / 0.7939 GB, free: 5.016 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.535e-05/0.1885, allocations: 99.31 kB / 0.794 GB, free: 4.918 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1885, allocations: 0 / 0.794 GB, free: 4.918 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002425/0.1887, allocations: 27.91 kB / 0.794 GB, free: 4.891 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * 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.0005443/0.1893, allocations: 0.7554 MB / 0.7948 GB, free: 4.109 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003414/0.1896, allocations: 187.3 kB / 0.7949 GB, free: 3.914 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.1896, allocations: 4.312 kB / 0.7949 GB, free: 3.91 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001163/0.1897, allocations: 48.53 kB / 0.795 GB, free: 3.863 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002498/0.19, allocations: 16.02 kB / 0.795 GB, free: 3.848 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001807/0.1918, allocations: 1.748 MB / 0.7967 GB, free: 1.98 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002203/0.1921, allocations: 0.6923 MB / 0.7974 GB, free: 1.262 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.091e-05/0.1921, allocations: 7.984 kB / 0.7974 GB, free: 1.254 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.553e-05/0.1921, allocations: 27.42 kB / 0.7974 GB, free: 1.23 MB / 0.6075 GB Notification: Performance of SimCode: time 2.31e-07/0.1922, allocations: 0 / 0.7974 GB, free: 1.23 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.606/2.798, allocations: 2.242 MB / 0.7996 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002025/2.798, allocations: 208.5 kB / 0.7998 GB, free: 14.89 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.464/5.263, allocations: 0 / 0.7998 GB, free: 14.89 MB / 0.6231 GB (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)