Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.359/2.359, allocations: 251.1 MB / 266.7 MB, free: 11.64 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001373/0.001372, allocations: 172.5 kB / 326.2 MB, free: 2.879 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.522/2.522, allocations: 205.4 MB / 0.5772 GB, free: 20.81 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000855/0.0008549, allocations: 88.09 kB / 0.6817 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006366/0.0006367, allocations: 11.81 kB / 0.7957 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2068/0.2075, allocations: 106.3 MB / 0.8995 GB, free: 65.54 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001564/0.2091, allocations: 1.084 MB / 0.9006 GB, free: 64.44 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0005063/0.2096, allocations: 221.5 kB / 0.9008 GB, free: 64.22 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.442e-05/0.2097, allocations: 0 / 0.9008 GB, free: 64.22 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.092e-05/0.2098, allocations: 7.938 kB / 0.9008 GB, free: 64.21 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.698e-05/0.2098, allocations: 7.938 kB / 0.9008 GB, free: 64.21 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001881/0.21, allocations: 19.91 kB / 0.9008 GB, free: 64.19 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.236e-05/0.2101, allocations: 39.91 kB / 0.9009 GB, free: 64.15 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.2102, allocations: 4 kB / 0.9009 GB, free: 64.14 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.858e-05/0.2103, allocations: 19.92 kB / 0.9009 GB, free: 64.12 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.063e-05/0.2104, allocations: 15.92 kB / 0.9009 GB, free: 64.11 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.077e-05/0.2104, allocations: 4 kB / 0.9009 GB, free: 64.11 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.21e-05/0.2104, allocations: 0 / 0.9009 GB, free: 64.11 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.919e-05/0.2105, allocations: 8 kB / 0.9009 GB, free: 64.1 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 6.667e-05/0.2105, allocations: 33.64 kB / 0.9009 GB, free: 64.06 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 8.205e-05/0.2106, allocations: 43.84 kB / 0.901 GB, free: 64.02 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.2107, allocations: 0 / 0.901 GB, free: 64.02 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.953e-06/0.2107, allocations: 0 / 0.901 GB, free: 64.02 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.989e-06/0.2107, allocations: 0 / 0.901 GB, free: 64.02 MB / 0.6042 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.0006147/0.2113, allocations: 363.6 kB / 0.9013 GB, free: 63.61 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.2114, allocations: 8.031 kB / 0.9013 GB, free: 63.6 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.428e-05/0.2114, allocations: 8.844 kB / 0.9013 GB, free: 63.59 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.49e-05/0.2115, allocations: 160.4 kB / 0.9015 GB, free: 63.4 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.055e-05/0.2116, allocations: 4.375 kB / 0.9015 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.428e-05/0.2116, allocations: 384 / 0.9015 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002726/0.2119, allocations: 78.16 kB / 0.9016 GB, free: 63.31 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.2119, allocations: 192 / 0.9016 GB, free: 63.31 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.456e-05/0.2119, allocations: 3.938 kB / 0.9016 GB, free: 63.31 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.621e-06/0.2119, allocations: 3.984 kB / 0.9016 GB, free: 63.3 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003059/0.2122, allocations: 55.95 kB / 0.9016 GB, free: 63.25 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004254/0.2127, allocations: 280.8 kB / 0.9019 GB, free: 62.93 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000231/0.2129, allocations: 66.42 kB / 0.902 GB, free: 62.85 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001659/0.2131, allocations: 36.95 kB / 0.902 GB, free: 62.81 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3.212e-05/0.2131, allocations: 4 kB / 0.902 GB, free: 62.81 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002766/0.2134, allocations: 71.39 kB / 0.9021 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 2.855e-06/0.2135, allocations: 0 / 0.9021 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0006254/0.2141, allocations: 137.6 kB / 0.9022 GB, free: 62.59 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.954e-05/0.2141, allocations: 55.34 kB / 0.9023 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.418e-05/0.2142, allocations: 105.8 kB / 0.9024 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.52e-05/0.2142, allocations: 25.7 kB / 0.9024 GB, free: 62.38 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.653e-05/0.2143, allocations: 100 kB / 0.9025 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.387e-05/0.2143, allocations: 7.844 kB / 0.9025 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.69e-06/0.2143, allocations: 0 / 0.9025 GB, free: 62.27 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.529e-05/0.2144, allocations: 318.8 kB / 0.9028 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001864/0.2146, allocations: 27.97 kB / 0.9028 GB, free: 61.92 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001739/0.2148, allocations: 55.41 kB / 0.9029 GB, free: 61.85 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001696/0.215, allocations: 31.98 kB / 0.9029 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.215, allocations: 11.88 kB / 0.9029 GB, free: 61.81 MB / 0.6042 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004028/0.2154, allocations: 113.4 kB / 0.903 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.2155, allocations: 4 kB / 0.903 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.627e-06/0.2155, allocations: 7.984 kB / 0.903 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.2155, allocations: 4.031 kB / 0.903 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001565/0.2157, allocations: 16 kB / 0.903 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.766e-06/0.2157, allocations: 3.984 kB / 0.9031 GB, free: 61.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001032/0.2158, allocations: 8 kB / 0.9031 GB, free: 61.65 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.239e-05/0.2158, allocations: 8 kB / 0.9031 GB, free: 61.64 MB / 0.6042 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 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.848e-05/0.2159, allocations: 113.8 kB / 0.9032 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.78e-05/0.2159, allocations: 7.891 kB / 0.9032 GB, free: 61.51 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004303/0.2164, allocations: 118 kB / 0.9033 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.2164, allocations: 4 kB / 0.9033 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.2164, allocations: 0 / 0.9033 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.748e-05/0.2165, allocations: 81.11 kB / 0.9034 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.987e-05/0.2165, allocations: 0 / 0.9034 GB, free: 61.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.2166, allocations: 16.55 kB / 0.9034 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.891e-05/0.2167, allocations: 7.938 kB / 0.9034 GB, free: 61.27 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004667/0.2171, allocations: 196.9 kB / 0.9036 GB, free: 61.07 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0004373/0.2176, allocations: 282.7 kB / 0.9039 GB, free: 60.77 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001751/0.2178, allocations: 35.98 kB / 0.9039 GB, free: 60.74 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.86e-05/0.2178, allocations: 83.27 kB / 0.904 GB, free: 60.66 MB / 0.6042 GB Notification: Performance of Backend: time 7.21e-07/0.2179, allocations: 0 / 0.904 GB, free: 60.66 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0005507/0.2184, allocations: 122.3 kB / 0.9041 GB, free: 60.53 MB / 0.6042 GB Notification: Performance of SimCode: time 0.0004989/0.2189, allocations: 0.5877 MB / 0.9047 GB, free: 59.89 MB / 0.6042 GB Notification: Performance of Templates: time 0.003401/0.2223, allocations: 0.6306 MB / 0.9053 GB, free: 59.27 MB / 0.6042 GB make -j1 -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)