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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00171/0.00171, allocations: 97.14 kB / 16.27 MB, free: 6.418 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.002161/0.002161, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.489/1.489, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.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.815/1.815, allocations: 292.3 MB / 0.5495 GB, free: 17.54 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.00145/0.00145, allocations: 79.84 kB / 0.6722 GB, free: 6.523 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.302/0.3035, allocations: 114.6 MB / 0.784 GB, free: 3.859 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002624/0.3062, allocations: 0.7623 MB / 0.7848 GB, free: 3.094 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001845/0.308, allocations: 1.152 MB / 0.7859 GB, free: 1.926 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.147e-05/0.3081, allocations: 3.938 kB / 0.7859 GB, free: 1.922 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 4.377e-05/0.3082, allocations: 7.922 kB / 0.7859 GB, free: 1.914 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 8.593e-05/0.3083, allocations: 15.86 kB / 0.7859 GB, free: 1.898 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005877/0.3089, allocations: 132.3 kB / 0.7861 GB, free: 1.773 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001926/0.3091, allocations: 131.8 kB / 0.7862 GB, free: 1.645 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000152/0.3092, allocations: 28.16 kB / 0.7862 GB, free: 1.613 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001242/0.3094, allocations: 47.91 kB / 0.7863 GB, free: 1.566 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001056/0.3095, allocations: 39.83 kB / 0.7863 GB, free: 1.527 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.999e-05/0.3095, allocations: 12 kB / 0.7863 GB, free: 1.516 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001116/0.3096, allocations: 27.98 kB / 0.7863 GB, free: 1.488 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.333e-05/0.3097, allocations: 11.97 kB / 0.7863 GB, free: 1.477 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 8.501e-05/0.3098, allocations: 51.78 kB / 0.7864 GB, free: 1.426 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002097/0.31, allocations: 119.6 kB / 0.7865 GB, free: 1.309 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.31, allocations: 4 kB / 0.7865 GB, free: 1.305 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.733e-06/0.31, allocations: 0 / 0.7865 GB, free: 1.305 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.622e-06/0.31, allocations: 0 / 0.7865 GB, free: 1.305 MB / 0.6544 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.0007169/0.3107, allocations: 421.2 kB / 0.7869 GB, free: 0.8398 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.3108, allocations: 12.03 kB / 0.7869 GB, free: 0.8281 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.34e-05/0.3109, allocations: 8.844 kB / 0.7869 GB, free: 0.8203 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001703/0.311, allocations: 176.2 kB / 0.7871 GB, free: 0.6094 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.614e-05/0.3111, allocations: 8.375 kB / 0.7871 GB, free: 0.6016 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.789e-05/0.3111, allocations: 12.38 kB / 0.7871 GB, free: 0.5898 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002271/0.3113, allocations: 70.2 kB / 0.7872 GB, free: 0.5156 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.3114, allocations: 3.938 kB / 0.7872 GB, free: 0.5117 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.287e-05/0.3114, allocations: 4 kB / 0.7872 GB, free: 0.5078 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.116e-06/0.3114, allocations: 4 kB / 0.7872 GB, free: 0.5039 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001966/0.3116, allocations: 47.89 kB / 0.7872 GB, free: 468 kB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006086/0.3122, allocations: 340.7 kB / 0.7876 GB, free: 76 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001782/0.3124, allocations: 62.58 kB / 0.7876 GB, free: 4 kB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.3932/0.7056, allocations: 30.08 kB / 0.7877 GB, free: 48.71 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.881e-05/0.7057, allocations: 4.453 kB / 0.7877 GB, free: 48.71 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003799/0.7061, allocations: 88.64 kB / 0.7878 GB, free: 48.66 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=8): time 2.905e-06/0.7061, allocations: 0 / 0.7878 GB, free: 48.66 MB / 0.6544 GB Notification: Performance of matching and sorting (n=8): time 0.0005527/0.7067, allocations: 149.8 kB / 0.7879 GB, free: 48.63 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.813e-05/0.7067, allocations: 58.34 kB / 0.7879 GB, free: 48.57 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.916e-05/0.7068, allocations: 113.6 kB / 0.7881 GB, free: 48.47 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.103e-05/0.7069, allocations: 33.39 kB / 0.7881 GB, free: 48.44 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.401e-05/0.7069, allocations: 95.52 kB / 0.7882 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.458e-05/0.707, allocations: 20.27 kB / 0.7882 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.382e-05/0.707, allocations: 44.86 kB / 0.7882 GB, free: 48.34 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.798e-05/0.7071, allocations: 321.6 kB / 0.7885 GB, free: 48.03 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000145/0.7072, allocations: 48.36 kB / 0.7886 GB, free: 48.03 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001443/0.7074, allocations: 93.83 kB / 0.7887 GB, free: 47.98 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002481/0.7077, allocations: 147.7 kB / 0.7888 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.7077, allocations: 4.594 kB / 0.7888 GB, free: 47.91 MB / 0.6544 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004043/0.7081, allocations: 218.2 kB / 0.789 GB, free: 47.84 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.245e-05/0.7081, allocations: 39.84 kB / 0.7891 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.7081, allocations: 0 / 0.7891 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.7082, allocations: 3.406 kB / 0.7891 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.7083, allocations: 16.28 kB / 0.7891 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.7083, allocations: 3.969 kB / 0.7891 GB, free: 47.81 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002282/0.7085, allocations: 34.59 kB / 0.7891 GB, free: 47.8 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.866e-05/0.7085, allocations: 12.62 kB / 0.7891 GB, free: 47.8 MB / 0.6544 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 7.371e-05/0.7086, allocations: 133.1 kB / 0.7893 GB, free: 47.69 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.276e-05/0.7086, allocations: 2.625 kB / 0.7893 GB, free: 47.69 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002771/0.7089, allocations: 121.8 kB / 0.7894 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.7089, allocations: 2.625 kB / 0.7894 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.709, allocations: 2.797 kB / 0.7894 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.709, allocations: 3.469 kB / 0.7894 GB, free: 47.66 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003753/0.7093, allocations: 389.1 kB / 0.7898 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.7094, allocations: 1.062 kB / 0.7898 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.628e-05/0.7094, allocations: 10.64 kB / 0.7898 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.7094, allocations: 0 / 0.7898 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.704e-06/0.7094, allocations: 0 / 0.7898 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.7094, allocations: 2.625 kB / 0.7898 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.7095, allocations: 0 / 0.7898 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002686/0.7097, allocations: 217 kB / 0.79 GB, free: 47.22 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.48e-05/0.7098, allocations: 87.75 kB / 0.7901 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.811e-05/0.7098, allocations: 5.719 kB / 0.7901 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.333e-05/0.7099, allocations: 12.08 kB / 0.7901 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.977e-05/0.7099, allocations: 5.812 kB / 0.7901 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.305e-06/0.7099, allocations: 5.203 kB / 0.7901 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.469e-05/0.71, allocations: 94.81 kB / 0.7902 GB, free: 47.05 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.71, allocations: 0 / 0.7902 GB, free: 47.05 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002603/0.7103, allocations: 24.12 kB / 0.7902 GB, free: 47.05 MB / 0.6544 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.0001396/0.7104, allocations: 109.7 kB / 0.7903 GB, free: 46.96 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0004013/0.7108, allocations: 185.4 kB / 0.7905 GB, free: 46.9 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.7108, allocations: 1.688 kB / 0.7905 GB, free: 46.9 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001267/0.711, allocations: 40.98 kB / 0.7905 GB, free: 46.9 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002859/0.7112, allocations: 18.25 kB / 0.7906 GB, free: 46.9 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003827/0.7116, allocations: 191.8 kB / 0.7907 GB, free: 46.75 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001414/0.7118, allocations: 0.6923 MB / 0.7914 GB, free: 46.05 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.076e-05/0.7118, allocations: 15.69 kB / 0.7914 GB, free: 46.05 MB / 0.6544 GB Notification: Performance of SimCode: time 3.5e-07/0.7118, allocations: 0 / 0.7914 GB, free: 46.05 MB / 0.6544 GB Notification: Performance of Templates: time 0.002907/0.7147, allocations: 1.275 MB / 0.7927 GB, free: 46 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (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 & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1)