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.001074/0.001074, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001104/0.001104, allocations: 191.5 kB / 16.25 MB, free: 6.637 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.65/1.65, allocations: 205.1 MB / 222.1 MB, free: 4.699 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.861/1.861, allocations: 292.2 MB / 0.5485 GB, free: 13.65 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.001653/0.001653, allocations: 63.84 kB / 0.671 GB, free: 26.34 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3552/0.3568, allocations: 114.5 MB / 0.7829 GB, free: 13.93 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002377/0.3593, allocations: 0.8322 MB / 0.7837 GB, free: 13.09 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001501/0.3608, allocations: 1.157 MB / 0.7848 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.866e-05/0.3608, allocations: 0 / 0.7848 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.495e-05/0.3609, allocations: 4 kB / 0.7848 GB, free: 11.92 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.818e-05/0.361, allocations: 7.922 kB / 0.7848 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004661/0.3615, allocations: 119.5 kB / 0.7849 GB, free: 11.8 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001687/0.3616, allocations: 135.7 kB / 0.7851 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.3618, allocations: 20.17 kB / 0.7851 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.118e-05/0.3619, allocations: 43.91 kB / 0.7851 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 7.895e-05/0.362, allocations: 47.81 kB / 0.7852 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.46e-05/0.362, allocations: 8 kB / 0.7852 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001022/0.3621, allocations: 35.91 kB / 0.7852 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.242e-05/0.3621, allocations: 19.94 kB / 0.7852 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.243e-05/0.3622, allocations: 43.84 kB / 0.7853 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001632/0.3624, allocations: 119.7 kB / 0.7854 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3624, allocations: 0 / 0.7854 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.443e-06/0.3624, allocations: 0 / 0.7854 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.491e-06/0.3624, allocations: 0 / 0.7854 GB, free: 11.33 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.0006067/0.363, allocations: 425.2 kB / 0.7858 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.363, allocations: 8.031 kB / 0.7858 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.403e-05/0.3631, allocations: 8.844 kB / 0.7858 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001273/0.3632, allocations: 180.2 kB / 0.786 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.045e-05/0.3633, allocations: 16.3 kB / 0.786 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.255e-05/0.3633, allocations: 8.375 kB / 0.786 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002323/0.3635, allocations: 78.16 kB / 0.7861 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.3635, allocations: 3.938 kB / 0.7861 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.3636, allocations: 4 kB / 0.7861 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.3636, allocations: 0 / 0.7861 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001767/0.3638, allocations: 51.95 kB / 0.7861 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006747/0.3644, allocations: 344.6 kB / 0.7865 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001608/0.3646, allocations: 58.55 kB / 0.7865 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.532e-05/0.3647, allocations: 32.97 kB / 0.7865 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.93e-05/0.3647, allocations: 0 / 0.7865 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002527/0.365, allocations: 87.39 kB / 0.7866 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=8): time 1.242e-06/0.365, allocations: 0 / 0.7866 GB, free: 9.879 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8): time 0.0004133/0.3654, allocations: 157.5 kB / 0.7868 GB, free: 9.719 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.313e-05/0.3655, allocations: 51.41 kB / 0.7868 GB, free: 9.656 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.017e-05/0.3656, allocations: 121.8 kB / 0.7869 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.915e-05/0.3656, allocations: 33.7 kB / 0.787 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.297e-05/0.3657, allocations: 96.03 kB / 0.7871 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.02e-05/0.3657, allocations: 15.75 kB / 0.7871 GB, free: 9.375 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.765e-05/0.3658, allocations: 41.69 kB / 0.7871 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.3659, allocations: 322.8 kB / 0.7874 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001485/0.3661, allocations: 55.95 kB / 0.7875 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001587/0.3662, allocations: 93.05 kB / 0.7876 GB, free: 8.84 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000259/0.3665, allocations: 146.8 kB / 0.7877 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.3665, allocations: 0 / 0.7877 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004256/0.3669, allocations: 215.2 kB / 0.7879 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.8e-05/0.367, allocations: 40.34 kB / 0.788 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.367, allocations: 4 kB / 0.788 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.367, allocations: 0 / 0.788 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.823e-05/0.3671, allocations: 19.92 kB / 0.788 GB, free: 8.383 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.3671, allocations: 4 kB / 0.788 GB, free: 8.379 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002066/0.3673, allocations: 32.5 kB / 0.788 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.309e-05/0.3674, allocations: 8 kB / 0.788 GB, free: 8.34 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 0.0001439/0.3675, allocations: 126.5 kB / 0.7881 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.434e-05/0.3675, allocations: 7.906 kB / 0.7881 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002799/0.3678, allocations: 134.2 kB / 0.7883 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/0.3678, allocations: 3.938 kB / 0.7883 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3678, allocations: 0 / 0.7883 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.3678, allocations: 0 / 0.7883 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003996/0.3683, allocations: 386.4 kB / 0.7886 GB, free: 7.625 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.3683, allocations: 4 kB / 0.7887 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.839e-05/0.3683, allocations: 8 kB / 0.7887 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.3683, allocations: 3.938 kB / 0.7887 GB, free: 7.609 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.164e-05/0.3684, allocations: 3.984 kB / 0.7887 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3684, allocations: 0 / 0.7887 GB, free: 7.605 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.3684, allocations: 7.938 kB / 0.7887 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003063/0.3687, allocations: 211.4 kB / 0.7889 GB, free: 7.375 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.09e-05/0.3687, allocations: 84.95 kB / 0.789 GB, free: 7.273 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.071e-05/0.3688, allocations: 4 kB / 0.789 GB, free: 7.27 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.491e-05/0.3689, allocations: 11.98 kB / 0.789 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.331e-05/0.3689, allocations: 7.922 kB / 0.789 GB, free: 7.25 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-06/0.3689, allocations: 4.047 kB / 0.789 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.233e-05/0.369, allocations: 99.2 kB / 0.7891 GB, free: 7.148 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.369, allocations: 0 / 0.7891 GB, free: 7.148 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002649/0.3693, allocations: 24 kB / 0.7891 GB, free: 7.125 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.0002602/0.3695, allocations: 107.2 kB / 0.7892 GB, free: 7.012 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004559/0.37, allocations: 179.3 kB / 0.7894 GB, free: 6.824 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.37, allocations: 4.312 kB / 0.7894 GB, free: 6.82 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001232/0.3702, allocations: 39.97 kB / 0.7894 GB, free: 6.781 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003191/0.3705, allocations: 11.98 kB / 0.7894 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005159/0.371, allocations: 198.4 kB / 0.7896 GB, free: 6.543 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000411/0.3714, allocations: 0.6912 MB / 0.7903 GB, free: 5.828 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.148e-05/0.3715, allocations: 4 kB / 0.7903 GB, free: 5.824 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.638e-05/0.3715, allocations: 15.42 kB / 0.7903 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of SimCode: time 3.21e-07/0.3715, allocations: 0 / 0.7903 GB, free: 5.812 MB / 0.6075 GB Notification: Performance of Templates: time 0.004335/0.3759, allocations: 1.377 MB / 0.7917 GB, free: 4.453 MB / 0.6075 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)