Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Controls.Discrete.Examples.BooleanDelay.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.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.Discrete.Examples.BooleanDelay") translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.Discrete.Examples.BooleanDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.00867/0.00867, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.468/1.468, 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 2.851/2.851, allocations: 473.4 MB / 0.7469 GB, free: 6.035 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003419/0.0003419, allocations: 7.938 kB / 0.9158 GB, free: 33.11 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3142, allocations: 162.2 MB / 1.074 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.001549/0.3158, allocations: 1.145 MB / 1.075 GB, free: 6.379 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006501/0.3164, allocations: 435 kB / 1.076 GB, free: 5.949 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.735e-05/0.3165, allocations: 0 / 1.076 GB, free: 5.949 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.388e-05/0.3165, allocations: 4 kB / 1.076 GB, free: 5.945 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.688e-05/0.3166, allocations: 7.938 kB / 1.076 GB, free: 5.938 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001349/0.3167, allocations: 23.91 kB / 1.076 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.973e-05/0.3168, allocations: 35.92 kB / 1.076 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 7.961e-05/0.3169, allocations: 7.984 kB / 1.076 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.355e-05/0.3169, allocations: 19.88 kB / 1.076 GB, free: 5.852 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.774e-05/0.317, allocations: 19.92 kB / 1.076 GB, free: 5.832 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.562e-05/0.317, allocations: 0 / 1.076 GB, free: 5.832 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.198e-05/0.317, allocations: 4 kB / 1.076 GB, free: 5.828 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.198e-05/0.3171, allocations: 7.922 kB / 1.076 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.119e-05/0.3171, allocations: 49.62 kB / 1.076 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 8.794e-05/0.3172, allocations: 39.81 kB / 1.076 GB, free: 5.727 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.3172, allocations: 0 / 1.076 GB, free: 5.727 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.262e-06/0.3172, allocations: 0 / 1.076 GB, free: 5.727 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.326e-06/0.3173, allocations: 0 / 1.076 GB, free: 5.727 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005183/0.3178, allocations: 397.4 kB / 1.076 GB, free: 5.285 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.093e-05/0.3178, allocations: 11.97 kB / 1.076 GB, free: 5.273 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.956e-05/0.3179, allocations: 8.844 kB / 1.076 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001058/0.318, allocations: 164.3 kB / 1.076 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.318, allocations: 4.375 kB / 1.076 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.363e-05/0.318, allocations: 4.375 kB / 1.076 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001152/0.3181, allocations: 61.95 kB / 1.076 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.57e-06/0.3181, allocations: 0 / 1.076 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.787e-06/0.3182, allocations: 7.938 kB / 1.077 GB, free: 4.984 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.918e-06/0.3182, allocations: 0 / 1.077 GB, free: 4.984 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.214e-05/0.3182, allocations: 23.98 kB / 1.077 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003787/0.3186, allocations: 272.7 kB / 1.077 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 7.237e-05/0.3187, allocations: 42.56 kB / 1.077 GB, free: 4.594 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.707e-05/0.3187, allocations: 16.98 kB / 1.077 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.625e-05/0.3188, allocations: 4 kB / 1.077 GB, free: 4.57 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001677/0.3189, allocations: 109 kB / 1.077 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.293e-06/0.3189, allocations: 0 / 1.077 GB, free: 4.445 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0002544/0.3192, allocations: 135.3 kB / 1.077 GB, free: 4.301 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.895e-05/0.3193, allocations: 85.17 kB / 1.077 GB, free: 4.199 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.987e-05/0.3193, allocations: 113.8 kB / 1.077 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.628e-05/0.3194, allocations: 29.7 kB / 1.077 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.973e-05/0.3194, allocations: 84.14 kB / 1.077 GB, free: 3.957 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.814e-05/0.3194, allocations: 15.81 kB / 1.077 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.832e-05/0.3195, allocations: 21.7 kB / 1.077 GB, free: 3.914 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001073/0.3196, allocations: 318.8 kB / 1.078 GB, free: 3.594 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.178e-05/0.3196, allocations: 19.98 kB / 1.078 GB, free: 3.574 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.653e-05/0.3197, allocations: 42.5 kB / 1.078 GB, free: 3.523 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.529e-05/0.3198, allocations: 105.9 kB / 1.078 GB, free: 3.398 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3198, allocations: 4 kB / 1.078 GB, free: 3.395 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001637/0.32, allocations: 131.2 kB / 1.078 GB, free: 3.254 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.902e-05/0.32, allocations: 33.7 kB / 1.078 GB, free: 3.215 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.928e-06/0.32, allocations: 0 / 1.078 GB, free: 3.215 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.648e-06/0.32, allocations: 0 / 1.078 GB, free: 3.215 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.932e-05/0.3201, allocations: 4 kB / 1.078 GB, free: 3.211 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.93e-06/0.3201, allocations: 0 / 1.078 GB, free: 3.211 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.655e-05/0.3201, allocations: 15.92 kB / 1.078 GB, free: 3.195 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.3202, allocations: 4.062 kB / 1.078 GB, free: 3.191 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 11 (del.firstTrigger,$PRE.del.firstTrigger,$whenCondition2,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,del.ySample,del.sampleTrigger,del.y,$whenCondition3,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * 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 9.884e-05/0.3203, allocations: 159.8 kB / 1.078 GB, free: 3.02 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.469e-05/0.3203, allocations: 7.906 kB / 1.078 GB, free: 3.012 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.407e-05/0.3203, allocations: 12.36 kB / 1.078 GB, free: 3 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-06/0.3203, allocations: 0 / 1.078 GB, free: 3 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.3203, allocations: 4 kB / 1.078 GB, free: 2.996 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.3203, allocations: 7.984 kB / 1.078 GB, free: 2.988 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003991/0.3207, allocations: 396.2 kB / 1.079 GB, free: 2.539 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3208, allocations: 4 kB / 1.079 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.447e-06/0.3208, allocations: 0 / 1.079 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.3208, allocations: 4 kB / 1.079 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.498e-05/0.3208, allocations: 4 kB / 1.079 GB, free: 2.527 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.3208, allocations: 0 / 1.079 GB, free: 2.527 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3208, allocations: 0 / 1.079 GB, free: 2.527 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002277/0.3211, allocations: 241 kB / 1.079 GB, free: 2.27 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.383e-05/0.3211, allocations: 81.11 kB / 1.079 GB, free: 2.172 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.795e-05/0.3211, allocations: 4 kB / 1.079 GB, free: 2.168 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.3212, allocations: 15.98 kB / 1.079 GB, free: 2.152 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.308e-05/0.3213, allocations: 7.938 kB / 1.079 GB, free: 2.145 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.725e-05/0.3213, allocations: 7.984 kB / 1.079 GB, free: 2.137 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.232e-05/0.3214, allocations: 83.28 kB / 1.079 GB, free: 2.055 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3214, allocations: 0 / 1.079 GB, free: 2.055 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002275/0.3216, allocations: 16 kB / 1.079 GB, free: 2.039 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: 9 (del.sampleTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.firstTrigger,del.ySample,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 3 (del.ySample,del.y,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.000111/0.3217, allocations: 104.7 kB / 1.079 GB, free: 1.93 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001781/0.3219, allocations: 116.1 kB / 1.079 GB, free: 1.805 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.3219, allocations: 3.938 kB / 1.079 GB, free: 1.801 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.793e-05/0.322, allocations: 91.39 kB / 1.079 GB, free: 1.699 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002926/0.3223, allocations: 15.98 kB / 1.079 GB, free: 1.684 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003626/0.3227, allocations: 164.5 kB / 1.08 GB, free: 1.488 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002516/0.323, allocations: 0.6887 MB / 1.08 GB, free: 0.7734 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.771e-05/0.323, allocations: 4 kB / 1.08 GB, free: 0.7695 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.892e-05/0.323, allocations: 15.38 kB / 1.08 GB, free: 0.7539 MB / 0.8262 GB Notification: Performance of SimCode: time 4.11e-07/0.323, allocations: 4 kB / 1.08 GB, free: 0.75 MB / 0.8262 GB Notification: Performance of Templates: time 0.003065/0.3261, allocations: 0.7571 MB / 1.081 GB, free: 0 / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f Buildings_3.0.0_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_3.0.0_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_3.0.0_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_3.0.0_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)