Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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 Buildings with version 9.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 1.549/1.549, allocations: 297.8 MB / 313.7 MB, free: 124 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001024/0.001024, allocations: 179.4 kB / 384.6 MB, free: 10.86 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 223.2 MB / 0.6626 GB, free: 4.312 MB / 490.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009011/0.000901, allocations: 95.98 kB / 0.7808 GB, free: 50.27 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003475/0.0003476, allocations: 16 kB / 0.9088 GB, free: 2.828 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5981/0.5985, allocations: 120.3 MB / 1.026 GB, free: 56.09 MB / 0.7292 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1812/0.7797, allocations: 141.7 MB / 1.165 GB, free: 1.973 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/0.78, allocations: 71.95 kB / 1.165 GB, free: 1.914 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.006278/0.7863, allocations: 2.282 MB / 1.167 GB, free: 288 kB / 0.7292 GB Notification: Performance of FrontEnd: time 2.195e-06/0.7863, allocations: 0.625 kB / 1.167 GB, free: 288 kB / 0.7292 GB Notification: Performance of Transformations before backend: time 6.743e-06/0.7863, allocations: 1.25 kB / 1.167 GB, free: 288 kB / 0.7292 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.0005046/0.7868, allocations: 418.8 kB / 1.167 GB, free: 15.83 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 3.783e-05/0.7869, allocations: 8.031 kB / 1.167 GB, free: 15.82 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.108e-05/0.7869, allocations: 13.55 kB / 1.167 GB, free: 15.81 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.7871, allocations: 178.5 kB / 1.168 GB, free: 15.6 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.149e-05/0.7871, allocations: 6.516 kB / 1.168 GB, free: 15.6 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.254e-05/0.7871, allocations: 8.375 kB / 1.168 GB, free: 15.59 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002157/0.7873, allocations: 77.98 kB / 1.168 GB, free: 15.52 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.7874, allocations: 192 / 1.168 GB, free: 15.52 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.493e-05/0.7874, allocations: 8.547 kB / 1.168 GB, free: 15.52 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-06/0.7874, allocations: 0.875 kB / 1.168 GB, free: 15.52 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001903/0.7876, allocations: 61.72 kB / 1.168 GB, free: 15.47 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005403/0.7881, allocations: 346.7 kB / 1.168 GB, free: 15.13 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001758/0.7883, allocations: 68.64 kB / 1.168 GB, free: 15.06 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.7884, allocations: 37.53 kB / 1.168 GB, free: 15.03 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.379e-05/0.7885, allocations: 2.297 kB / 1.168 GB, free: 15.03 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000249/0.7887, allocations: 101.1 kB / 1.168 GB, free: 14.94 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=8): time 1.743e-06/0.7887, allocations: 0 / 1.168 GB, free: 14.94 MB / 0.7448 GB Notification: Performance of matching and sorting (n=8): time 0.0005192/0.7893, allocations: 160.2 kB / 1.168 GB, free: 14.8 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.914e-05/0.7893, allocations: 64.19 kB / 1.168 GB, free: 14.73 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.679e-05/0.7894, allocations: 117.4 kB / 1.169 GB, free: 14.61 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.7895, allocations: 29.7 kB / 1.169 GB, free: 14.57 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 5.877e-05/0.7895, allocations: 94.94 kB / 1.169 GB, free: 14.48 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.906e-05/0.7896, allocations: 17.16 kB / 1.169 GB, free: 14.46 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.385e-05/0.7896, allocations: 13.3 kB / 1.169 GB, free: 14.45 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 9.501e-05/0.7897, allocations: 318.8 kB / 1.169 GB, free: 14.14 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001638/0.7899, allocations: 59 kB / 1.169 GB, free: 14.09 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001751/0.79, allocations: 97.59 kB / 1.169 GB, free: 13.99 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002887/0.7903, allocations: 162.6 kB / 1.169 GB, free: 13.82 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.7904, allocations: 0 / 1.169 GB, free: 13.82 MB / 0.7448 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004471/0.7908, allocations: 223.8 kB / 1.17 GB, free: 13.62 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 3.68e-05/0.7908, allocations: 35.81 kB / 1.17 GB, free: 13.58 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.7909, allocations: 0 / 1.17 GB, free: 13.58 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.7909, allocations: 4.875 kB / 1.17 GB, free: 13.57 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.791, allocations: 20.58 kB / 1.17 GB, free: 13.56 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.791, allocations: 4.516 kB / 1.17 GB, free: 13.55 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002134/0.7912, allocations: 54.52 kB / 1.17 GB, free: 13.51 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.352e-05/0.7913, allocations: 5.312 kB / 1.17 GB, free: 13.51 MB / 0.7448 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 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition3,$PRE.booPul.y,booPul.y,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.742e-05/0.7914, allocations: 127.5 kB / 1.17 GB, free: 13.38 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.475e-05/0.7914, allocations: 8.469 kB / 1.17 GB, free: 13.37 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003201/0.7917, allocations: 137.2 kB / 1.17 GB, free: 13.25 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.7917, allocations: 0 / 1.17 GB, free: 13.25 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.7917, allocations: 1.641 kB / 1.17 GB, free: 13.25 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.7917, allocations: 0 / 1.17 GB, free: 13.25 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004445/0.7922, allocations: 392.1 kB / 1.17 GB, free: 12.84 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.7922, allocations: 0.6094 kB / 1.17 GB, free: 12.84 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.42e-05/0.7923, allocations: 11.47 kB / 1.17 GB, free: 12.83 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.7923, allocations: 0 / 1.17 GB, free: 12.83 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.846e-05/0.7923, allocations: 10.22 kB / 1.17 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.7923, allocations: 5.016 kB / 1.17 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.7923, allocations: 3.938 kB / 1.17 GB, free: 12.82 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003034/0.7926, allocations: 217.1 kB / 1.171 GB, free: 12.61 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 4.142e-05/0.7927, allocations: 90.05 kB / 1.171 GB, free: 12.5 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.632e-05/0.7927, allocations: 2.625 kB / 1.171 GB, free: 12.5 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.551e-05/0.7928, allocations: 10.62 kB / 1.171 GB, free: 12.49 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.04e-05/0.7929, allocations: 14.69 kB / 1.171 GB, free: 12.48 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.517e-06/0.7929, allocations: 5.188 kB / 1.171 GB, free: 12.48 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 4.944e-05/0.7929, allocations: 95.92 kB / 1.171 GB, free: 12.39 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7929, allocations: 0 / 1.171 GB, free: 12.39 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003134/0.7933, allocations: 29.48 kB / 1.171 GB, free: 12.36 MB / 0.7448 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 (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.0001519/0.7934, allocations: 117.2 kB / 1.171 GB, free: 12.23 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0003889/0.7938, allocations: 185.4 kB / 1.171 GB, free: 12.06 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.7938, allocations: 320 / 1.171 GB, free: 12.06 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001254/0.794, allocations: 51.94 kB / 1.171 GB, free: 12.02 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002643/0.7942, allocations: 15.42 kB / 1.171 GB, free: 12.01 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003748/0.7946, allocations: 184.5 kB / 1.171 GB, free: 11.82 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002345/0.7949, allocations: 0.6888 MB / 1.172 GB, free: 11.11 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.612e-05/0.7949, allocations: 5.594 kB / 1.172 GB, free: 11.11 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.178e-05/0.7949, allocations: 11.44 kB / 1.172 GB, free: 11.09 MB / 0.7448 GB Notification: Performance of SimCode: time 1.703e-06/0.7949, allocations: 0 / 1.172 GB, free: 11.09 MB / 0.7448 GB Notification: Performance of Templates: time 0.003917/0.7989, allocations: 1.288 MB / 1.173 GB, free: 10.39 MB / 0.7448 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)