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.001598/0.001597, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00165/0.00165, allocations: 198.1 kB / 16.14 MB, free: 6.715 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.439/1.439, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00257/0.00257, allocations: 271 kB / 290.2 MB, free: 2.223 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.089/1.089, allocations: 178.6 MB / 0.5068 GB, free: 4.77 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00275/0.00275, allocations: 101 kB / 0.6057 GB, free: 25.21 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1489/0.1517, allocations: 89.14 MB / 0.6928 GB, free: 4.848 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Discrete.Examples.BooleanDelay): time 0.002698/0.1544, allocations: 1.498 MB / 0.6942 GB, free: 3.348 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.000709/0.1551, allocations: 435.3 kB / 0.6947 GB, free: 2.922 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.947e-05/0.1552, allocations: 4 kB / 0.6947 GB, free: 2.918 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.563e-05/0.1552, allocations: 0 / 0.6947 GB, free: 2.918 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.003e-05/0.1553, allocations: 7.922 kB / 0.6947 GB, free: 2.91 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001578/0.1555, allocations: 8 kB / 0.6947 GB, free: 2.902 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 9.092e-05/0.1556, allocations: 51.84 kB / 0.6947 GB, free: 2.852 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.767e-05/0.1556, allocations: 8.766 kB / 0.6947 GB, free: 2.844 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.817e-05/0.1557, allocations: 25.58 kB / 0.6948 GB, free: 2.82 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.809e-05/0.1558, allocations: 15.92 kB / 0.6948 GB, free: 2.805 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.844e-05/0.1558, allocations: 7.938 kB / 0.6948 GB, free: 2.797 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.073e-05/0.1558, allocations: 0 / 0.6948 GB, free: 2.797 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.005e-05/0.1558, allocations: 4 kB / 0.6948 GB, free: 2.793 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.752e-05/0.1559, allocations: 20.52 kB / 0.6948 GB, free: 2.773 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.367e-05/0.156, allocations: 44.09 kB / 0.6948 GB, free: 2.73 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.156, allocations: 4 kB / 0.6948 GB, free: 2.727 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.72e-07/0.156, allocations: 0 / 0.6948 GB, free: 2.727 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.156, allocations: 0 / 0.6948 GB, free: 2.727 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.0006162/0.1566, allocations: 393.1 kB / 0.6952 GB, free: 2.289 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.055e-05/0.1567, allocations: 8.031 kB / 0.6952 GB, free: 2.281 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.609e-05/0.1567, allocations: 4.938 kB / 0.6952 GB, free: 2.277 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001457/0.1569, allocations: 180.2 kB / 0.6954 GB, free: 2.062 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.1569, allocations: 8.375 kB / 0.6954 GB, free: 2.055 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.364e-05/0.1569, allocations: 4.375 kB / 0.6954 GB, free: 2.051 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001153/0.157, allocations: 50 kB / 0.6955 GB, free: 1.996 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.655e-06/0.157, allocations: 0 / 0.6955 GB, free: 1.996 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.298e-06/0.1571, allocations: 0 / 0.6955 GB, free: 1.996 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.657e-06/0.1571, allocations: 0 / 0.6955 GB, free: 1.996 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.719e-05/0.1571, allocations: 23.98 kB / 0.6955 GB, free: 1.973 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004088/0.1575, allocations: 276.8 kB / 0.6958 GB, free: 1.652 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.966e-05/0.1576, allocations: 38.56 kB / 0.6958 GB, free: 1.605 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.011e-05/0.1577, allocations: 20.98 kB / 0.6958 GB, free: 1.582 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.753e-05/0.1577, allocations: 4 kB / 0.6958 GB, free: 1.578 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001828/0.1579, allocations: 97.08 kB / 0.6959 GB, free: 1.465 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.442e-06/0.1579, allocations: 3.938 kB / 0.6959 GB, free: 1.461 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002808/0.1582, allocations: 139.2 kB / 0.696 GB, free: 1.312 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.666e-05/0.1583, allocations: 89.11 kB / 0.6961 GB, free: 1.207 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.215e-05/0.1584, allocations: 109.8 kB / 0.6962 GB, free: 1.09 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.994e-05/0.1584, allocations: 29.7 kB / 0.6963 GB, free: 1.055 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.954e-05/0.1585, allocations: 84.14 kB / 0.6963 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.826e-05/0.1585, allocations: 27.8 kB / 0.6964 GB, free: 0.9414 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.719e-05/0.1586, allocations: 21.72 kB / 0.6964 GB, free: 0.9141 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.1587, allocations: 330.7 kB / 0.6967 GB, free: 0.582 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.398e-05/0.1587, allocations: 12 kB / 0.6967 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.336e-05/0.1588, allocations: 42.56 kB / 0.6968 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001208/0.1589, allocations: 110.3 kB / 0.6969 GB, free: 400 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.1589, allocations: 4 kB / 0.6969 GB, free: 396 kB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001781/0.1591, allocations: 123.2 kB / 0.697 GB, free: 260 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.424e-05/0.1592, allocations: 37.77 kB / 0.697 GB, free: 216 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.1592, allocations: 4 kB / 0.697 GB, free: 212 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.818e-06/0.1592, allocations: 0 / 0.697 GB, free: 212 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.037e-05/0.1592, allocations: 7.984 kB / 0.697 GB, free: 204 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.1593, allocations: 0 / 0.697 GB, free: 204 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.77e-05/0.1593, allocations: 4.062 kB / 0.697 GB, free: 200 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.089e-05/0.1593, allocations: 8 kB / 0.697 GB, free: 192 kB / 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.0001245/0.1595, allocations: 152.1 kB / 0.6972 GB, free: 24 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.919e-05/0.1595, allocations: 15.83 kB / 0.6972 GB, free: 8 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.005e-05/0.1595, allocations: 12.45 kB / 0.6972 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.1596, allocations: 4 kB / 0.6972 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.1596, allocations: 0 / 0.6972 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.1596, allocations: 0 / 0.6972 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000457/0.16, allocations: 400.1 kB / 0.6976 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.16, allocations: 0 / 0.6976 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.037e-05/0.1601, allocations: 3.984 kB / 0.6976 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1601, allocations: 384 / 0.6976 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/0.1601, allocations: 4 kB / 0.6976 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.1601, allocations: 0 / 0.6976 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.1601, allocations: 4 kB / 0.6976 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002502/0.1604, allocations: 245 kB / 0.6978 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.951e-05/0.1604, allocations: 81.02 kB / 0.6979 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.205e-05/0.1604, allocations: 4 kB / 0.6979 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.1606, allocations: 7.984 kB / 0.6979 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.911e-05/0.1606, allocations: 15.92 kB / 0.6979 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.493e-05/0.1606, allocations: 4 kB / 0.698 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 6.158e-05/0.1607, allocations: 87.28 kB / 0.698 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1607, allocations: 7.938 kB / 0.698 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002418/0.161, allocations: 15.98 kB / 0.6981 GB, free: 15.03 MB / 0.4981 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 9.516e-05/0.1611, allocations: 100.5 kB / 0.6982 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001877/0.1612, allocations: 111.3 kB / 0.6983 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.1613, allocations: 4 kB / 0.6983 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.688e-05/0.1614, allocations: 91.38 kB / 0.6984 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00028/0.1617, allocations: 16.11 kB / 0.6984 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000327/0.162, allocations: 159.2 kB / 0.6985 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/0.1623, allocations: 0.6856 MB / 0.6992 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.324e-05/0.1624, allocations: 11.98 kB / 0.6992 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.644e-05/0.1624, allocations: 11.44 kB / 0.6992 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of SimCode: time 2.91e-07/0.1624, allocations: 0 / 0.6992 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of Templates: time 0.003156/0.1656, allocations: 0.7782 MB / 0.7 GB, free: 12.99 MB / 0.4981 GB 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)