Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,fileNamePrefix="BuildingSystems_BuildingSystems_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.0009304/0.0009304, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005971/0.005971, allocations: 169.9 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.282/1.282, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001682/0.001682, allocations: 259 kB / 291.7 MB, free: 1.898 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9684/0.9684, allocations: 169.5 MB / 0.5004 GB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004622/0.0004625, allocations: 13.17 kB / 0.5988 GB, free: 27.95 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1806/0.1811, allocations: 88.54 MB / 0.6852 GB, free: 15 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Discrete.Examples.BooleanDelay): time 0.001693/0.1828, allocations: 1.139 MB / 0.6863 GB, free: 13.85 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008102/0.1836, allocations: 428.8 kB / 0.6867 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.768e-05/0.1837, allocations: 0 / 0.6867 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.841e-05/0.1837, allocations: 1.875 kB / 0.6867 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.678e-05/0.1838, allocations: 3.938 kB / 0.6867 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000175/0.184, allocations: 19.92 kB / 0.6868 GB, free: 13.41 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001002/0.1841, allocations: 43.91 kB / 0.6868 GB, free: 13.36 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.809e-05/0.1842, allocations: 9.109 kB / 0.6868 GB, free: 13.36 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.803e-05/0.1843, allocations: 19.88 kB / 0.6868 GB, free: 13.34 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.408e-05/0.1844, allocations: 18.14 kB / 0.6869 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.069e-05/0.1844, allocations: 4 kB / 0.6869 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.023e-05/0.1844, allocations: 0 / 0.6869 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.905e-05/0.1845, allocations: 11.92 kB / 0.6869 GB, free: 13.3 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.588e-05/0.1845, allocations: 37.64 kB / 0.6869 GB, free: 13.26 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001037/0.1847, allocations: 47.8 kB / 0.687 GB, free: 13.21 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1847, allocations: 6.156 kB / 0.687 GB, free: 13.21 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1847, allocations: 0 / 0.687 GB, free: 13.21 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.1847, allocations: 0 / 0.687 GB, free: 13.21 MB / 494.1 MB 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.0005907/0.1853, allocations: 387.1 kB / 0.6873 GB, free: 12.78 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.1853, allocations: 15.97 kB / 0.6873 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.672e-05/0.1854, allocations: 34.75 kB / 0.6874 GB, free: 12.72 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.43e-05/0.1854, allocations: 14.03 kB / 0.6874 GB, free: 12.71 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001357/0.1856, allocations: 168.4 kB / 0.6875 GB, free: 12.51 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.1856, allocations: 384 / 0.6875 GB, free: 12.51 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.593e-05/0.1856, allocations: 9.125 kB / 0.6876 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001348/0.1858, allocations: 52.84 kB / 0.6876 GB, free: 12.45 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.1858, allocations: 0 / 0.6876 GB, free: 12.45 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.1858, allocations: 0 / 0.6876 GB, free: 12.45 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.1858, allocations: 3.984 kB / 0.6876 GB, free: 12.44 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.326e-05/0.1859, allocations: 27.92 kB / 0.6876 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004409/0.1863, allocations: 272.7 kB / 0.6879 GB, free: 12.1 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.744e-05/0.1864, allocations: 40.06 kB / 0.6879 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.92e-05/0.1865, allocations: 20.98 kB / 0.688 GB, free: 12.03 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.599e-05/0.1865, allocations: 4.656 kB / 0.688 GB, free: 12.02 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001827/0.1867, allocations: 102.7 kB / 0.6881 GB, free: 11.91 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.663e-06/0.1867, allocations: 0 / 0.6881 GB, free: 11.91 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002959/0.187, allocations: 131.4 kB / 0.6882 GB, free: 11.77 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.62e-05/0.1871, allocations: 85.77 kB / 0.6883 GB, free: 11.66 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.618e-05/0.1872, allocations: 118.6 kB / 0.6884 GB, free: 11.54 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.438e-05/0.1872, allocations: 25.7 kB / 0.6884 GB, free: 11.51 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.952e-05/0.1873, allocations: 84.77 kB / 0.6885 GB, free: 11.42 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.577e-05/0.1873, allocations: 29.3 kB / 0.6885 GB, free: 11.39 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.845e-05/0.1873, allocations: 13.72 kB / 0.6885 GB, free: 11.38 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.1875, allocations: 326.8 kB / 0.6888 GB, free: 11.05 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.659e-05/0.1875, allocations: 12.56 kB / 0.6889 GB, free: 11.04 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.028e-05/0.1876, allocations: 42.56 kB / 0.6889 GB, free: 10.98 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001025/0.1877, allocations: 105.9 kB / 0.689 GB, free: 10.86 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.1877, allocations: 4 kB / 0.689 GB, free: 10.86 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001768/0.1879, allocations: 131.2 kB / 0.6891 GB, free: 10.71 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.513e-05/0.1879, allocations: 33.7 kB / 0.6892 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.1879, allocations: 384 / 0.6892 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.1879, allocations: 4.062 kB / 0.6892 GB, free: 10.67 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.577e-05/0.188, allocations: 4 kB / 0.6892 GB, free: 10.67 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.188, allocations: 0 / 0.6892 GB, free: 10.67 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.924e-05/0.1881, allocations: 15.92 kB / 0.6892 GB, free: 10.65 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.15e-05/0.1881, allocations: 4.391 kB / 0.6892 GB, free: 10.65 MB / 494.1 MB 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 0.0001192/0.1882, allocations: 161.4 kB / 0.6893 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.842e-05/0.1882, allocations: 7.906 kB / 0.6893 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.377e-05/0.1883, allocations: 4.375 kB / 0.6893 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.1883, allocations: 4.062 kB / 0.6893 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.1883, allocations: 4 kB / 0.6894 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.1883, allocations: 0 / 0.6894 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000415/0.1887, allocations: 400.1 kB / 0.6897 GB, free: 10 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1887, allocations: 0 / 0.6897 GB, free: 10 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.049e-05/0.1887, allocations: 4 kB / 0.6897 GB, free: 10 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.1888, allocations: 0 / 0.6897 GB, free: 10 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.1888, allocations: 7.984 kB / 0.6897 GB, free: 9.992 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1888, allocations: 0 / 0.6897 GB, free: 9.992 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.1888, allocations: 11.94 kB / 0.6898 GB, free: 9.98 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002221/0.189, allocations: 225.1 kB / 0.69 GB, free: 9.738 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.567e-05/0.1891, allocations: 81.11 kB / 0.69 GB, free: 9.641 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.926e-05/0.1891, allocations: 0 / 0.69 GB, free: 9.641 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001076/0.1892, allocations: 15.98 kB / 0.6901 GB, free: 9.625 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.758e-05/0.1893, allocations: 11.92 kB / 0.6901 GB, free: 9.613 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.655e-05/0.1893, allocations: 8 kB / 0.6901 GB, free: 9.605 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.695e-05/0.1893, allocations: 91.42 kB / 0.6902 GB, free: 9.516 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1893, allocations: 0 / 0.6902 GB, free: 9.516 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002362/0.1896, allocations: 12 kB / 0.6902 GB, free: 9.504 MB / 494.1 MB 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.0005271/0.1901, allocations: 0.782 MB / 0.6909 GB, free: 8.691 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001733/0.1903, allocations: 119.3 kB / 0.6911 GB, free: 8.562 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1903, allocations: 0 / 0.6911 GB, free: 8.562 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001048/0.1904, allocations: 87.39 kB / 0.6911 GB, free: 8.465 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003042/0.1907, allocations: 15.92 kB / 0.6912 GB, free: 8.449 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00134/0.1921, allocations: 1.427 MB / 0.6926 GB, free: 6.918 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002807/0.1924, allocations: 0.6809 MB / 0.6932 GB, free: 6.211 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.18e-05/0.1924, allocations: 7.984 kB / 0.6932 GB, free: 6.203 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.572e-05/0.1925, allocations: 15.44 kB / 0.6932 GB, free: 6.188 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1925, allocations: 0 / 0.6932 GB, free: 6.188 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01234/0.2048, allocations: 1.612 MB / 0.6948 GB, free: 4.719 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001918/0.2051, allocations: 214.2 kB / 0.695 GB, free: 4.461 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.792/1.998, allocations: 0 / 0.695 GB, free: 4.461 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Controls_Discrete_Examples_BooleanDelay.fmu > BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)