Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.Discrete.Examples.BooleanDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.Discrete.Examples.BooleanDelay") translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Controls.Discrete.Examples.BooleanDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.74/1.74, allocations: 287.5 MB / 302.6 MB, free: 8.359 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001059/0.001059, allocations: 186.7 kB / 371.2 MB, free: 10.81 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.695/1.695, allocations: 205.4 MB / 0.6298 GB, free: 10.53 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008877/0.0008878, allocations: 103 kB / 0.7432 GB, free: 6.52 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000462/0.0004625, allocations: 10.97 kB / 0.8661 GB, free: 141.2 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3069/0.3074, allocations: 115.3 MB / 0.9787 GB, free: 28.2 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.001697/0.3092, allocations: 1.14 MB / 0.9798 GB, free: 27.05 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.000706/0.3099, allocations: 444.2 kB / 0.9802 GB, free: 26.61 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.886e-05/0.31, allocations: 0 / 0.9802 GB, free: 26.61 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.869e-05/0.31, allocations: 3.938 kB / 0.9802 GB, free: 26.6 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 9.878e-05/0.3101, allocations: 11.86 kB / 0.9802 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001565/0.3103, allocations: 19.98 kB / 0.9802 GB, free: 26.57 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.596e-05/0.3104, allocations: 43.86 kB / 0.9803 GB, free: 26.53 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.3105, allocations: 11.98 kB / 0.9803 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 5.858e-05/0.3106, allocations: 7.938 kB / 0.9803 GB, free: 26.51 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.924e-05/0.3106, allocations: 27.84 kB / 0.9803 GB, free: 26.48 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.787e-05/0.3107, allocations: 0 / 0.9803 GB, free: 26.48 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 1.263e-05/0.3107, allocations: 4 kB / 0.9803 GB, free: 26.48 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.349e-05/0.3107, allocations: 7.984 kB / 0.9803 GB, free: 26.47 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.883e-05/0.3107, allocations: 29.7 kB / 0.9804 GB, free: 26.43 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 8.013e-05/0.3108, allocations: 24.23 kB / 0.9804 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3108, allocations: 4 kB / 0.9804 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.234e-06/0.3109, allocations: 0 / 0.9804 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.51e-06/0.3109, allocations: 0 / 0.9804 GB, free: 26.41 MB / 0.6198 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.0006464/0.3115, allocations: 393.1 kB / 0.9808 GB, free: 25.97 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.527e-05/0.3116, allocations: 12.03 kB / 0.9808 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.492e-05/0.3116, allocations: 8.844 kB / 0.9808 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001391/0.3118, allocations: 172.3 kB / 0.981 GB, free: 25.74 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.595e-05/0.3118, allocations: 8.375 kB / 0.981 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.635e-05/0.3119, allocations: 4.359 kB / 0.981 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001519/0.312, allocations: 53.98 kB / 0.981 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.312, allocations: 0 / 0.981 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.558e-05/0.3121, allocations: 4 kB / 0.981 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.3121, allocations: 0 / 0.981 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.682e-05/0.3121, allocations: 19.98 kB / 0.981 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004786/0.3126, allocations: 276.7 kB / 0.9813 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 9.421e-05/0.3127, allocations: 42.56 kB / 0.9813 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.728e-05/0.3128, allocations: 20.98 kB / 0.9814 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.37e-05/0.3128, allocations: 0 / 0.9814 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002281/0.313, allocations: 105 kB / 0.9815 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=9): time 1.242e-06/0.3131, allocations: 4 kB / 0.9815 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of matching and sorting (n=9): time 0.0003104/0.3134, allocations: 135.6 kB / 0.9816 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.407e-05/0.3134, allocations: 89.03 kB / 0.9817 GB, free: 24.88 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.473e-05/0.3135, allocations: 109.8 kB / 0.9818 GB, free: 24.76 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.551e-05/0.3136, allocations: 29.64 kB / 0.9818 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.792e-05/0.3136, allocations: 84.14 kB / 0.9819 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.082e-05/0.3137, allocations: 19.75 kB / 0.9819 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.34e-06/0.3137, allocations: 4 kB / 0.9819 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.948e-05/0.3138, allocations: 326.8 kB / 0.9822 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.121e-05/0.3138, allocations: 15.98 kB / 0.9822 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.559e-05/0.3139, allocations: 34.58 kB / 0.9823 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.78e-05/0.314, allocations: 113.9 kB / 0.9824 GB, free: 24.1 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.314, allocations: 0 / 0.9824 GB, free: 24.1 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001404/0.3141, allocations: 127.2 kB / 0.9825 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.638e-05/0.3142, allocations: 37.69 kB / 0.9825 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.3142, allocations: 0 / 0.9825 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.3142, allocations: 0 / 0.9825 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.271e-05/0.3143, allocations: 8 kB / 0.9825 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.253e-06/0.3143, allocations: 0 / 0.9825 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.362e-05/0.3143, allocations: 8 kB / 0.9826 GB, free: 23.9 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.398e-06/0.3143, allocations: 12 kB / 0.9826 GB, free: 23.89 MB / 0.6198 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 ($PRE.del.firstTrigger,del.firstTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.sampleTrigger,del.ySample,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.309e-05/0.3144, allocations: 168.8 kB / 0.9827 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.501e-05/0.3145, allocations: 7.906 kB / 0.9827 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.882e-05/0.3145, allocations: 8.375 kB / 0.9827 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.3145, allocations: 0 / 0.9827 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.3145, allocations: 0 / 0.9827 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.3145, allocations: 3.984 kB / 0.9827 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003285/0.3149, allocations: 396.2 kB / 0.9831 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.3149, allocations: 0 / 0.9831 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.103e-06/0.3149, allocations: 0 / 0.9831 GB, free: 23.25 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.564e-06/0.3149, allocations: 8 kB / 0.9831 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.201e-05/0.3149, allocations: 0 / 0.9831 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.3149, allocations: 0 / 0.9831 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3149, allocations: 0 / 0.9831 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001867/0.3151, allocations: 246.4 kB / 0.9834 GB, free: 22.98 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.512e-05/0.3152, allocations: 77.11 kB / 0.9834 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.039e-05/0.3152, allocations: 7.984 kB / 0.9835 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.86e-05/0.3153, allocations: 12 kB / 0.9835 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.482e-05/0.3154, allocations: 15.92 kB / 0.9835 GB, free: 22.85 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.582e-05/0.3154, allocations: 4 kB / 0.9835 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.422e-05/0.3154, allocations: 91.33 kB / 0.9836 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1e-07/0.3154, allocations: 0 / 0.9836 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002285/0.3157, allocations: 16 kB / 0.9836 GB, free: 22.74 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001199/0.3158, allocations: 99.25 kB / 0.9837 GB, free: 22.63 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001796/0.316, allocations: 119.3 kB / 0.9838 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.316, allocations: 0 / 0.9838 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 7.936e-05/0.3161, allocations: 87.39 kB / 0.9839 GB, free: 22.4 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002898/0.3164, allocations: 11.94 kB / 0.9839 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003633/0.3167, allocations: 166.4 kB / 0.984 GB, free: 22.21 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001701/0.3169, allocations: 0.6889 MB / 0.9847 GB, free: 21.49 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.297e-05/0.317, allocations: 7.984 kB / 0.9847 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.949e-05/0.317, allocations: 11.44 kB / 0.9847 GB, free: 21.47 MB / 0.6198 GB Notification: Performance of SimCode: time 2.2e-07/0.317, allocations: 0 / 0.9847 GB, free: 21.47 MB / 0.6198 GB Notification: Performance of Templates: time 0.002803/0.3198, allocations: 0.7398 MB / 0.9855 GB, free: 20.74 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f Buildings_8.0.0_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_8.0.0_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)