Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.512/1.512, allocations: 252 MB / 267 MB, free: 10.97 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00106/0.00106, allocations: 183.8 kB / 326.6 MB, free: 2.227 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.938/1.938, allocations: 205.4 MB / 0.5777 GB, free: 20.54 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009407/0.0009406, allocations: 91.8 kB / 0.6822 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004039/0.0004041, allocations: 9.75 kB / 0.7964 GB, free: 134.9 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2761/0.2766, allocations: 106.3 MB / 0.9003 GB, free: 64.22 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.001571/0.2782, allocations: 1.145 MB / 0.9014 GB, free: 63.06 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0006945/0.2789, allocations: 463.7 kB / 0.9019 GB, free: 62.6 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.807e-05/0.2789, allocations: 0 / 0.9019 GB, free: 62.6 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.498e-05/0.279, allocations: 0 / 0.9019 GB, free: 62.6 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 9.407e-05/0.2791, allocations: 15.91 kB / 0.9019 GB, free: 62.58 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001777/0.2793, allocations: 15.98 kB / 0.9019 GB, free: 62.57 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 8.976e-05/0.2794, allocations: 43.8 kB / 0.9019 GB, free: 62.52 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 8.944e-05/0.2795, allocations: 12 kB / 0.9019 GB, free: 62.51 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.803e-05/0.2795, allocations: 15.92 kB / 0.9019 GB, free: 62.5 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 6.716e-05/0.2796, allocations: 15.92 kB / 0.902 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.122e-05/0.2796, allocations: 4 kB / 0.902 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.159e-05/0.2796, allocations: 0 / 0.902 GB, free: 62.48 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.718e-05/0.2797, allocations: 15.97 kB / 0.902 GB, free: 62.46 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.195e-05/0.2797, allocations: 33.64 kB / 0.902 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 7.685e-05/0.2798, allocations: 23.95 kB / 0.902 GB, free: 62.4 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.2798, allocations: 0 / 0.902 GB, free: 62.4 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.876e-06/0.2798, allocations: 4 kB / 0.902 GB, free: 62.39 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 5.149e-06/0.2798, allocations: 0 / 0.902 GB, free: 62.39 MB / 0.6042 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.0005571/0.2804, allocations: 389.2 kB / 0.9024 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.2805, allocations: 8.031 kB / 0.9024 GB, free: 61.95 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.518e-05/0.2805, allocations: 38.56 kB / 0.9025 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.194e-05/0.2805, allocations: 3.953 kB / 0.9025 GB, free: 61.9 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001102/0.2807, allocations: 174.9 kB / 0.9026 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.521e-05/0.2807, allocations: 4 kB / 0.9026 GB, free: 61.69 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.245e-05/0.2807, allocations: 3.984 kB / 0.9026 GB, free: 61.68 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001154/0.2808, allocations: 57.56 kB / 0.9027 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.2808, allocations: 0 / 0.9027 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.2808, allocations: 0 / 0.9027 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.121e-06/0.2809, allocations: 4 kB / 0.9027 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.405e-05/0.2809, allocations: 15.98 kB / 0.9027 GB, free: 61.6 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003681/0.2813, allocations: 280.8 kB / 0.903 GB, free: 61.28 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 7.755e-05/0.2814, allocations: 46.5 kB / 0.903 GB, free: 61.22 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.165e-05/0.2814, allocations: 16.98 kB / 0.903 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.028e-05/0.2814, allocations: 0 / 0.903 GB, free: 61.2 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001673/0.2816, allocations: 101.1 kB / 0.9031 GB, free: 61.09 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=9): time 2.265e-06/0.2816, allocations: 7.984 kB / 0.9031 GB, free: 61.08 MB / 0.6042 GB Notification: Performance of matching and sorting (n=9): time 0.000249/0.2819, allocations: 147.2 kB / 0.9033 GB, free: 60.92 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.513e-05/0.2819, allocations: 77.11 kB / 0.9034 GB, free: 60.83 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.816e-05/0.282, allocations: 113.8 kB / 0.9035 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.128e-05/0.282, allocations: 25.7 kB / 0.9035 GB, free: 60.68 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 3.362e-05/0.2821, allocations: 84.14 kB / 0.9036 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.638e-05/0.2821, allocations: 15.88 kB / 0.9036 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.019e-06/0.2821, allocations: 4 kB / 0.9036 GB, free: 60.57 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.321e-05/0.2822, allocations: 318.8 kB / 0.9039 GB, free: 60.25 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.799e-05/0.2822, allocations: 20 kB / 0.9039 GB, free: 60.23 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.917e-05/0.2822, allocations: 38.5 kB / 0.9039 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.292e-05/0.2823, allocations: 49.69 kB / 0.904 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2823, allocations: 0 / 0.904 GB, free: 60.13 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001203/0.2824, allocations: 123.2 kB / 0.9041 GB, free: 60 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.32e-05/0.2825, allocations: 33.7 kB / 0.9041 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.2825, allocations: 4.062 kB / 0.9041 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.2825, allocations: 0 / 0.9041 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.425e-05/0.2825, allocations: 7.953 kB / 0.9042 GB, free: 59.95 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.513e-06/0.2826, allocations: 3.984 kB / 0.9042 GB, free: 59.94 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.269e-05/0.2826, allocations: 8.375 kB / 0.9042 GB, free: 59.93 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.165e-06/0.2826, allocations: 4 kB / 0.9042 GB, free: 59.93 MB / 0.6042 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 0.000102/0.2827, allocations: 159.2 kB / 0.9043 GB, free: 59.76 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.428e-05/0.2828, allocations: 7.906 kB / 0.9043 GB, free: 59.75 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.59e-05/0.2828, allocations: 12.31 kB / 0.9043 GB, free: 59.74 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.2828, allocations: 0 / 0.9043 GB, free: 59.74 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.922e-06/0.2828, allocations: 3.953 kB / 0.9043 GB, free: 59.74 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.2828, allocations: 0 / 0.9043 GB, free: 59.74 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002822/0.2831, allocations: 400.2 kB / 0.9047 GB, free: 59.29 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.2831, allocations: 7.938 kB / 0.9047 GB, free: 59.28 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.935e-06/0.2831, allocations: 4 kB / 0.9047 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.2832, allocations: 3.984 kB / 0.9047 GB, free: 59.27 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.171e-05/0.2832, allocations: 7.953 kB / 0.9048 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.2832, allocations: 4 kB / 0.9048 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.2832, allocations: 0 / 0.9048 GB, free: 59.26 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001556/0.2833, allocations: 229.1 kB / 0.905 GB, free: 59.01 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.33e-05/0.2834, allocations: 85.02 kB / 0.9051 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.817e-05/0.2834, allocations: 0 / 0.9051 GB, free: 58.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001046/0.2835, allocations: 19.94 kB / 0.9051 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.416e-05/0.2836, allocations: 7.984 kB / 0.9051 GB, free: 58.88 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.896e-05/0.2836, allocations: 8 kB / 0.9051 GB, free: 58.88 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.999e-05/0.2837, allocations: 87.81 kB / 0.9052 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2837, allocations: 0 / 0.9052 GB, free: 58.79 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002155/0.2839, allocations: 16 kB / 0.9052 GB, free: 58.77 MB / 0.6042 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.0003372/0.2842, allocations: 0.7649 MB / 0.9059 GB, free: 57.98 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0001463/0.2844, allocations: 119.3 kB / 0.906 GB, free: 57.85 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.562e-06/0.2844, allocations: 0 / 0.906 GB, free: 57.85 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 6.206e-05/0.2845, allocations: 91.39 kB / 0.9061 GB, free: 57.75 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002699/0.2847, allocations: 15.94 kB / 0.9062 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006717/0.2854, allocations: 0.4905 MB / 0.9066 GB, free: 57.19 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001372/0.2856, allocations: 0.6887 MB / 0.9073 GB, free: 56.47 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 2.838e-05/0.2856, allocations: 0 / 0.9073 GB, free: 56.47 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.833e-05/0.2856, allocations: 23.36 kB / 0.9073 GB, free: 56.45 MB / 0.6042 GB Notification: Performance of SimCode: time 2.31e-07/0.2856, allocations: 4 kB / 0.9073 GB, free: 56.45 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01194/0.2976, allocations: 1.602 MB / 0.9089 GB, free: 54.98 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001703/0.2978, allocations: 187.5 kB / 0.9091 GB, free: 54.75 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.731/2.029, allocations: 11.94 kB / 0.9091 GB, free: 54.74 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_maint.7.0.x_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)