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: "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.77/2.77, allocations: 287.3 MB / 302.3 MB, free: 8.309 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.001594/0.001594, allocations: 174.5 kB / 370.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.251/2.251, allocations: 205.4 MB / 0.6295 GB, free: 10.62 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.001263/0.001263, allocations: 94.36 kB / 0.7428 GB, free: 6.621 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005319/0.0005319, allocations: 11.36 kB / 0.8657 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2356/0.2362, allocations: 115.3 MB / 0.9783 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.001667/0.2379, allocations: 1.129 MB / 0.9794 GB, free: 27.16 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0008439/0.2388, allocations: 453.2 kB / 0.9798 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.03e-05/0.2389, allocations: 0 / 0.9798 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.721e-05/0.2389, allocations: 3.938 kB / 0.9798 GB, free: 26.71 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 9.9e-05/0.239, allocations: 11.98 kB / 0.9798 GB, free: 26.7 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001497/0.2392, allocations: 23.86 kB / 0.9798 GB, free: 26.67 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 8.001e-05/0.2393, allocations: 27.95 kB / 0.9799 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.484e-05/0.2393, allocations: 8 kB / 0.9799 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 7.101e-05/0.2394, allocations: 19.92 kB / 0.9799 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.709e-05/0.2395, allocations: 15.92 kB / 0.9799 GB, free: 26.6 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.042e-05/0.2395, allocations: 0 / 0.9799 GB, free: 26.6 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 1.42e-05/0.2396, allocations: 0 / 0.9799 GB, free: 26.6 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.46e-05/0.2396, allocations: 15.97 kB / 0.9799 GB, free: 26.59 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.014e-05/0.2396, allocations: 33.64 kB / 0.98 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 7.847e-05/0.2397, allocations: 32.17 kB / 0.98 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.2398, allocations: 4 kB / 0.98 GB, free: 26.51 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.964e-06/0.2398, allocations: 0 / 0.98 GB, free: 26.51 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.589e-06/0.2398, allocations: 0 / 0.98 GB, free: 26.51 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.000607/0.2404, allocations: 384.9 kB / 0.9804 GB, free: 26.08 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.2404, allocations: 12.02 kB / 0.9804 GB, free: 26.07 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.514e-05/0.2405, allocations: 38.56 kB / 0.9804 GB, free: 26.02 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.32e-05/0.2405, allocations: 11.86 kB / 0.9804 GB, free: 26.01 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001008/0.2406, allocations: 167.1 kB / 0.9806 GB, free: 25.81 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.639e-05/0.2407, allocations: 4 kB / 0.9806 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.727e-05/0.2407, allocations: 0 / 0.9806 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000135/0.2408, allocations: 53.62 kB / 0.9806 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.2409, allocations: 0 / 0.9806 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.2409, allocations: 0 / 0.9806 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.2409, allocations: 4 kB / 0.9806 GB, free: 25.74 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.374e-05/0.241, allocations: 19.92 kB / 0.9807 GB, free: 25.72 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004065/0.2414, allocations: 280.8 kB / 0.9809 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001062/0.2415, allocations: 46.5 kB / 0.981 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/0.2416, allocations: 3.984 kB / 0.981 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002016/0.2418, allocations: 93.22 kB / 0.9811 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=9): time 1.914e-06/0.2418, allocations: 0 / 0.9811 GB, free: 25.23 MB / 0.6198 GB Notification: Performance of matching and sorting (n=9): time 0.0003643/0.2422, allocations: 228.7 kB / 0.9813 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.587e-05/0.2422, allocations: 85 kB / 0.9814 GB, free: 24.88 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.143e-05/0.2423, allocations: 113.8 kB / 0.9815 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.2423, allocations: 29.7 kB / 0.9815 GB, free: 24.72 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.699e-05/0.2424, allocations: 80.14 kB / 0.9816 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.614e-05/0.2424, allocations: 23.81 kB / 0.9816 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.553e-06/0.2424, allocations: 0 / 0.9816 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.242e-05/0.2425, allocations: 322.8 kB / 0.9819 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.591e-05/0.2426, allocations: 16 kB / 0.9819 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.238e-05/0.2426, allocations: 42.5 kB / 0.982 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.521e-05/0.2427, allocations: 49.64 kB / 0.982 GB, free: 24.17 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.2427, allocations: 3.984 kB / 0.982 GB, free: 24.16 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001952/0.2429, allocations: 119.2 kB / 0.9821 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.379e-05/0.243, allocations: 37.7 kB / 0.9822 GB, free: 23.99 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.243, allocations: 4.062 kB / 0.9822 GB, free: 23.99 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.243, allocations: 0 / 0.9822 GB, free: 23.99 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.087e-05/0.2431, allocations: 4 kB / 0.9822 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.2431, allocations: 3.953 kB / 0.9822 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.93e-05/0.2432, allocations: 11.98 kB / 0.9822 GB, free: 23.97 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.145e-05/0.2432, allocations: 4 kB / 0.9822 GB, free: 23.96 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.948e-05/0.2433, allocations: 148.8 kB / 0.9823 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.892e-05/0.2434, allocations: 7.906 kB / 0.9823 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.052e-05/0.2434, allocations: 12.44 kB / 0.9824 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.2434, allocations: 7.938 kB / 0.9824 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2434, allocations: 0 / 0.9824 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.2434, allocations: 3.953 kB / 0.9824 GB, free: 23.78 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004296/0.2439, allocations: 396.2 kB / 0.9827 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.2439, allocations: 3.938 kB / 0.9827 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.077e-05/0.2439, allocations: 0 / 0.9827 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.2439, allocations: 4 kB / 0.9828 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.244, allocations: 3.984 kB / 0.9828 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.244, allocations: 7.953 kB / 0.9828 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.244, allocations: 0 / 0.9828 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002561/0.2442, allocations: 237.1 kB / 0.983 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.083e-05/0.2443, allocations: 81.11 kB / 0.9831 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.609e-05/0.2443, allocations: 0 / 0.9831 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.2445, allocations: 11.98 kB / 0.9831 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.597e-05/0.2445, allocations: 15.94 kB / 0.9831 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.029e-05/0.2446, allocations: 8 kB / 0.9831 GB, free: 22.92 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.978e-05/0.2446, allocations: 87.81 kB / 0.9832 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.91e-07/0.2446, allocations: 0 / 0.9832 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003117/0.245, allocations: 16 kB / 0.9832 GB, free: 22.82 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.000438/0.2454, allocations: 0.7679 MB / 0.984 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002107/0.2456, allocations: 119.3 kB / 0.9841 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2456, allocations: 0 / 0.9841 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.2458, allocations: 87.39 kB / 0.9841 GB, free: 21.79 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002819/0.2461, allocations: 15.94 kB / 0.9842 GB, free: 21.78 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009605/0.247, allocations: 0.7791 MB / 0.9849 GB, free: 20.95 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001493/0.2472, allocations: 0.6887 MB / 0.9856 GB, free: 20.23 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.621e-05/0.2473, allocations: 11.98 kB / 0.9856 GB, free: 20.22 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.137e-05/0.2473, allocations: 19.38 kB / 0.9856 GB, free: 20.2 MB / 0.6198 GB Notification: Performance of SimCode: time 1.362e-06/0.2473, allocations: 0 / 0.9856 GB, free: 20.2 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01995/0.2673, allocations: 1.59 MB / 0.9872 GB, free: 18.73 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002/0.2676, allocations: 184.6 kB / 0.9874 GB, free: 18.49 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.509/2.776, allocations: 0 / 0.9874 GB, free: 18.49 MB / 0.6198 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_8.0.0_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)