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.0007046/0.0007046, allocations: 97.56 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004327/0.004327, allocations: 169.1 kB / 16.26 MB, free: 6.652 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.229/1.229, allocations: 205.4 MB / 222.5 MB, free: 5.562 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.513/1.513, allocations: 292.7 MB / 0.5502 GB, free: 14.45 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.0004678/0.0004678, allocations: 11.94 kB / 0.6744 GB, free: 25.96 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1793/0.1797, allocations: 116.3 MB / 0.788 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.001293/0.1811, allocations: 1.152 MB / 0.7891 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0006312/0.1817, allocations: 469 kB / 0.7896 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.409e-05/0.1817, allocations: 3.938 kB / 0.7896 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.26e-05/0.1818, allocations: 4 kB / 0.7896 GB, free: 9.852 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.695e-05/0.1818, allocations: 11.92 kB / 0.7896 GB, free: 9.84 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001116/0.182, allocations: 12 kB / 0.7896 GB, free: 9.828 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.333e-05/0.182, allocations: 51.78 kB / 0.7896 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.019e-05/0.1821, allocations: 15.97 kB / 0.7896 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 4.852e-05/0.1822, allocations: 15.92 kB / 0.7897 GB, free: 9.746 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.235e-05/0.1822, allocations: 19.86 kB / 0.7897 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.654e-05/0.1823, allocations: 4 kB / 0.7897 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.584e-06/0.1823, allocations: 0 / 0.7897 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.818e-05/0.1823, allocations: 8 kB / 0.7897 GB, free: 9.715 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.9e-05/0.1824, allocations: 49.56 kB / 0.7897 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 8.315e-05/0.1825, allocations: 40.09 kB / 0.7898 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.1825, allocations: 0 / 0.7898 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.222e-06/0.1825, allocations: 0 / 0.7898 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.346e-06/0.1825, allocations: 0 / 0.7898 GB, free: 9.621 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.0004807/0.183, allocations: 393.1 kB / 0.7902 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.183, allocations: 12.03 kB / 0.7902 GB, free: 9.172 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.516e-05/0.183, allocations: 38.73 kB / 0.7902 GB, free: 9.125 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.629e-05/0.1831, allocations: 8.844 kB / 0.7902 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001009/0.1832, allocations: 168.3 kB / 0.7904 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.777e-06/0.1832, allocations: 384 / 0.7904 GB, free: 8.914 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.072e-05/0.1832, allocations: 4.375 kB / 0.7904 GB, free: 8.91 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.981e-05/0.1833, allocations: 57.8 kB / 0.7904 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.22e-06/0.1833, allocations: 0 / 0.7904 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.305e-06/0.1833, allocations: 0 / 0.7904 GB, free: 8.848 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.1833, allocations: 4 kB / 0.7904 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.838e-05/0.1834, allocations: 12 kB / 0.7904 GB, free: 8.832 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003312/0.1837, allocations: 284.7 kB / 0.7907 GB, free: 8.504 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 7.48e-05/0.1838, allocations: 38.52 kB / 0.7908 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.524e-05/0.1839, allocations: 20.97 kB / 0.7908 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.541e-05/0.1839, allocations: 4 kB / 0.7908 GB, free: 8.43 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001648/0.1841, allocations: 109.1 kB / 0.7909 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=9): time 1.132e-06/0.1841, allocations: 0 / 0.7909 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of matching and sorting (n=9): time 0.0002397/0.1843, allocations: 139.2 kB / 0.791 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.805e-05/0.1844, allocations: 89.03 kB / 0.7911 GB, free: 8.051 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.088e-05/0.1844, allocations: 113.8 kB / 0.7912 GB, free: 7.93 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.313e-05/0.1845, allocations: 25.7 kB / 0.7912 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.194e-05/0.1845, allocations: 84.14 kB / 0.7913 GB, free: 7.812 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.989e-05/0.1845, allocations: 23.73 kB / 0.7913 GB, free: 7.789 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.652e-05/0.1846, allocations: 21.7 kB / 0.7914 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.755e-05/0.1847, allocations: 322.8 kB / 0.7917 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.087e-05/0.1847, allocations: 19.92 kB / 0.7917 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.555e-05/0.1847, allocations: 34.58 kB / 0.7917 GB, free: 7.375 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.7e-05/0.1848, allocations: 110 kB / 0.7918 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.1849, allocations: 4 kB / 0.7918 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001384/0.185, allocations: 119.2 kB / 0.7919 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.147e-05/0.185, allocations: 44.34 kB / 0.792 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.185, allocations: 0 / 0.792 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.397e-06/0.1851, allocations: 3.938 kB / 0.792 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.685e-05/0.1851, allocations: 8.062 kB / 0.792 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.1851, allocations: 0 / 0.792 GB, free: 7.055 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.161e-05/0.1852, allocations: 12.05 kB / 0.792 GB, free: 7.043 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.777e-06/0.1852, allocations: 8 kB / 0.792 GB, free: 7.035 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.818e-05/0.1853, allocations: 150.8 kB / 0.7922 GB, free: 6.875 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.626e-05/0.1853, allocations: 7.906 kB / 0.7922 GB, free: 6.867 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.468e-05/0.1853, allocations: 8.375 kB / 0.7922 GB, free: 6.859 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1853, allocations: 384 / 0.7922 GB, free: 6.859 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.1853, allocations: 0 / 0.7922 GB, free: 6.859 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.1854, allocations: 3.984 kB / 0.7922 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003384/0.1857, allocations: 408.1 kB / 0.7926 GB, free: 6.395 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1857, allocations: 0 / 0.7926 GB, free: 6.395 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.029e-05/0.1857, allocations: 7.938 kB / 0.7926 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.1857, allocations: 0 / 0.7926 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.255e-06/0.1857, allocations: 0 / 0.7926 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.1857, allocations: 0 / 0.7926 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1858, allocations: 3.938 kB / 0.7926 GB, free: 6.383 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001844/0.1859, allocations: 233.1 kB / 0.7928 GB, free: 6.133 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.319e-05/0.186, allocations: 89.03 kB / 0.7929 GB, free: 6.027 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.687e-05/0.186, allocations: 4 kB / 0.7929 GB, free: 6.023 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001066/0.1861, allocations: 8 kB / 0.7929 GB, free: 6.016 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.265e-05/0.1862, allocations: 19.86 kB / 0.7929 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.343e-05/0.1862, allocations: 4 kB / 0.7929 GB, free: 5.992 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.187e-05/0.1862, allocations: 91.27 kB / 0.793 GB, free: 5.902 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1862, allocations: 0 / 0.793 GB, free: 5.902 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002143/0.1865, allocations: 12 kB / 0.793 GB, free: 5.891 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.0004198/0.1869, allocations: 0.7687 MB / 0.7938 GB, free: 5.09 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001474/0.187, allocations: 115.4 kB / 0.7939 GB, free: 4.965 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.1871, allocations: 0 / 0.7939 GB, free: 4.965 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 7.153e-05/0.1871, allocations: 88.19 kB / 0.794 GB, free: 4.867 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002664/0.1874, allocations: 24 kB / 0.794 GB, free: 4.844 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001108/0.1885, allocations: 1.433 MB / 0.7954 GB, free: 3.309 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001919/0.1887, allocations: 0.6888 MB / 0.7961 GB, free: 2.594 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 2.578e-05/0.1888, allocations: 7.781 kB / 0.7961 GB, free: 2.586 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.477e-05/0.1888, allocations: 19.42 kB / 0.7961 GB, free: 2.566 MB / 0.6075 GB Notification: Performance of SimCode: time 3e-07/0.1888, allocations: 0 / 0.7961 GB, free: 2.566 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01867/0.2075, allocations: 1.584 MB / 0.7976 GB, free: 1.105 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001485/0.2076, allocations: 192.8 kB / 0.7978 GB, free: 0.8555 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.548/1.756, allocations: 8 kB / 0.7978 GB, free: 0.8477 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)