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.001214/0.001215, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001582/0.001582, allocations: 193 kB / 16.14 MB, free: 6.703 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.55/1.55, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.032/3.032, allocations: 472.6 MB / 0.7447 GB, free: 4.977 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 63.16 kB / 0.9114 GB, free: 33.69 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3946/0.396, allocations: 159.9 MB / 1.068 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.002158/0.3982, allocations: 0.8163 MB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001525/0.3998, allocations: 1.182 MB / 1.069 GB, free: 8.906 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.497e-05/0.3998, allocations: 4 kB / 1.069 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.502e-05/0.3999, allocations: 3.938 kB / 1.069 GB, free: 8.898 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.342e-05/0.4, allocations: 3.938 kB / 1.069 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004651/0.4005, allocations: 123 kB / 1.07 GB, free: 8.777 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001487/0.4006, allocations: 123.7 kB / 1.07 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.4008, allocations: 24.16 kB / 1.07 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 9.396e-05/0.4009, allocations: 39.91 kB / 1.07 GB, free: 8.59 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.857e-05/0.4009, allocations: 43.81 kB / 1.07 GB, free: 8.547 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.605e-05/0.401, allocations: 8 kB / 1.07 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.539e-05/0.4011, allocations: 23.98 kB / 1.07 GB, free: 8.516 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.578e-05/0.4011, allocations: 11.98 kB / 1.07 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.314e-05/0.4012, allocations: 47.78 kB / 1.07 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001769/0.4014, allocations: 103.7 kB / 1.07 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.4014, allocations: 0 / 1.07 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.22e-07/0.4014, allocations: 0 / 1.07 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.051e-05/0.4014, allocations: 0 / 1.07 GB, free: 8.355 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.0006635/0.4021, allocations: 425.2 kB / 1.07 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.4021, allocations: 8.031 kB / 1.07 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.038e-05/0.4022, allocations: 16.83 kB / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00014/0.4023, allocations: 180.2 kB / 1.071 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.812e-05/0.4024, allocations: 12.38 kB / 1.071 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.478e-05/0.4024, allocations: 8.375 kB / 1.071 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002174/0.4026, allocations: 74.16 kB / 1.071 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.4026, allocations: 3.938 kB / 1.071 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.4026, allocations: 0 / 1.071 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.4027, allocations: 7.984 kB / 1.071 GB, free: 7.539 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001919/0.4028, allocations: 47.89 kB / 1.071 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005438/0.4034, allocations: 340.6 kB / 1.071 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001834/0.4036, allocations: 62.58 kB / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001095/0.4037, allocations: 36.95 kB / 1.071 GB, free: 7 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.229e-05/0.4037, allocations: 0 / 1.071 GB, free: 7 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002311/0.404, allocations: 91.27 kB / 1.071 GB, free: 6.898 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.503e-06/0.404, allocations: 0 / 1.071 GB, free: 6.898 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.0004722/0.4045, allocations: 141.6 kB / 1.071 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.213e-05/0.4045, allocations: 63.34 kB / 1.071 GB, free: 6.68 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.4046, allocations: 121.7 kB / 1.072 GB, free: 6.551 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.777e-05/0.4047, allocations: 33.7 kB / 1.072 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.93e-05/0.4047, allocations: 88.14 kB / 1.072 GB, free: 6.422 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.314e-05/0.4048, allocations: 27.64 kB / 1.072 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.311e-05/0.4048, allocations: 37.7 kB / 1.072 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.405, allocations: 322.8 kB / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001691/0.4052, allocations: 51.97 kB / 1.072 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001947/0.4054, allocations: 93.05 kB / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002975/0.4057, allocations: 146.8 kB / 1.072 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.4057, allocations: 0 / 1.072 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004702/0.4062, allocations: 219.2 kB / 1.073 GB, free: 5.473 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.865e-05/0.4062, allocations: 37.7 kB / 1.073 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.4062, allocations: 0 / 1.073 GB, free: 5.43 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.4062, allocations: 4 kB / 1.073 GB, free: 5.426 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.4063, allocations: 19.92 kB / 1.073 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.4064, allocations: 4.312 kB / 1.073 GB, free: 5.402 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002253/0.4066, allocations: 31.95 kB / 1.073 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.371e-05/0.4066, allocations: 8 kB / 1.073 GB, free: 5.363 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.000114/0.4067, allocations: 137.7 kB / 1.073 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.397e-05/0.4068, allocations: 3.906 kB / 1.073 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003083/0.4071, allocations: 126 kB / 1.073 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.4071, allocations: 0 / 1.073 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.4071, allocations: 0 / 1.073 GB, free: 5.086 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.401e-06/0.4071, allocations: 7.984 kB / 1.073 GB, free: 5.078 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004702/0.4076, allocations: 382.4 kB / 1.073 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.4076, allocations: 4 kB / 1.073 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.298e-05/0.4077, allocations: 7.984 kB / 1.073 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.4077, allocations: 0 / 1.073 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/0.4077, allocations: 7.938 kB / 1.073 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.4077, allocations: 0 / 1.073 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.4077, allocations: 3.938 kB / 1.073 GB, free: 4.625 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003255/0.408, allocations: 211.4 kB / 1.073 GB, free: 4.402 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.59e-05/0.4081, allocations: 89 kB / 1.074 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.711e-05/0.4081, allocations: 0 / 1.074 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.95e-05/0.4082, allocations: 4 kB / 1.074 GB, free: 4.293 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.051e-05/0.4083, allocations: 19.86 kB / 1.074 GB, free: 4.273 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-06/0.4083, allocations: 0 / 1.074 GB, free: 4.273 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.958e-05/0.4084, allocations: 95.27 kB / 1.074 GB, free: 4.18 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.727e-06/0.4084, allocations: 4 kB / 1.074 GB, free: 4.176 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003921/0.4088, allocations: 23.94 kB / 1.074 GB, free: 4.152 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.0001686/0.4089, allocations: 107.2 kB / 1.074 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003926/0.4093, allocations: 175.3 kB / 1.074 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.4094, allocations: 0 / 1.074 GB, free: 3.855 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001421/0.4095, allocations: 52.2 kB / 1.074 GB, free: 3.805 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000282/0.4098, allocations: 8.094 kB / 1.074 GB, free: 3.797 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004117/0.4102, allocations: 180.8 kB / 1.074 GB, free: 3.594 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000277/0.4105, allocations: 0.6965 MB / 1.075 GB, free: 2.871 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.711e-05/0.4105, allocations: 7.766 kB / 1.075 GB, free: 2.863 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.45e-05/0.4106, allocations: 15.44 kB / 1.075 GB, free: 2.848 MB / 0.8262 GB Notification: Performance of SimCode: time 4.31e-07/0.4106, allocations: 0 / 1.075 GB, free: 2.848 MB / 0.8262 GB Notification: Performance of Templates: time 0.003949/0.4145, allocations: 1.324 MB / 1.076 GB, free: 1.543 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)