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.001558/0.001558, 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.001115/0.001115, allocations: 190.8 kB / 16.14 MB, free: 6.707 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.299/1.299, allocations: 222.9 MB / 239.8 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002024/0.002024, allocations: 282.5 kB / 290.2 MB, free: 2.145 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9241/0.9241, allocations: 169.2 MB / 0.4977 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001619/0.001619, allocations: 94.95 kB / 0.5945 GB, free: 28.29 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.144/0.1457, allocations: 86.99 MB / 0.6794 GB, free: 1.18 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Discrete.Examples.BooleanDelay): time 0.00257/0.1483, allocations: 1.471 MB / 0.6809 GB, free: 15.71 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006766/0.149, allocations: 429.9 kB / 0.6813 GB, free: 15.29 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.063e-05/0.149, allocations: 0 / 0.6813 GB, free: 15.29 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.958e-05/0.1491, allocations: 4.656 kB / 0.6813 GB, free: 15.28 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.491e-05/0.1491, allocations: 4.5 kB / 0.6813 GB, free: 15.28 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001356/0.1493, allocations: 15.98 kB / 0.6813 GB, free: 15.26 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 9.008e-05/0.1494, allocations: 56.41 kB / 0.6814 GB, free: 15.21 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.776e-05/0.1495, allocations: 13.89 kB / 0.6814 GB, free: 15.2 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.157e-05/0.1495, allocations: 12 kB / 0.6814 GB, free: 15.18 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.981e-05/0.1496, allocations: 27.78 kB / 0.6814 GB, free: 15.16 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.595e-05/0.1496, allocations: 4 kB / 0.6814 GB, free: 15.15 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.339e-05/0.1497, allocations: 4 kB / 0.6814 GB, free: 15.15 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.168e-05/0.1497, allocations: 4 kB / 0.6814 GB, free: 15.14 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.525e-05/0.1497, allocations: 23.86 kB / 0.6814 GB, free: 15.12 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.04e-05/0.1498, allocations: 40.09 kB / 0.6815 GB, free: 15.08 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1498, allocations: 0 / 0.6815 GB, free: 15.08 MB / 494.1 MB Notification: Performance of FrontEnd: time 6.41e-07/0.1498, allocations: 0 / 0.6815 GB, free: 15.08 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.1498, allocations: 0 / 0.6815 GB, free: 15.08 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.0005799/0.1504, allocations: 393.1 kB / 0.6819 GB, free: 14.64 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.1505, allocations: 12.03 kB / 0.6819 GB, free: 14.63 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.717e-05/0.1505, allocations: 8.844 kB / 0.6819 GB, free: 14.62 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001378/0.1507, allocations: 168.4 kB / 0.682 GB, free: 14.42 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.545e-05/0.1507, allocations: 8.359 kB / 0.682 GB, free: 14.41 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.229e-05/0.1507, allocations: 4.375 kB / 0.682 GB, free: 14.41 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001214/0.1508, allocations: 53.94 kB / 0.6821 GB, free: 14.35 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.1508, allocations: 0 / 0.6821 GB, free: 14.35 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.999e-06/0.1509, allocations: 0 / 0.6821 GB, free: 14.35 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.1509, allocations: 0 / 0.6821 GB, free: 14.35 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.214e-05/0.1509, allocations: 23.98 kB / 0.6821 GB, free: 14.33 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004054/0.1514, allocations: 276.7 kB / 0.6824 GB, free: 14.01 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.005e-05/0.1515, allocations: 42.56 kB / 0.6824 GB, free: 13.96 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.942e-05/0.1515, allocations: 20.98 kB / 0.6824 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.786e-05/0.1515, allocations: 3.938 kB / 0.6824 GB, free: 13.93 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001904/0.1517, allocations: 101.1 kB / 0.6825 GB, free: 13.81 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.663e-06/0.1517, allocations: 0 / 0.6825 GB, free: 13.81 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002861/0.152, allocations: 143.2 kB / 0.6827 GB, free: 13.66 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.64e-05/0.1521, allocations: 81.11 kB / 0.6828 GB, free: 13.56 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.088e-05/0.1522, allocations: 109.8 kB / 0.6829 GB, free: 13.45 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.441e-05/0.1522, allocations: 29.92 kB / 0.6829 GB, free: 13.41 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.614e-05/0.1522, allocations: 88.14 kB / 0.683 GB, free: 13.32 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.665e-05/0.1523, allocations: 19.81 kB / 0.683 GB, free: 13.3 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.333e-05/0.1523, allocations: 33.64 kB / 0.683 GB, free: 13.26 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.1524, allocations: 326.8 kB / 0.6833 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.331e-05/0.1525, allocations: 12 kB / 0.6834 GB, free: 12.92 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.641e-05/0.1525, allocations: 38.56 kB / 0.6834 GB, free: 12.88 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001056/0.1526, allocations: 109.9 kB / 0.6835 GB, free: 12.75 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1527, allocations: 3.984 kB / 0.6835 GB, free: 12.74 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001485/0.1528, allocations: 123.2 kB / 0.6836 GB, free: 12.61 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/0.1529, allocations: 37.7 kB / 0.6836 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.1529, allocations: 0 / 0.6836 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.1529, allocations: 4 kB / 0.6837 GB, free: 12.56 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.033e-05/0.1529, allocations: 0 / 0.6837 GB, free: 12.56 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.1529, allocations: 7.938 kB / 0.6837 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.31e-05/0.153, allocations: 8.047 kB / 0.6837 GB, free: 12.55 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.177e-05/0.153, allocations: 8 kB / 0.6837 GB, free: 12.54 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 9.947e-05/0.1531, allocations: 158.2 kB / 0.6838 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.566e-05/0.1532, allocations: 3.906 kB / 0.6838 GB, free: 12.37 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.299e-05/0.1532, allocations: 12.38 kB / 0.6838 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.1532, allocations: 0 / 0.6838 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.1532, allocations: 0 / 0.6838 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.1532, allocations: 0 / 0.6838 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003858/0.1536, allocations: 400.1 kB / 0.6842 GB, free: 11.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.1536, allocations: 0 / 0.6842 GB, free: 11.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.755e-06/0.1536, allocations: 0 / 0.6842 GB, free: 11.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.1537, allocations: 8 kB / 0.6842 GB, free: 11.89 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.111e-05/0.1537, allocations: 3.984 kB / 0.6842 GB, free: 11.89 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.1537, allocations: 0 / 0.6842 GB, free: 11.89 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1537, allocations: 0 / 0.6842 GB, free: 11.89 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002137/0.1539, allocations: 237 kB / 0.6845 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.642e-05/0.1539, allocations: 81.2 kB / 0.6845 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.116e-05/0.154, allocations: 3.938 kB / 0.6845 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/0.1541, allocations: 19.92 kB / 0.6846 GB, free: 11.52 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.742e-05/0.1541, allocations: 15.91 kB / 0.6846 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.413e-05/0.1542, allocations: 4 kB / 0.6846 GB, free: 11.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.49e-05/0.1542, allocations: 91.81 kB / 0.6847 GB, free: 11.41 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1542, allocations: 0 / 0.6847 GB, free: 11.41 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002327/0.1545, allocations: 12 kB / 0.6847 GB, free: 11.39 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 9.588e-05/0.1546, allocations: 115.2 kB / 0.6848 GB, free: 11.27 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001788/0.1548, allocations: 115.4 kB / 0.6849 GB, free: 11.15 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1548, allocations: 0 / 0.6849 GB, free: 11.15 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.582e-05/0.1549, allocations: 91.33 kB / 0.685 GB, free: 11.05 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000295/0.1552, allocations: 13.7 kB / 0.685 GB, free: 11.04 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003651/0.1555, allocations: 167.1 kB / 0.6852 GB, free: 10.84 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002385/0.1558, allocations: 0.6849 MB / 0.6858 GB, free: 10.13 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.833e-05/0.1558, allocations: 7.984 kB / 0.6858 GB, free: 10.12 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.398e-05/0.1558, allocations: 11.44 kB / 0.6858 GB, free: 10.11 MB / 494.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1558, allocations: 0 / 0.6858 GB, free: 10.11 MB / 494.1 MB Notification: Performance of Templates: time 0.00282/0.1587, allocations: 0.7861 MB / 0.6866 GB, free: 9.34 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)