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.001396/0.001396, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001721/0.001721, allocations: 193.6 kB / 16.53 MB, free: 6.664 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.464/1.464, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.807/2.807, allocations: 472.6 MB / 0.7451 GB, free: 4.703 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002507/0.002507, allocations: 58.25 kB / 0.912 GB, free: 33.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3146/0.3171, allocations: 159.9 MB / 1.068 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002591/0.3198, allocations: 1.424 MB / 1.07 GB, free: 9.059 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0007705/0.3206, allocations: 434.8 kB / 1.07 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.26e-05/0.3206, allocations: 0 / 1.07 GB, free: 8.629 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.989e-05/0.3207, allocations: 7.938 kB / 1.07 GB, free: 8.621 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.936e-05/0.3208, allocations: 19.91 kB / 1.07 GB, free: 8.602 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001564/0.3209, allocations: 19.92 kB / 1.07 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001076/0.321, allocations: 47.86 kB / 1.07 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 8.371e-05/0.3211, allocations: 7.984 kB / 1.07 GB, free: 8.527 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.675e-05/0.3212, allocations: 27.86 kB / 1.07 GB, free: 8.5 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.104e-05/0.3213, allocations: 19.92 kB / 1.07 GB, free: 8.48 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.677e-05/0.3213, allocations: 0 / 1.07 GB, free: 8.48 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 1.046e-05/0.3213, allocations: 4 kB / 1.07 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.293e-05/0.3213, allocations: 15.92 kB / 1.07 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.901e-05/0.3214, allocations: 19.92 kB / 1.07 GB, free: 8.441 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 9.024e-05/0.3215, allocations: 39.83 kB / 1.07 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.3215, allocations: 0 / 1.07 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.172e-06/0.3215, allocations: 0 / 1.07 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.088e-06/0.3215, allocations: 0 / 1.07 GB, free: 8.402 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.0005718/0.3221, allocations: 393.4 kB / 1.071 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.3221, allocations: 12.03 kB / 1.071 GB, free: 7.953 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.838e-05/0.3222, allocations: 8.844 kB / 1.071 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001302/0.3223, allocations: 176.2 kB / 1.071 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.422e-05/0.3223, allocations: 4.375 kB / 1.071 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.389e-05/0.3223, allocations: 8.359 kB / 1.071 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000118/0.3225, allocations: 57.98 kB / 1.071 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.3225, allocations: 0 / 1.071 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.108e-05/0.3225, allocations: 0 / 1.071 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.3225, allocations: 0 / 1.071 GB, free: 7.66 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.11e-05/0.3226, allocations: 23.98 kB / 1.071 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004358/0.323, allocations: 268.8 kB / 1.071 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.865e-05/0.3231, allocations: 46.5 kB / 1.071 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.564e-05/0.3232, allocations: 20.98 kB / 1.071 GB, free: 7.246 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.152e-05/0.3232, allocations: 0 / 1.071 GB, free: 7.246 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002325/0.3234, allocations: 101.1 kB / 1.071 GB, free: 7.129 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.523e-06/0.3234, allocations: 4 kB / 1.071 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0002958/0.3237, allocations: 147.2 kB / 1.071 GB, free: 6.969 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.202e-05/0.3238, allocations: 81.11 kB / 1.071 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.03e-05/0.3239, allocations: 109.8 kB / 1.072 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.3239, allocations: 25.7 kB / 1.072 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.599e-05/0.324, allocations: 88.14 kB / 1.072 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.131e-05/0.324, allocations: 11.81 kB / 1.072 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.474e-05/0.3241, allocations: 29.7 kB / 1.072 GB, free: 6.586 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001331/0.3242, allocations: 322.8 kB / 1.072 GB, free: 6.262 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.563e-05/0.3243, allocations: 23.86 kB / 1.072 GB, free: 6.238 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.103e-05/0.3243, allocations: 42.5 kB / 1.072 GB, free: 6.188 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001074/0.3245, allocations: 110 kB / 1.072 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.3245, allocations: 0 / 1.072 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001662/0.3246, allocations: 127.2 kB / 1.072 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.481e-05/0.3247, allocations: 39.11 kB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.3247, allocations: 4.328 kB / 1.072 GB, free: 5.875 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.3247, allocations: 4 kB / 1.072 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.294e-05/0.3248, allocations: 0 / 1.072 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.3248, allocations: 4 kB / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.458e-05/0.3249, allocations: 11.92 kB / 1.072 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-06/0.3249, allocations: 4 kB / 1.072 GB, free: 5.852 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.0001284/0.325, allocations: 151.5 kB / 1.073 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.821e-05/0.325, allocations: 11.89 kB / 1.073 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.02e-05/0.3251, allocations: 8.375 kB / 1.073 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.3251, allocations: 0 / 1.073 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.3251, allocations: 0 / 1.073 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.3251, allocations: 0 / 1.073 GB, free: 5.668 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004062/0.3255, allocations: 404.1 kB / 1.073 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.3255, allocations: 0 / 1.073 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.097e-05/0.3255, allocations: 7.938 kB / 1.073 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.472e-06/0.3255, allocations: 4 kB / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.918e-06/0.3255, allocations: 0 / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.3256, allocations: 4.359 kB / 1.073 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.3256, allocations: 0 / 1.073 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002248/0.3258, allocations: 237.1 kB / 1.073 GB, free: 4.941 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.43e-05/0.3258, allocations: 89.02 kB / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.017e-05/0.3259, allocations: 0 / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.326, allocations: 11.98 kB / 1.073 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.289e-05/0.326, allocations: 19.88 kB / 1.073 GB, free: 4.805 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.3261, allocations: 3.984 kB / 1.073 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.949e-05/0.3261, allocations: 87.28 kB / 1.073 GB, free: 4.715 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.205e-06/0.3261, allocations: 0 / 1.073 GB, free: 4.715 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002298/0.3264, allocations: 15.94 kB / 1.073 GB, free: 4.699 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.0001138/0.3265, allocations: 107.8 kB / 1.073 GB, free: 4.586 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002083/0.3267, allocations: 119.3 kB / 1.074 GB, free: 4.457 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.3267, allocations: 4.125 kB / 1.074 GB, free: 4.453 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.432e-05/0.3268, allocations: 87.39 kB / 1.074 GB, free: 4.355 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002925/0.3271, allocations: 17.39 kB / 1.074 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003502/0.3275, allocations: 161.2 kB / 1.074 GB, free: 4.156 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002635/0.3277, allocations: 0.6894 MB / 1.075 GB, free: 3.441 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.608e-05/0.3278, allocations: 4 kB / 1.075 GB, free: 3.438 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.354e-05/0.3278, allocations: 7.438 kB / 1.075 GB, free: 3.43 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.3278, allocations: 4 kB / 1.075 GB, free: 3.426 MB / 0.8262 GB Notification: Performance of Templates: time 0.003114/0.3309, allocations: 0.8547 MB / 1.075 GB, free: 2.582 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)