Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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_1.6_Buildings.Controls.Discrete.Examples.BooleanDelay") translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.001692/0.001692, 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.002151/0.002151, allocations: 194.1 kB / 16.14 MB, free: 6.656 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.367/1.367, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.83/2.83, allocations: 472.6 MB / 0.7447 GB, free: 5.02 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001844/0.001844, allocations: 67.2 kB / 0.9113 GB, free: 33.59 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/0.3454, allocations: 159.9 MB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.003219/0.3487, allocations: 1.49 MB / 1.069 GB, free: 9.5 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009224/0.3496, allocations: 438.9 kB / 1.069 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.001e-05/0.3497, allocations: 0 / 1.069 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.733e-05/0.3498, allocations: 0 / 1.069 GB, free: 9.066 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.048e-05/0.3498, allocations: 7.922 kB / 1.069 GB, free: 9.059 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001786/0.35, allocations: 19.92 kB / 1.069 GB, free: 9.039 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.066e-05/0.3501, allocations: 43.86 kB / 1.069 GB, free: 8.996 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.31e-05/0.3502, allocations: 11.98 kB / 1.069 GB, free: 8.984 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.037e-05/0.3503, allocations: 15.94 kB / 1.069 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 7.285e-05/0.3504, allocations: 19.92 kB / 1.069 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.856e-05/0.3504, allocations: 0 / 1.069 GB, free: 8.949 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.71e-05/0.3504, allocations: 4 kB / 1.069 GB, free: 8.945 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.061e-05/0.3505, allocations: 11.91 kB / 1.069 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 5.22e-05/0.3505, allocations: 19.88 kB / 1.07 GB, free: 8.914 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001303/0.3507, allocations: 39.83 kB / 1.07 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.3507, allocations: 0 / 1.07 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.193e-06/0.3507, allocations: 0 / 1.07 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.143e-06/0.3507, allocations: 8 kB / 1.07 GB, free: 8.867 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.0006914/0.3514, allocations: 389.4 kB / 1.07 GB, free: 8.434 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.3515, allocations: 8.031 kB / 1.07 GB, free: 8.426 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.875e-05/0.3515, allocations: 12.84 kB / 1.07 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000134/0.3517, allocations: 176.2 kB / 1.07 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.594e-05/0.3517, allocations: 4.375 kB / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.422e-05/0.3517, allocations: 4.375 kB / 1.07 GB, free: 8.195 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001335/0.3518, allocations: 57.98 kB / 1.07 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.3519, allocations: 0 / 1.07 GB, free: 8.133 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.685e-05/0.3519, allocations: 4 kB / 1.07 GB, free: 8.129 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.3519, allocations: 4 kB / 1.07 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.09e-05/0.352, allocations: 19.92 kB / 1.07 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004394/0.3524, allocations: 264.8 kB / 1.07 GB, free: 7.797 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 9.45e-05/0.3525, allocations: 46.56 kB / 1.071 GB, free: 7.742 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.566e-05/0.3526, allocations: 24.97 kB / 1.071 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.849e-05/0.3526, allocations: 0 / 1.071 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002394/0.3528, allocations: 101 kB / 1.071 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.402e-06/0.3528, allocations: 0 / 1.071 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0002973/0.3531, allocations: 147.3 kB / 1.071 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.095e-05/0.3532, allocations: 85.09 kB / 1.071 GB, free: 7.34 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.919e-05/0.3533, allocations: 117.9 kB / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.612e-05/0.3533, allocations: 29.7 kB / 1.071 GB, free: 7.18 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.397e-05/0.3534, allocations: 84.14 kB / 1.071 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.991e-05/0.3534, allocations: 11.81 kB / 1.071 GB, free: 7.082 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.822e-05/0.3535, allocations: 29.7 kB / 1.071 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.3536, allocations: 318.8 kB / 1.071 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.928e-05/0.3536, allocations: 15.98 kB / 1.071 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.371e-05/0.3537, allocations: 46.5 kB / 1.071 GB, free: 6.656 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000121/0.3538, allocations: 109.9 kB / 1.072 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3538, allocations: 0 / 1.072 GB, free: 6.527 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001671/0.354, allocations: 131.2 kB / 1.072 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.872e-05/0.354, allocations: 33.7 kB / 1.072 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.354, allocations: 0 / 1.072 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.694e-05/0.3541, allocations: 4 kB / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.491e-05/0.3541, allocations: 4.062 kB / 1.072 GB, free: 6.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.3541, allocations: 4 kB / 1.072 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.207e-05/0.3542, allocations: 11.92 kB / 1.072 GB, free: 6.324 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.061e-05/0.3542, allocations: 4 kB / 1.072 GB, free: 6.32 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 0.0001148/0.3543, allocations: 157.2 kB / 1.072 GB, free: 6.152 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.897e-05/0.3544, allocations: 7.906 kB / 1.072 GB, free: 6.145 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.877e-05/0.3544, allocations: 8.359 kB / 1.072 GB, free: 6.137 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.3544, allocations: 0 / 1.072 GB, free: 6.137 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.3544, allocations: 4 kB / 1.072 GB, free: 6.133 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.3544, allocations: 0 / 1.072 GB, free: 6.133 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004128/0.3549, allocations: 400.5 kB / 1.072 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3549, allocations: 0 / 1.072 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.059e-05/0.3549, allocations: 4 kB / 1.072 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.3549, allocations: 0 / 1.072 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.3549, allocations: 4.062 kB / 1.072 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.586e-06/0.3549, allocations: 4 kB / 1.072 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3549, allocations: 3.984 kB / 1.072 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002308/0.3552, allocations: 241 kB / 1.073 GB, free: 5.406 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.606e-05/0.3552, allocations: 85.02 kB / 1.073 GB, free: 5.305 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.436e-05/0.3552, allocations: 0 / 1.073 GB, free: 5.305 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001082/0.3554, allocations: 15.98 kB / 1.073 GB, free: 5.289 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.015e-05/0.3554, allocations: 7.938 kB / 1.073 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.697e-05/0.3554, allocations: 3.984 kB / 1.073 GB, free: 5.277 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.84e-05/0.3555, allocations: 87.28 kB / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.11e-07/0.3555, allocations: 4 kB / 1.073 GB, free: 5.188 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002381/0.3557, allocations: 12 kB / 1.073 GB, free: 5.176 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.000114/0.3559, allocations: 103.2 kB / 1.073 GB, free: 5.066 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001946/0.3561, allocations: 115.3 kB / 1.073 GB, free: 4.941 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.3561, allocations: 3.938 kB / 1.073 GB, free: 4.938 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.295e-05/0.3562, allocations: 91.33 kB / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00033/0.3565, allocations: 15.98 kB / 1.073 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004039/0.3569, allocations: 167.2 kB / 1.073 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002458/0.3572, allocations: 0.6815 MB / 1.074 GB, free: 3.922 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.196e-05/0.3572, allocations: 4 kB / 1.074 GB, free: 3.918 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.083e-05/0.3573, allocations: 11.44 kB / 1.074 GB, free: 3.906 MB / 0.8262 GB Notification: Performance of SimCode: time 3.1e-07/0.3573, allocations: 0 / 1.074 GB, free: 3.906 MB / 0.8262 GB Notification: Performance of Templates: time 0.003241/0.3605, allocations: 0.7814 MB / 1.075 GB, free: 3.137 MB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f Buildings_1.6_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_1.6_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_1.6_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_1.6_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)