Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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: "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_8_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="Buildings_8_Buildings_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, 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.001105/0.001106, allocations: 197.4 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.149/1.149, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.662/1.662, allocations: 292.3 MB / 0.5489 GB, free: 12.81 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001284, allocations: 71.64 kB / 0.6716 GB, free: 26.23 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1974/0.1987, allocations: 114.5 MB / 0.7835 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002247/0.201, allocations: 1.422 MB / 0.7849 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0006239/0.2016, allocations: 471.8 kB / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.452e-05/0.2017, allocations: 4 kB / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.722e-05/0.2017, allocations: 3.938 kB / 0.7853 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.277e-05/0.2018, allocations: 11.91 kB / 0.7853 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001226/0.2019, allocations: 23.92 kB / 0.7853 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 9.535e-05/0.202, allocations: 47.8 kB / 0.7854 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 7.63e-05/0.2021, allocations: 12 kB / 0.7854 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 5.015e-05/0.2021, allocations: 19.92 kB / 0.7854 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.373e-05/0.2022, allocations: 27.84 kB / 0.7855 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.61e-05/0.2022, allocations: 4 kB / 0.7855 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 1.078e-05/0.2022, allocations: 4 kB / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.096e-05/0.2023, allocations: 7.984 kB / 0.7855 GB, free: 11.32 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.637e-05/0.2023, allocations: 19.88 kB / 0.7855 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 8.062e-05/0.2024, allocations: 44.09 kB / 0.7855 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.2024, allocations: 0 / 0.7855 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.112e-06/0.2024, allocations: 7.938 kB / 0.7855 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.153e-06/0.2024, allocations: 4 kB / 0.7855 GB, free: 11.24 MB / 0.6075 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.0004833/0.2029, allocations: 389 kB / 0.7859 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.335e-05/0.2029, allocations: 16.02 kB / 0.7859 GB, free: 10.79 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.691e-05/0.203, allocations: 34.75 kB / 0.786 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.533e-05/0.203, allocations: 4.938 kB / 0.786 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.317e-05/0.2031, allocations: 168.2 kB / 0.7861 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.025e-05/0.2031, allocations: 4.375 kB / 0.7861 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.033e-05/0.2031, allocations: 12.38 kB / 0.7861 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001007/0.2032, allocations: 54.86 kB / 0.7862 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.982e-06/0.2033, allocations: 0 / 0.7862 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.035e-06/0.2033, allocations: 0 / 0.7862 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.2033, allocations: 0 / 0.7862 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.024e-05/0.2033, allocations: 19.98 kB / 0.7862 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003063/0.2036, allocations: 264.8 kB / 0.7865 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 7.003e-05/0.2037, allocations: 50.5 kB / 0.7865 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.381e-05/0.2038, allocations: 20.98 kB / 0.7865 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.505e-05/0.2038, allocations: 3.938 kB / 0.7865 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001479/0.2039, allocations: 105.1 kB / 0.7866 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=9): time 1.242e-06/0.2039, allocations: 0 / 0.7866 GB, free: 9.934 MB / 0.6075 GB Notification: Performance of matching and sorting (n=9): time 0.0002237/0.2042, allocations: 139.2 kB / 0.7868 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.613e-05/0.2042, allocations: 81.11 kB / 0.7868 GB, free: 9.688 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.384e-05/0.2043, allocations: 117.9 kB / 0.787 GB, free: 9.562 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.609e-05/0.2043, allocations: 29.7 kB / 0.787 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.257e-05/0.2044, allocations: 84.14 kB / 0.7871 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.866e-05/0.2044, allocations: 19.75 kB / 0.7871 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.645e-05/0.2044, allocations: 25.7 kB / 0.7871 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.119e-05/0.2045, allocations: 322.8 kB / 0.7874 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.512e-05/0.2046, allocations: 19.92 kB / 0.7874 GB, free: 9.047 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.178e-05/0.2046, allocations: 42.84 kB / 0.7875 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.409e-05/0.2047, allocations: 106 kB / 0.7876 GB, free: 8.871 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.2047, allocations: 0 / 0.7876 GB, free: 8.871 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001351/0.2048, allocations: 127.3 kB / 0.7877 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.502e-05/0.2049, allocations: 37.64 kB / 0.7877 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.2049, allocations: 0 / 0.7877 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.2049, allocations: 8 kB / 0.7877 GB, free: 8.684 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.53e-05/0.2049, allocations: 8 kB / 0.7878 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.2049, allocations: 0 / 0.7878 GB, free: 8.676 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.832e-05/0.205, allocations: 7.984 kB / 0.7878 GB, free: 8.668 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.205, allocations: 4 kB / 0.7878 GB, free: 8.664 MB / 0.6075 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 8.711e-05/0.2051, allocations: 154.8 kB / 0.7879 GB, free: 8.5 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.636e-05/0.2051, allocations: 11.89 kB / 0.7879 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.185e-05/0.2052, allocations: 8.375 kB / 0.7879 GB, free: 8.48 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.2052, allocations: 4 kB / 0.7879 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.2052, allocations: 4 kB / 0.7879 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.2052, allocations: 0 / 0.7879 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003278/0.2055, allocations: 404.2 kB / 0.7883 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.2055, allocations: 0 / 0.7883 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.796e-06/0.2055, allocations: 3.938 kB / 0.7883 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.2055, allocations: 0 / 0.7883 GB, free: 8.012 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.057e-05/0.2056, allocations: 11.92 kB / 0.7883 GB, free: 8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.2056, allocations: 0 / 0.7883 GB, free: 8 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.2056, allocations: 3.938 kB / 0.7883 GB, free: 7.996 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001885/0.2058, allocations: 233.1 kB / 0.7886 GB, free: 7.746 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.24e-05/0.2058, allocations: 81.02 kB / 0.7886 GB, free: 7.648 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.028e-05/0.2058, allocations: 4 kB / 0.7886 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.54e-05/0.2059, allocations: 7.984 kB / 0.7887 GB, free: 7.637 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.243e-05/0.206, allocations: 15.88 kB / 0.7887 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.387e-05/0.206, allocations: 7.984 kB / 0.7887 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.629e-05/0.206, allocations: 83.28 kB / 0.7888 GB, free: 7.531 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2061, allocations: 4 kB / 0.7888 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002158/0.2063, allocations: 16 kB / 0.7888 GB, free: 7.512 MB / 0.6075 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.0003881/0.2067, allocations: 0.7618 MB / 0.7895 GB, free: 6.719 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000154/0.2068, allocations: 123.3 kB / 0.7896 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.2068, allocations: 4.125 kB / 0.7896 GB, free: 6.582 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 7.262e-05/0.2069, allocations: 87.39 kB / 0.7897 GB, free: 6.484 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00026/0.2072, allocations: 18.42 kB / 0.7897 GB, free: 6.469 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001075/0.2083, allocations: 1.415 MB / 0.7911 GB, free: 4.957 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001923/0.2085, allocations: 0.6908 MB / 0.7918 GB, free: 4.242 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.688e-05/0.2085, allocations: 3.781 kB / 0.7918 GB, free: 4.238 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.431e-05/0.2085, allocations: 19.38 kB / 0.7918 GB, free: 4.219 MB / 0.6075 GB Notification: Performance of SimCode: time 2.1e-07/0.2085, allocations: 0 / 0.7918 GB, free: 4.219 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01596/0.2245, allocations: 1.858 MB / 0.7936 GB, free: 2.43 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.656/6.88, allocations: 3.938 kB / 0.7936 GB, free: 2.426 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_8_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_8_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_Discrete_Examples_BooleanDelay.fmu > Buildings_8_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)