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.001018/0.001018, allocations: 91.69 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.007565/0.007565, allocations: 172 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.315/1.315, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001669/0.001669, allocations: 270.6 kB / 291.7 MB, free: 1.875 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9299/0.9299, allocations: 169.5 MB / 0.5004 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004152/0.0004152, allocations: 18.8 kB / 0.5986 GB, free: 28.01 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1487/0.1492, allocations: 88.55 MB / 0.6851 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Discrete.Examples.BooleanDelay): time 0.001376/0.1506, allocations: 1.143 MB / 0.6862 GB, free: 13.94 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005988/0.1512, allocations: 417.5 kB / 0.6866 GB, free: 13.53 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.418e-05/0.1512, allocations: 6.312 kB / 0.6866 GB, free: 13.53 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.366e-05/0.1513, allocations: 0 / 0.6866 GB, free: 13.53 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.928e-05/0.1513, allocations: 7.922 kB / 0.6866 GB, free: 13.52 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001198/0.1515, allocations: 19.98 kB / 0.6867 GB, free: 13.5 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.871e-05/0.1515, allocations: 43.86 kB / 0.6867 GB, free: 13.46 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.907e-05/0.1516, allocations: 6.781 kB / 0.6867 GB, free: 13.45 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.772e-05/0.1517, allocations: 23.86 kB / 0.6867 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.439e-05/0.1517, allocations: 19.91 kB / 0.6868 GB, free: 13.41 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.629e-05/0.1518, allocations: 4 kB / 0.6868 GB, free: 13.41 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.737e-06/0.1518, allocations: 0 / 0.6868 GB, free: 13.41 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.253e-05/0.1518, allocations: 15.92 kB / 0.6868 GB, free: 13.39 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.631e-05/0.1519, allocations: 37.64 kB / 0.6868 GB, free: 13.35 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.599e-05/0.1519, allocations: 41.59 kB / 0.6869 GB, free: 13.31 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.152, allocations: 0 / 0.6869 GB, free: 13.31 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.152, allocations: 0 / 0.6869 GB, free: 13.31 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.956e-06/0.152, allocations: 3.938 kB / 0.6869 GB, free: 13.3 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.0005115/0.1525, allocations: 393 kB / 0.6872 GB, free: 12.87 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.922e-05/0.1525, allocations: 8.031 kB / 0.6872 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.092e-05/0.1526, allocations: 8.844 kB / 0.6872 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001111/0.1527, allocations: 176.2 kB / 0.6874 GB, free: 12.64 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.323e-05/0.1527, allocations: 384 / 0.6874 GB, free: 12.64 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.254e-05/0.1527, allocations: 9 kB / 0.6874 GB, free: 12.64 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001001/0.1528, allocations: 54.64 kB / 0.6875 GB, free: 12.58 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.591e-06/0.1528, allocations: 0 / 0.6875 GB, free: 12.58 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.1528, allocations: 1.375 kB / 0.6875 GB, free: 12.58 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.616e-06/0.1529, allocations: 0 / 0.6875 GB, free: 12.58 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.42e-05/0.1529, allocations: 23.98 kB / 0.6875 GB, free: 12.55 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003522/0.1533, allocations: 269 kB / 0.6878 GB, free: 12.25 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.55e-05/0.1534, allocations: 42.52 kB / 0.6878 GB, free: 12.2 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.874e-05/0.1534, allocations: 24.97 kB / 0.6878 GB, free: 12.17 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.26e-05/0.1534, allocations: 0 / 0.6878 GB, free: 12.17 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001544/0.1536, allocations: 97 kB / 0.6879 GB, free: 12.05 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.263e-06/0.1536, allocations: 0.7812 kB / 0.6879 GB, free: 12.05 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002495/0.1539, allocations: 143.4 kB / 0.688 GB, free: 11.9 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.908e-05/0.1539, allocations: 85.81 kB / 0.6881 GB, free: 11.8 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.107e-05/0.154, allocations: 114.5 kB / 0.6882 GB, free: 11.68 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/0.154, allocations: 25.7 kB / 0.6883 GB, free: 11.65 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.838e-05/0.1541, allocations: 88.77 kB / 0.6883 GB, free: 11.56 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.405e-05/0.1541, allocations: 17.72 kB / 0.6884 GB, free: 11.54 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.68e-05/0.1541, allocations: 21.7 kB / 0.6884 GB, free: 11.52 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.541e-05/0.1542, allocations: 318.8 kB / 0.6887 GB, free: 11.2 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.518e-05/0.1543, allocations: 23.92 kB / 0.6887 GB, free: 11.17 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.445e-05/0.1543, allocations: 38.56 kB / 0.6888 GB, free: 11.12 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.887e-05/0.1544, allocations: 106 kB / 0.6889 GB, free: 11 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1544, allocations: 0 / 0.6889 GB, free: 11 MB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001497/0.1546, allocations: 127.2 kB / 0.689 GB, free: 10.86 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.72e-05/0.1546, allocations: 37.69 kB / 0.689 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.1547, allocations: 8 kB / 0.689 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.348e-06/0.1547, allocations: 4.312 kB / 0.689 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.397e-05/0.1547, allocations: 4 kB / 0.689 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.1547, allocations: 4 kB / 0.689 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.631e-05/0.1548, allocations: 11.97 kB / 0.689 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.1548, allocations: 11.94 kB / 0.6891 GB, free: 10.78 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.24e-05/0.1549, allocations: 150.1 kB / 0.6892 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.509e-05/0.1549, allocations: 4 kB / 0.6892 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.372e-05/0.155, allocations: 12.36 kB / 0.6892 GB, free: 10.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.155, allocations: 0 / 0.6892 GB, free: 10.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.155, allocations: 4 kB / 0.6892 GB, free: 10.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.155, allocations: 0 / 0.6892 GB, free: 10.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003645/0.1554, allocations: 404.1 kB / 0.6896 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.1554, allocations: 0 / 0.6896 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.614e-05/0.1554, allocations: 3.938 kB / 0.6896 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.1554, allocations: 0 / 0.6896 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.899e-06/0.1554, allocations: 4 kB / 0.6896 GB, free: 10.13 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.555e-06/0.1554, allocations: 8.062 kB / 0.6896 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.1554, allocations: 0 / 0.6896 GB, free: 10.12 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001981/0.1556, allocations: 229.2 kB / 0.6898 GB, free: 9.879 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.733e-05/0.1557, allocations: 85 kB / 0.6899 GB, free: 9.777 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.064e-05/0.1557, allocations: 8 kB / 0.6899 GB, free: 9.77 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001077/0.1558, allocations: 11.98 kB / 0.6899 GB, free: 9.758 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.512e-05/0.1559, allocations: 11.88 kB / 0.6899 GB, free: 9.746 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.265e-05/0.1559, allocations: 4 kB / 0.6899 GB, free: 9.742 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.213e-05/0.1559, allocations: 95.8 kB / 0.69 GB, free: 9.648 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1559, allocations: 0 / 0.69 GB, free: 9.648 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002439/0.1562, allocations: 16 kB / 0.6901 GB, free: 9.633 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 8.239e-05/0.1563, allocations: 99.25 kB / 0.6901 GB, free: 9.527 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001703/0.1564, allocations: 115.3 kB / 0.6903 GB, free: 9.402 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1565, allocations: 0 / 0.6903 GB, free: 9.402 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.126e-05/0.1565, allocations: 91.52 kB / 0.6903 GB, free: 9.301 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002834/0.1568, allocations: 17.83 kB / 0.6904 GB, free: 9.285 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003213/0.1572, allocations: 172.5 kB / 0.6905 GB, free: 9.086 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000236/0.1574, allocations: 0.6848 MB / 0.6912 GB, free: 8.375 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.483e-05/0.1575, allocations: 11.94 kB / 0.6912 GB, free: 8.363 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.366e-05/0.1575, allocations: 11.44 kB / 0.6912 GB, free: 8.352 MB / 494.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1575, allocations: 0 / 0.6912 GB, free: 8.352 MB / 494.1 MB Notification: Performance of Templates: time 0.002668/0.1602, allocations: 0.7628 MB / 0.692 GB, free: 7.602 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)