Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.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.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 91.3 kB / 15.36 MB, free: 0.7383 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.01316/0.01316, allocations: 172.6 kB / 16.26 MB, free: 6.613 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.677/1.677, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.089/3.089, allocations: 473.4 MB / 0.7469 GB, free: 6.023 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003986/0.0003987, allocations: 9.219 kB / 0.9158 GB, free: 33.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4439/0.4443, allocations: 162.2 MB / 1.074 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay): time 0.001123/0.4455, allocations: 401.3 kB / 1.075 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001787/0.4473, allocations: 1.038 MB / 1.076 GB, free: 6.07 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.979e-05/0.4474, allocations: 3.938 kB / 1.076 GB, free: 6.066 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.163e-05/0.4474, allocations: 3.938 kB / 1.076 GB, free: 6.062 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.344e-05/0.4475, allocations: 11.91 kB / 1.076 GB, free: 6.051 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003158/0.4478, allocations: 35.92 kB / 1.076 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.301e-05/0.4479, allocations: 35.92 kB / 1.076 GB, free: 5.98 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.4481, allocations: 11.97 kB / 1.076 GB, free: 5.969 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.067e-05/0.4482, allocations: 19.94 kB / 1.076 GB, free: 5.949 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.127e-05/0.4482, allocations: 15.92 kB / 1.076 GB, free: 5.934 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.674e-05/0.4483, allocations: 0 / 1.076 GB, free: 5.934 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.161e-05/0.4484, allocations: 15.92 kB / 1.076 GB, free: 5.918 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.832e-05/0.4484, allocations: 15.97 kB / 1.076 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.6e-05/0.4485, allocations: 41.58 kB / 1.076 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001417/0.4486, allocations: 43.86 kB / 1.076 GB, free: 5.812 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.4486, allocations: 4 kB / 1.076 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.793e-06/0.4486, allocations: 0 / 1.076 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.359e-06/0.4486, allocations: 0 / 1.076 GB, free: 5.809 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005893/0.4492, allocations: 355.7 kB / 1.076 GB, free: 5.41 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/0.4493, allocations: 12.03 kB / 1.076 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.342e-05/0.4493, allocations: 4.938 kB / 1.076 GB, free: 5.395 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001423/0.4495, allocations: 180.2 kB / 1.076 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.762e-05/0.4495, allocations: 384 / 1.076 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.559e-05/0.4495, allocations: 4.375 kB / 1.076 GB, free: 5.176 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002212/0.4498, allocations: 70.22 kB / 1.076 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.4498, allocations: 192 / 1.076 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.702e-05/0.4498, allocations: 3.938 kB / 1.076 GB, free: 5.098 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.4498, allocations: 3.938 kB / 1.076 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002166/0.45, allocations: 51.95 kB / 1.076 GB, free: 5.043 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005478/0.4506, allocations: 277 kB / 1.077 GB, free: 4.723 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000156/0.4508, allocations: 58.48 kB / 1.077 GB, free: 4.656 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.4509, allocations: 28.94 kB / 1.077 GB, free: 4.625 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.683e-05/0.4509, allocations: 4 kB / 1.077 GB, free: 4.621 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002245/0.4511, allocations: 75.31 kB / 1.077 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=5): time 3.146e-06/0.4512, allocations: 7.938 kB / 1.077 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of matching and sorting (n=5): time 0.000452/0.4516, allocations: 121.5 kB / 1.077 GB, free: 4.402 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.353e-05/0.4517, allocations: 51.41 kB / 1.077 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000109/0.4518, allocations: 109.8 kB / 1.077 GB, free: 4.223 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.034e-05/0.4518, allocations: 29.7 kB / 1.077 GB, free: 4.188 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.915e-05/0.4519, allocations: 84.14 kB / 1.077 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.299e-05/0.4519, allocations: 19.73 kB / 1.077 GB, free: 4.082 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.81e-05/0.452, allocations: 13.72 kB / 1.077 GB, free: 4.062 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001436/0.4521, allocations: 314.8 kB / 1.078 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001093/0.4522, allocations: 31.97 kB / 1.078 GB, free: 3.715 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001188/0.4524, allocations: 55.72 kB / 1.078 GB, free: 3.648 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002411/0.4526, allocations: 91.22 kB / 1.078 GB, free: 3.547 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.4526, allocations: 0 / 1.078 GB, free: 3.547 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002901/0.4529, allocations: 109.6 kB / 1.078 GB, free: 3.434 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.453, allocations: 9.719 kB / 1.078 GB, free: 3.426 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.453, allocations: 160 / 1.078 GB, free: 3.426 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.453, allocations: 0 / 1.078 GB, free: 3.426 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.4531, allocations: 15.98 kB / 1.078 GB, free: 3.41 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.4531, allocations: 12.05 kB / 1.078 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.169e-05/0.4532, allocations: 23.83 kB / 1.078 GB, free: 3.375 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/0.4532, allocations: 4 kB / 1.078 GB, free: 3.371 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * 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.0001036/0.4534, allocations: 117.8 kB / 1.078 GB, free: 3.246 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.196e-05/0.4534, allocations: 0 / 1.078 GB, free: 3.246 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002956/0.4537, allocations: 105.6 kB / 1.078 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.4537, allocations: 0 / 1.078 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.4537, allocations: 0 / 1.078 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.4537, allocations: 320 / 1.078 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005346/0.4542, allocations: 362.3 kB / 1.078 GB, free: 2.723 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.4543, allocations: 0 / 1.078 GB, free: 2.723 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.588e-05/0.4543, allocations: 11.98 kB / 1.078 GB, free: 2.711 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.4543, allocations: 4 kB / 1.078 GB, free: 2.707 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.4544, allocations: 0 / 1.078 GB, free: 2.707 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.4544, allocations: 0 / 1.078 GB, free: 2.707 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.4544, allocations: 0 / 1.078 GB, free: 2.707 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003345/0.4547, allocations: 199.4 kB / 1.079 GB, free: 2.496 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.029e-05/0.4548, allocations: 77.11 kB / 1.079 GB, free: 2.402 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.723e-05/0.4548, allocations: 11.94 kB / 1.079 GB, free: 2.391 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.98e-05/0.4549, allocations: 11.98 kB / 1.079 GB, free: 2.379 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.843e-05/0.455, allocations: 4 kB / 1.079 GB, free: 2.375 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.906e-06/0.455, allocations: 3.938 kB / 1.079 GB, free: 2.371 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.972e-05/0.4551, allocations: 91.27 kB / 1.079 GB, free: 2.281 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.01e-07/0.4551, allocations: 0 / 1.079 GB, free: 2.281 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000258/0.4553, allocations: 11.91 kB / 1.079 GB, free: 2.27 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: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001888/0.4555, allocations: 95.25 kB / 1.079 GB, free: 2.168 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002781/0.4558, allocations: 75.89 kB / 1.079 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4558, allocations: 0 / 1.079 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001253/0.456, allocations: 36.22 kB / 1.079 GB, free: 2.059 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002818/0.4562, allocations: 11.94 kB / 1.079 GB, free: 2.047 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003823/0.4566, allocations: 146.6 kB / 1.079 GB, free: 1.871 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/0.4569, allocations: 0.6809 MB / 1.08 GB, free: 1.164 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.409e-05/0.457, allocations: 7.984 kB / 1.08 GB, free: 1.156 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.669e-05/0.457, allocations: 11.44 kB / 1.08 GB, free: 1.145 MB / 0.8262 GB Notification: Performance of SimCode: time 4.51e-07/0.457, allocations: 0 / 1.08 GB, free: 1.145 MB / 0.8262 GB Notification: Performance of Templates: time 0.003724/0.4608, allocations: 0.6576 MB / 1.081 GB, free: 0.4961 MB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.makefile (rm -f Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; mkfifo Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe >> ../files/Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.sim & ./Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.OBC.CDL.Discrete.Validation.UnitDelay.pipe 2>&1)