Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay") translateModel(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7883/0.7883, allocations: 143.4 MB / 159.2 MB, free: 4.918 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 184.5 kB / 191.9 MB, free: 5.73 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.335/1.335, allocations: 222.9 MB / 447.3 MB, free: 5.84 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009914/0.0009914, allocations: 115.1 kB / 0.517 GB, free: 3.695 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001842/0.001842, allocations: 282.5 kB / 0.5973 GB, free: 49.34 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 75.88 kB / 0.6885 GB, free: 3.828 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.32/0.3213, allocations: 81.3 MB / 0.7679 GB, free: 27.62 MB / 458.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Discrete.Examples.BooleanDelay): time 0.002223/0.3236, allocations: 1.476 MB / 0.7694 GB, free: 26.15 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005616/0.3242, allocations: 431 kB / 0.7698 GB, free: 25.72 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.058e-05/0.3242, allocations: 4 kB / 0.7698 GB, free: 25.72 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 3.038e-05/0.3242, allocations: 3.938 kB / 0.7698 GB, free: 25.71 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 7.064e-05/0.3243, allocations: 15.91 kB / 0.7698 GB, free: 25.7 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001271/0.3245, allocations: 15.98 kB / 0.7698 GB, free: 25.68 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 6.421e-05/0.3245, allocations: 43.86 kB / 0.7699 GB, free: 25.64 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.786e-05/0.3246, allocations: 4 kB / 0.7699 GB, free: 25.64 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.747e-05/0.3247, allocations: 19.92 kB / 0.7699 GB, free: 25.62 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.707e-05/0.3247, allocations: 19.86 kB / 0.7699 GB, free: 25.6 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 1.871e-05/0.3248, allocations: 4 kB / 0.7699 GB, free: 25.59 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.134e-05/0.3248, allocations: 7.875 kB / 0.7699 GB, free: 25.59 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 2.214e-05/0.3248, allocations: 11.97 kB / 0.7699 GB, free: 25.57 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 4.071e-05/0.3249, allocations: 23.88 kB / 0.7699 GB, free: 25.55 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 8.578e-05/0.3249, allocations: 38.56 kB / 0.77 GB, free: 25.52 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.325, allocations: 0 / 0.77 GB, free: 25.52 MB / 458.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.325, allocations: 0 / 0.77 GB, free: 25.52 MB / 458.7 MB Notification: Performance of Transformations before backend: time 3.757e-06/0.325, allocations: 0 / 0.77 GB, free: 25.52 MB / 458.7 MB 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.0004507/0.3254, allocations: 389.1 kB / 0.7704 GB, free: 25.08 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.102e-05/0.3255, allocations: 8.031 kB / 0.7704 GB, free: 25.07 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.119e-05/0.3255, allocations: 16.84 kB / 0.7704 GB, free: 25.06 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.339e-05/0.3256, allocations: 176.3 kB / 0.7705 GB, free: 24.85 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.3256, allocations: 4.375 kB / 0.7706 GB, free: 24.84 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.36e-05/0.3256, allocations: 4.375 kB / 0.7706 GB, free: 24.84 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.617e-05/0.3257, allocations: 50 kB / 0.7706 GB, free: 24.79 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.253e-06/0.3257, allocations: 3.938 kB / 0.7706 GB, free: 24.78 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.065e-05/0.3257, allocations: 11.97 kB / 0.7706 GB, free: 24.77 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.3258, allocations: 0 / 0.7706 GB, free: 24.77 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.552e-05/0.3258, allocations: 16 kB / 0.7706 GB, free: 24.75 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002911/0.3261, allocations: 272.8 kB / 0.7709 GB, free: 24.44 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.619e-05/0.3262, allocations: 42.56 kB / 0.7709 GB, free: 24.39 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.155e-05/0.3262, allocations: 28.97 kB / 0.771 GB, free: 24.36 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.634e-05/0.3262, allocations: 0 / 0.771 GB, free: 24.36 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001647/0.3264, allocations: 97.03 kB / 0.7711 GB, free: 24.24 MB / 458.7 MB Notification: Performance of pre-optimization done (n=9): time 1.673e-06/0.3264, allocations: 4 kB / 0.7711 GB, free: 24.24 MB / 458.7 MB Notification: Performance of matching and sorting (n=9): time 0.00022/0.3267, allocations: 147.3 kB / 0.7712 GB, free: 24.08 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.863e-05/0.3267, allocations: 81.11 kB / 0.7713 GB, free: 23.98 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.785e-05/0.3268, allocations: 109.8 kB / 0.7714 GB, free: 23.87 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 9.528e-06/0.3268, allocations: 29.7 kB / 0.7714 GB, free: 23.83 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.533e-05/0.3268, allocations: 84.12 kB / 0.7715 GB, free: 23.75 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.523e-05/0.3268, allocations: 15.81 kB / 0.7715 GB, free: 23.73 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.192e-05/0.3269, allocations: 21.72 kB / 0.7715 GB, free: 23.7 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 4.864e-05/0.3269, allocations: 331 kB / 0.7718 GB, free: 23.37 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.778e-05/0.3269, allocations: 15.94 kB / 0.7719 GB, free: 23.36 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.454e-05/0.327, allocations: 42.5 kB / 0.7719 GB, free: 23.3 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.857e-05/0.3271, allocations: 113.9 kB / 0.772 GB, free: 23.17 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3271, allocations: 0 / 0.772 GB, free: 23.17 MB / 458.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001143/0.3272, allocations: 131.2 kB / 0.7721 GB, free: 23.03 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.64e-05/0.3272, allocations: 37.69 kB / 0.7722 GB, free: 22.99 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.3272, allocations: 400 / 0.7722 GB, free: 22.99 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.3272, allocations: 0 / 0.7722 GB, free: 22.99 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.827e-05/0.3273, allocations: 4 kB / 0.7722 GB, free: 22.98 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.3273, allocations: 7.938 kB / 0.7722 GB, free: 22.98 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.765e-05/0.3274, allocations: 4 kB / 0.7722 GB, free: 22.97 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-06/0.3274, allocations: 4 kB / 0.7722 GB, free: 22.97 MB / 458.7 MB 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 6.821e-05/0.3274, allocations: 152.6 kB / 0.7723 GB, free: 22.8 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.486e-05/0.3275, allocations: 11.91 kB / 0.7723 GB, free: 22.79 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.164e-05/0.3275, allocations: 8.375 kB / 0.7723 GB, free: 22.79 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-06/0.3275, allocations: 0 / 0.7723 GB, free: 22.79 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.3275, allocations: 0 / 0.7723 GB, free: 22.79 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.3275, allocations: 3.984 kB / 0.7724 GB, free: 22.78 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002646/0.3278, allocations: 404.1 kB / 0.7727 GB, free: 22.32 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.3278, allocations: 0 / 0.7727 GB, free: 22.32 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.183e-06/0.3278, allocations: 0 / 0.7727 GB, free: 22.32 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.3278, allocations: 4 kB / 0.7727 GB, free: 22.32 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.3278, allocations: 8.062 kB / 0.7728 GB, free: 22.31 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.3278, allocations: 4 kB / 0.7728 GB, free: 22.31 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3278, allocations: 0 / 0.7728 GB, free: 22.31 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002921/0.3281, allocations: 0.8036 MB / 0.7735 GB, free: 21.44 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.178e-05/0.3282, allocations: 88.95 kB / 0.7736 GB, free: 21.34 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.027e-05/0.3282, allocations: 4 kB / 0.7736 GB, free: 21.33 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.561e-05/0.3283, allocations: 11.98 kB / 0.7736 GB, free: 21.32 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.531e-05/0.3284, allocations: 4 kB / 0.7736 GB, free: 21.32 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.45e-05/0.3284, allocations: 8.078 kB / 0.7737 GB, free: 21.31 MB / 458.7 MB Notification: Performance of sorting global known variables: time 2.889e-05/0.3284, allocations: 87.22 kB / 0.7737 GB, free: 21.22 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.62e-07/0.3284, allocations: 0 / 0.7737 GB, free: 21.22 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003179/0.3287, allocations: 23.94 kB / 0.7738 GB, free: 21.2 MB / 458.7 MB 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 6.767e-05/0.3288, allocations: 101.3 kB / 0.7739 GB, free: 21.09 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0001252/0.3289, allocations: 119.3 kB / 0.774 GB, free: 20.96 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.329, allocations: 0 / 0.774 GB, free: 20.96 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 5.977e-05/0.329, allocations: 87.39 kB / 0.7741 GB, free: 20.87 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002683/0.3293, allocations: 19.92 kB / 0.7741 GB, free: 20.85 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003197/0.3296, allocations: 286.2 kB / 0.7743 GB, free: 20.53 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001038/0.3297, allocations: 0.6904 MB / 0.775 GB, free: 19.81 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 2.66e-05/0.3298, allocations: 11.77 kB / 0.775 GB, free: 19.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.042e-05/0.3298, allocations: 11.44 kB / 0.775 GB, free: 19.79 MB / 458.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3298, allocations: 0 / 0.775 GB, free: 19.79 MB / 458.7 MB Notification: Performance of Templates: time 0.002674/0.3325, allocations: 0.8113 MB / 0.7758 GB, free: 18.98 MB / 458.7 MB make -j1 -f BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.sim & ./BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)