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.001642/0.001642, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001683/0.001683, allocations: 194.5 kB / 16.25 MB, free: 6.633 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.431/1.431, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002593/0.002593, allocations: 287 kB / 290.4 MB, free: 2.137 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.071/1.071, allocations: 178.6 MB / 0.507 GB, free: 4.742 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002858/0.002859, allocations: 91.84 kB / 0.6059 GB, free: 25.04 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.147/0.1499, allocations: 89.15 MB / 0.693 GB, free: 4.75 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Discrete.Examples.BooleanDelay): time 0.002667/0.1526, allocations: 1.49 MB / 0.6944 GB, free: 3.258 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006988/0.1533, allocations: 429.3 kB / 0.6948 GB, free: 2.836 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.331e-05/0.1534, allocations: 0 / 0.6948 GB, free: 2.836 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.597e-05/0.1534, allocations: 0 / 0.6948 GB, free: 2.836 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.921e-05/0.1535, allocations: 12.56 kB / 0.6949 GB, free: 2.824 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00013/0.1536, allocations: 18.47 kB / 0.6949 GB, free: 2.809 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001205/0.1538, allocations: 51.84 kB / 0.6949 GB, free: 2.758 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.05e-05/0.1538, allocations: 4 kB / 0.6949 GB, free: 2.754 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.86e-05/0.1539, allocations: 23.86 kB / 0.6949 GB, free: 2.73 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.127e-05/0.154, allocations: 23.91 kB / 0.695 GB, free: 2.707 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.718e-05/0.154, allocations: 5.75 kB / 0.695 GB, free: 2.703 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.12e-05/0.154, allocations: 4 kB / 0.695 GB, free: 2.699 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.207e-05/0.154, allocations: 7.938 kB / 0.695 GB, free: 2.691 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.377e-05/0.1541, allocations: 23.92 kB / 0.695 GB, free: 2.668 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.593e-05/0.1542, allocations: 40.05 kB / 0.695 GB, free: 2.629 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1542, allocations: 4.656 kB / 0.6951 GB, free: 2.625 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1542, allocations: 1.719 kB / 0.6951 GB, free: 2.625 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.797e-06/0.1542, allocations: 0 / 0.6951 GB, free: 2.625 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.0006246/0.1548, allocations: 397 kB / 0.6954 GB, free: 2.184 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.1549, allocations: 12.03 kB / 0.6954 GB, free: 2.172 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.39e-05/0.1549, allocations: 0.9375 kB / 0.6954 GB, free: 2.172 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000149/0.1551, allocations: 180.2 kB / 0.6956 GB, free: 1.957 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.1551, allocations: 4.375 kB / 0.6956 GB, free: 1.953 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.302e-05/0.1551, allocations: 384 / 0.6956 GB, free: 1.953 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001159/0.1553, allocations: 54 kB / 0.6957 GB, free: 1.895 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.1553, allocations: 0 / 0.6957 GB, free: 1.895 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.181e-05/0.1553, allocations: 4 kB / 0.6957 GB, free: 1.891 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.626e-06/0.1553, allocations: 0 / 0.6957 GB, free: 1.891 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.497e-05/0.1554, allocations: 19.98 kB / 0.6957 GB, free: 1.871 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003924/0.1558, allocations: 268.8 kB / 0.696 GB, free: 1.559 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.872e-05/0.1559, allocations: 46.5 kB / 0.696 GB, free: 1.504 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.576e-05/0.1559, allocations: 16.98 kB / 0.696 GB, free: 1.484 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.509e-05/0.1559, allocations: 0 / 0.696 GB, free: 1.484 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001833/0.1561, allocations: 109.1 kB / 0.6961 GB, free: 1.359 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 1.433e-06/0.1561, allocations: 3.938 kB / 0.6961 GB, free: 1.355 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002902/0.1564, allocations: 143.3 kB / 0.6963 GB, free: 1.203 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.06e-05/0.1565, allocations: 81.11 kB / 0.6963 GB, free: 1.105 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.833e-05/0.1566, allocations: 109.8 kB / 0.6964 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.927e-05/0.1566, allocations: 25.7 kB / 0.6965 GB, free: 0.957 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.473e-05/0.1567, allocations: 88.14 kB / 0.6965 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.484e-05/0.1567, allocations: 19.73 kB / 0.6966 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.406e-05/0.1567, allocations: 29.72 kB / 0.6966 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.1569, allocations: 322.8 kB / 0.6969 GB, free: 500 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.402e-05/0.1569, allocations: 15.94 kB / 0.6969 GB, free: 484 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.403e-05/0.157, allocations: 38.56 kB / 0.697 GB, free: 436 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001125/0.1571, allocations: 114 kB / 0.6971 GB, free: 300 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.1571, allocations: 0 / 0.6971 GB, free: 300 kB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001682/0.1573, allocations: 131.5 kB / 0.6972 GB, free: 156 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.197e-05/0.1573, allocations: 29.7 kB / 0.6972 GB, free: 120 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.1573, allocations: 7.938 kB / 0.6972 GB, free: 112 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.1573, allocations: 0 / 0.6972 GB, free: 112 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.933e-05/0.1574, allocations: 7.984 kB / 0.6972 GB, free: 104 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.1574, allocations: 0 / 0.6972 GB, free: 104 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.46e-05/0.1575, allocations: 12.06 kB / 0.6972 GB, free: 92 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.828e-06/0.1575, allocations: 8.047 kB / 0.6973 GB, free: 84 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.0001353/0.1576, allocations: 160.1 kB / 0.6974 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.727e-05/0.1577, allocations: 7.906 kB / 0.6974 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.421e-05/0.1577, allocations: 8.375 kB / 0.6974 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.1577, allocations: 0 / 0.6974 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.1577, allocations: 0 / 0.6974 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.1577, allocations: 4 kB / 0.6974 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004245/0.1581, allocations: 396.5 kB / 0.6978 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1581, allocations: 4 kB / 0.6978 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.154e-05/0.1582, allocations: 11.92 kB / 0.6978 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.1582, allocations: 0 / 0.6978 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.458e-06/0.1582, allocations: 3.938 kB / 0.6978 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.1582, allocations: 4 kB / 0.6978 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1582, allocations: 0 / 0.6978 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002331/0.1584, allocations: 233.1 kB / 0.698 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.704e-05/0.1585, allocations: 81.02 kB / 0.6981 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.123e-05/0.1585, allocations: 4 kB / 0.6981 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/0.1586, allocations: 11.98 kB / 0.6981 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.868e-05/0.1587, allocations: 19.86 kB / 0.6982 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.415e-05/0.1587, allocations: 4 kB / 0.6982 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 5.701e-05/0.1588, allocations: 83.28 kB / 0.6982 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1588, allocations: 0 / 0.6982 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002333/0.159, allocations: 16 kB / 0.6983 GB, free: 14.93 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.186e-05/0.1591, allocations: 104.6 kB / 0.6984 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001914/0.1593, allocations: 119.3 kB / 0.6985 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.1593, allocations: 0 / 0.6985 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.255e-05/0.1594, allocations: 91.39 kB / 0.6986 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002739/0.1597, allocations: 13.67 kB / 0.6986 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003258/0.16, allocations: 165.6 kB / 0.6987 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003184/0.1604, allocations: 0.6893 MB / 0.6994 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.963e-05/0.1604, allocations: 7.984 kB / 0.6994 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.874e-05/0.1604, allocations: 15.44 kB / 0.6994 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1604, allocations: 0 / 0.6994 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of Templates: time 0.003424/0.1639, allocations: 0.8282 MB / 0.7002 GB, free: 12.84 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)