Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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 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.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001207/0.001212, 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.001249/0.001249, allocations: 192.8 kB / 16.25 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.969/2.969, allocations: 472.6 MB / 0.7448 GB, free: 4.883 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 62.98 kB / 0.9115 GB, free: 33.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4716/0.4736, allocations: 159.9 MB / 1.068 GB, free: 10.75 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.003942/0.4776, allocations: 0.8163 MB / 1.068 GB, free: 9.93 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002552/0.4802, allocations: 1.159 MB / 1.07 GB, free: 8.758 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.026e-05/0.4803, allocations: 8 kB / 1.07 GB, free: 8.75 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 6.114e-05/0.4804, allocations: 7.922 kB / 1.07 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001185/0.4806, allocations: 3.938 kB / 1.07 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008384/0.4814, allocations: 115.8 kB / 1.07 GB, free: 8.625 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002607/0.4817, allocations: 135.7 kB / 1.07 GB, free: 8.492 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003084/0.482, allocations: 28.16 kB / 1.07 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001649/0.4822, allocations: 43.91 kB / 1.07 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001367/0.4823, allocations: 47.81 kB / 1.07 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.957e-05/0.4824, allocations: 8 kB / 1.07 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001142/0.4825, allocations: 35.92 kB / 1.07 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.641e-05/0.4826, allocations: 15.98 kB / 1.07 GB, free: 8.312 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000106/0.4827, allocations: 43.8 kB / 1.07 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.000295/0.483, allocations: 119.7 kB / 1.07 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.483, allocations: 0 / 1.07 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of FrontEnd: time 4.759e-06/0.483, allocations: 0 / 1.07 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.273e-06/0.483, allocations: 3.938 kB / 1.07 GB, free: 8.148 MB / 0.8262 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.0009222/0.484, allocations: 425.1 kB / 1.071 GB, free: 7.68 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 6.174e-05/0.484, allocations: 8.031 kB / 1.071 GB, free: 7.672 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001095/0.4842, allocations: 12.84 kB / 1.071 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001759/0.4844, allocations: 176.3 kB / 1.071 GB, free: 7.449 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.524e-05/0.4844, allocations: 8.375 kB / 1.071 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.726e-05/0.4844, allocations: 8.375 kB / 1.071 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003013/0.4848, allocations: 66.22 kB / 1.071 GB, free: 7.363 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.583e-05/0.4848, allocations: 7.938 kB / 1.071 GB, free: 7.355 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.936e-05/0.4848, allocations: 7.938 kB / 1.071 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/0.4848, allocations: 0 / 1.071 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003176/0.4852, allocations: 51.95 kB / 1.071 GB, free: 7.297 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007948/0.486, allocations: 340.6 kB / 1.071 GB, free: 6.914 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002609/0.4863, allocations: 58.58 kB / 1.071 GB, free: 6.848 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001516/0.4864, allocations: 36.97 kB / 1.071 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.727e-05/0.4865, allocations: 0 / 1.071 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003605/0.4868, allocations: 91.25 kB / 1.071 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 2.064e-06/0.4868, allocations: 0 / 1.071 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.0006821/0.4875, allocations: 153.5 kB / 1.072 GB, free: 6.551 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.79e-05/0.4876, allocations: 51.41 kB / 1.072 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001478/0.4878, allocations: 125.7 kB / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.254e-05/0.4878, allocations: 29.7 kB / 1.072 GB, free: 6.32 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.775e-05/0.4879, allocations: 92.14 kB / 1.072 GB, free: 6.227 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.686e-05/0.488, allocations: 23.64 kB / 1.072 GB, free: 6.203 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001105/0.4881, allocations: 41.69 kB / 1.072 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0002702/0.4884, allocations: 326.8 kB / 1.072 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002463/0.4886, allocations: 51.95 kB / 1.072 GB, free: 5.777 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002679/0.4889, allocations: 92.17 kB / 1.072 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004236/0.4893, allocations: 154.7 kB / 1.073 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.4894, allocations: 0 / 1.073 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0006783/0.49, allocations: 219.1 kB / 1.073 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.974e-05/0.4901, allocations: 33.69 kB / 1.073 GB, free: 5.23 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.344e-05/0.4901, allocations: 4 kB / 1.073 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.4902, allocations: 0 / 1.073 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001518/0.4903, allocations: 19.98 kB / 1.073 GB, free: 5.207 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/0.4904, allocations: 0 / 1.073 GB, free: 5.207 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003362/0.4907, allocations: 35.95 kB / 1.073 GB, free: 5.172 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.267e-05/0.4908, allocations: 8.094 kB / 1.073 GB, free: 5.164 MB / 0.8262 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.0001558/0.4909, allocations: 130.4 kB / 1.073 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.928e-05/0.491, allocations: 11.89 kB / 1.073 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000469/0.4914, allocations: 118.3 kB / 1.073 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.4915, allocations: 0 / 1.073 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.4915, allocations: 0 / 1.073 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.4915, allocations: 8 kB / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008018/0.4923, allocations: 386.4 kB / 1.073 GB, free: 4.453 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.4923, allocations: 0 / 1.073 GB, free: 4.453 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.454e-05/0.4924, allocations: 15.98 kB / 1.073 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.127e-06/0.4924, allocations: 0 / 1.073 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.4925, allocations: 0 / 1.073 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.4925, allocations: 0 / 1.073 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.4925, allocations: 3.938 kB / 1.073 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004671/0.493, allocations: 223.4 kB / 1.074 GB, free: 4.199 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.083e-05/0.493, allocations: 81.02 kB / 1.074 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.852e-05/0.4931, allocations: 4 kB / 1.074 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.4932, allocations: 7.984 kB / 1.074 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.848e-05/0.4933, allocations: 11.92 kB / 1.074 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.237e-05/0.4933, allocations: 8 kB / 1.074 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 8.848e-05/0.4934, allocations: 95.75 kB / 1.074 GB, free: 3.977 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.1e-07/0.4934, allocations: 3.938 kB / 1.074 GB, free: 3.973 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0004529/0.4939, allocations: 20 kB / 1.074 GB, free: 3.953 MB / 0.8262 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.0002173/0.4941, allocations: 103.2 kB / 1.074 GB, free: 3.844 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0006795/0.4948, allocations: 187.4 kB / 1.074 GB, free: 3.648 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.4948, allocations: 4.125 kB / 1.074 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001991/0.495, allocations: 39.92 kB / 1.074 GB, free: 3.605 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004714/0.4955, allocations: 15.92 kB / 1.074 GB, free: 3.59 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006243/0.4962, allocations: 195.9 kB / 1.074 GB, free: 3.375 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005184/0.4967, allocations: 0.6846 MB / 1.075 GB, free: 2.664 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.545e-05/0.4968, allocations: 11.77 kB / 1.075 GB, free: 2.652 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.206e-05/0.4968, allocations: 11.44 kB / 1.075 GB, free: 2.641 MB / 0.8262 GB Notification: Performance of SimCode: time 7.12e-07/0.4969, allocations: 0 / 1.075 GB, free: 2.641 MB / 0.8262 GB Notification: Performance of Templates: time 0.007545/0.5044, allocations: 1.365 MB / 1.076 GB, free: 1.293 MB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.makefile (rm -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & ./Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1)