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: translateModel(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay") translateModel(BuildingSystems.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001396/0.001396, allocations: 104.9 kB / 16.36 MB, free: 5.875 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.00154/0.00154, allocations: 191 kB / 17.29 MB, free: 5.516 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.273/1.273, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002198/0.002198, allocations: 276.7 kB / 291.4 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9376/0.9376, allocations: 169.2 MB / 0.4989 GB, free: 4.469 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001754/0.001754, allocations: 98.72 kB / 0.5967 GB, free: 14.47 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1364, allocations: 86.97 MB / 0.6816 GB, free: 7.484 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Discrete.Examples.BooleanDelay): time 0.002309/0.1387, allocations: 1.419 MB / 0.683 GB, free: 6.051 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006027/0.1393, allocations: 431 kB / 0.6834 GB, free: 5.625 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.254e-05/0.1394, allocations: 0 / 0.6834 GB, free: 5.625 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.714e-05/0.1394, allocations: 3.938 kB / 0.6834 GB, free: 5.621 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.816e-05/0.1395, allocations: 15.91 kB / 0.6834 GB, free: 5.605 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001291/0.1396, allocations: 23.92 kB / 0.6834 GB, free: 5.582 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 9.845e-05/0.1397, allocations: 47.84 kB / 0.6835 GB, free: 5.535 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.571e-05/0.1398, allocations: 8 kB / 0.6835 GB, free: 5.527 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.026e-05/0.1399, allocations: 23.86 kB / 0.6835 GB, free: 5.504 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.839e-05/0.14, allocations: 23.91 kB / 0.6835 GB, free: 5.48 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.732e-05/0.14, allocations: 4 kB / 0.6835 GB, free: 5.477 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.12e-05/0.14, allocations: 4 kB / 0.6835 GB, free: 5.473 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.215e-05/0.14, allocations: 15.88 kB / 0.6835 GB, free: 5.457 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.867e-05/0.1401, allocations: 15.92 kB / 0.6836 GB, free: 5.441 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.258e-05/0.1402, allocations: 51.75 kB / 0.6836 GB, free: 5.391 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1402, allocations: 0 / 0.6836 GB, free: 5.391 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1402, allocations: 0 / 0.6836 GB, free: 5.391 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.1402, allocations: 0 / 0.6836 GB, free: 5.391 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.0005145/0.1407, allocations: 389.1 kB / 0.684 GB, free: 4.957 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.05e-05/0.1407, allocations: 8.031 kB / 0.684 GB, free: 4.949 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.024e-05/0.1408, allocations: 8.844 kB / 0.684 GB, free: 4.941 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000106/0.1409, allocations: 176.3 kB / 0.6842 GB, free: 4.73 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.676e-06/0.1409, allocations: 384 / 0.6842 GB, free: 4.73 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.443e-05/0.1409, allocations: 4.375 kB / 0.6842 GB, free: 4.727 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001019/0.141, allocations: 54 kB / 0.6842 GB, free: 4.668 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.981e-06/0.141, allocations: 0 / 0.6842 GB, free: 4.668 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-06/0.1411, allocations: 4 kB / 0.6842 GB, free: 4.664 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.1411, allocations: 3.984 kB / 0.6842 GB, free: 4.66 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.283e-05/0.1411, allocations: 23.98 kB / 0.6842 GB, free: 4.637 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003374/0.1415, allocations: 272.8 kB / 0.6845 GB, free: 4.32 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.291e-05/0.1415, allocations: 42.5 kB / 0.6846 GB, free: 4.27 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.419e-05/0.1416, allocations: 20.98 kB / 0.6846 GB, free: 4.246 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.593e-05/0.1416, allocations: 0 / 0.6846 GB, free: 4.246 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001327/0.1417, allocations: 105.1 kB / 0.6847 GB, free: 4.125 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.333e-06/0.1418, allocations: 0 / 0.6847 GB, free: 4.125 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002536/0.142, allocations: 143.2 kB / 0.6848 GB, free: 3.973 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.207e-05/0.1421, allocations: 81.11 kB / 0.6849 GB, free: 3.875 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.114e-05/0.1421, allocations: 109.8 kB / 0.685 GB, free: 3.758 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.45e-05/0.1422, allocations: 29.7 kB / 0.685 GB, free: 3.723 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.378e-05/0.1422, allocations: 80.14 kB / 0.6851 GB, free: 3.641 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.336e-05/0.1422, allocations: 28.5 kB / 0.6851 GB, free: 3.613 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.865e-05/0.1423, allocations: 25.72 kB / 0.6851 GB, free: 3.582 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.339e-05/0.1424, allocations: 322.8 kB / 0.6855 GB, free: 3.258 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.385e-05/0.1424, allocations: 20.22 kB / 0.6855 GB, free: 3.238 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.372e-05/0.1425, allocations: 42.44 kB / 0.6855 GB, free: 3.188 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.611e-05/0.1426, allocations: 118 kB / 0.6856 GB, free: 3.051 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.1426, allocations: 0 / 0.6856 GB, free: 3.051 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001431/0.1427, allocations: 123.2 kB / 0.6857 GB, free: 2.918 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.017e-05/0.1428, allocations: 35.42 kB / 0.6858 GB, free: 2.879 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.1428, allocations: 0 / 0.6858 GB, free: 2.879 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.718e-06/0.1428, allocations: 3.938 kB / 0.6858 GB, free: 2.875 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.829e-05/0.1428, allocations: 7.984 kB / 0.6858 GB, free: 2.867 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.1428, allocations: 0 / 0.6858 GB, free: 2.867 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.106e-05/0.1429, allocations: 8 kB / 0.6858 GB, free: 2.859 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.684e-06/0.1429, allocations: 8.453 kB / 0.6858 GB, free: 2.852 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 8.497e-05/0.143, allocations: 153.9 kB / 0.686 GB, free: 2.688 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.565e-05/0.143, allocations: 7.906 kB / 0.686 GB, free: 2.68 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.181e-05/0.143, allocations: 8.375 kB / 0.686 GB, free: 2.672 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.1431, allocations: 0 / 0.686 GB, free: 2.672 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.1431, allocations: 0 / 0.686 GB, free: 2.672 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.1431, allocations: 0 / 0.686 GB, free: 2.672 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003577/0.1434, allocations: 404.1 kB / 0.6864 GB, free: 2.215 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1434, allocations: 4 kB / 0.6864 GB, free: 2.211 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.051e-05/0.1435, allocations: 7.922 kB / 0.6864 GB, free: 2.203 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.1435, allocations: 0 / 0.6864 GB, free: 2.203 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.1435, allocations: 4 kB / 0.6864 GB, free: 2.199 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.1435, allocations: 0 / 0.6864 GB, free: 2.199 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.1435, allocations: 0 / 0.6864 GB, free: 2.199 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000192/0.1437, allocations: 229.1 kB / 0.6866 GB, free: 1.953 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.236e-05/0.1437, allocations: 81.11 kB / 0.6867 GB, free: 1.855 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.975e-05/0.1438, allocations: 8 kB / 0.6867 GB, free: 1.848 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.1439, allocations: 12.05 kB / 0.6867 GB, free: 1.836 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.012e-05/0.1439, allocations: 15.86 kB / 0.6867 GB, free: 1.82 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.1439, allocations: 4 kB / 0.6867 GB, free: 1.816 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.344e-05/0.144, allocations: 91.52 kB / 0.6868 GB, free: 1.727 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.144, allocations: 7.875 kB / 0.6868 GB, free: 1.719 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002362/0.1442, allocations: 16 kB / 0.6868 GB, free: 1.703 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 7.76e-05/0.1443, allocations: 107.2 kB / 0.6869 GB, free: 1.59 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001579/0.1445, allocations: 115.3 kB / 0.687 GB, free: 1.465 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.1445, allocations: 4 kB / 0.687 GB, free: 1.461 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 7.578e-05/0.1446, allocations: 83.39 kB / 0.6871 GB, free: 1.367 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002714/0.1448, allocations: 15.98 kB / 0.6871 GB, free: 1.352 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002788/0.1451, allocations: 153.4 kB / 0.6873 GB, free: 1.176 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001942/0.1453, allocations: 0.6886 MB / 0.6879 GB, free: 472 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.331e-05/0.1454, allocations: 11.92 kB / 0.688 GB, free: 460 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.352e-05/0.1454, allocations: 11.44 kB / 0.688 GB, free: 448 kB / 494.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1454, allocations: 0 / 0.688 GB, free: 448 kB / 494.1 MB Notification: Performance of Templates: time 0.215/0.3604, allocations: 0.8561 MB / 0.6888 GB, free: 17.65 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.makefile (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 & ./BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)