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.001276/0.001276, allocations: 108.7 kB / 16.41 MB, free: 6.465 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.001258/0.001258, allocations: 192.1 kB / 17.34 MB, free: 5.719 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.38/1.38, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002187/0.002187, allocations: 298.5 kB / 291.5 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9803/0.9803, allocations: 169.3 MB / 0.499 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002088/0.002088, allocations: 107.8 kB / 0.6821 GB, free: 6.984 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6912/0.6933, allocations: 86.98 MB / 0.767 GB, free: 3.902 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Discrete.Examples.BooleanDelay): time 0.002831/0.6962, allocations: 1.418 MB / 0.7684 GB, free: 2.473 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.000787/0.697, allocations: 424.8 kB / 0.7688 GB, free: 2.055 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.097e-05/0.6971, allocations: 4 kB / 0.7688 GB, free: 2.051 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 3.075e-05/0.6971, allocations: 3.938 kB / 0.7688 GB, free: 2.047 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 9.695e-05/0.6973, allocations: 15.86 kB / 0.7688 GB, free: 2.031 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001785/0.6974, allocations: 15.98 kB / 0.7688 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001399/0.6976, allocations: 59.78 kB / 0.7689 GB, free: 1.957 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.715e-05/0.6977, allocations: 7.984 kB / 0.7689 GB, free: 1.949 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 6.818e-05/0.6978, allocations: 23.88 kB / 0.7689 GB, free: 1.926 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 7.424e-05/0.6978, allocations: 23.91 kB / 0.7689 GB, free: 1.902 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.168e-05/0.6979, allocations: 4 kB / 0.7689 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 1.203e-05/0.6979, allocations: 0 / 0.7689 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 2.589e-05/0.6979, allocations: 4 kB / 0.769 GB, free: 1.895 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 5.005e-05/0.698, allocations: 23.86 kB / 0.769 GB, free: 1.871 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001326/0.6981, allocations: 51.47 kB / 0.769 GB, free: 1.824 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.6981, allocations: 0 / 0.769 GB, free: 1.824 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.873e-06/0.6981, allocations: 4 kB / 0.769 GB, free: 1.82 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.109e-05/0.6982, allocations: 0 / 0.769 GB, free: 1.82 MB / 0.5294 GB 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.000684/0.6988, allocations: 391.6 kB / 0.7694 GB, free: 1.387 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/0.6989, allocations: 12.03 kB / 0.7694 GB, free: 1.375 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.089e-05/0.6989, allocations: 0.9375 kB / 0.7694 GB, free: 1.375 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001569/0.6991, allocations: 184.2 kB / 0.7696 GB, free: 1.156 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/0.6991, allocations: 4.375 kB / 0.7696 GB, free: 1.152 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.839e-05/0.6992, allocations: 8.359 kB / 0.7696 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001348/0.6993, allocations: 50 kB / 0.7696 GB, free: 1.09 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.6993, allocations: 3.938 kB / 0.7697 GB, free: 1.086 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.163e-05/0.6993, allocations: 0 / 0.7697 GB, free: 1.086 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.6993, allocations: 4 kB / 0.7697 GB, free: 1.082 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.505e-05/0.6994, allocations: 19.98 kB / 0.7697 GB, free: 1.062 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004434/0.6999, allocations: 276.8 kB / 0.7699 GB, free: 0.7422 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 8.446e-05/0.7, allocations: 42.56 kB / 0.77 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.887e-05/0.7, allocations: 20.98 kB / 0.77 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.7, allocations: 0 / 0.77 GB, free: 0.668 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001977/0.7002, allocations: 97.08 kB / 0.7701 GB, free: 0.5547 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=9): time 1.343e-06/0.7002, allocations: 7.938 kB / 0.7701 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of matching and sorting (n=9): time 0.0002958/0.7005, allocations: 139.3 kB / 0.7702 GB, free: 408 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.299e-05/0.7006, allocations: 81.11 kB / 0.7703 GB, free: 308 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.091e-05/0.7007, allocations: 113.8 kB / 0.7704 GB, free: 184 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.795e-05/0.7007, allocations: 25.7 kB / 0.7704 GB, free: 152 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.647e-05/0.7008, allocations: 92.2 kB / 0.7705 GB, free: 56 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.229e-05/0.7008, allocations: 19.8 kB / 0.7706 GB, free: 36 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.066e-05/0.7009, allocations: 21.72 kB / 0.7706 GB, free: 8 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001515/0.701, allocations: 322.8 kB / 0.7709 GB, free: 15.68 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.306e-05/0.7011, allocations: 16 kB / 0.7709 GB, free: 15.66 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.951e-05/0.7011, allocations: 38.84 kB / 0.7709 GB, free: 15.62 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001128/0.7013, allocations: 113.9 kB / 0.771 GB, free: 15.48 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.7013, allocations: 96 / 0.771 GB, free: 15.48 MB / 0.545 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001645/0.7014, allocations: 127.2 kB / 0.7712 GB, free: 15.35 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.717e-05/0.7015, allocations: 37.77 kB / 0.7712 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.7015, allocations: 0 / 0.7712 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.7015, allocations: 4 kB / 0.7712 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.865e-05/0.7016, allocations: 4 kB / 0.7712 GB, free: 15.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.7016, allocations: 3.984 kB / 0.7712 GB, free: 15.29 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.166e-05/0.7016, allocations: 4 kB / 0.7712 GB, free: 15.29 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.666e-06/0.7017, allocations: 4 kB / 0.7712 GB, free: 15.29 MB / 0.545 GB 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.0001277/0.7018, allocations: 153.9 kB / 0.7714 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.62e-05/0.7018, allocations: 11.84 kB / 0.7714 GB, free: 15.11 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.059e-05/0.7018, allocations: 12.38 kB / 0.7714 GB, free: 15.1 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.7019, allocations: 3.938 kB / 0.7714 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.86e-06/0.7019, allocations: 0 / 0.7714 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.7019, allocations: 0 / 0.7714 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003951/0.7023, allocations: 408.1 kB / 0.7718 GB, free: 14.64 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.7023, allocations: 0 / 0.7718 GB, free: 14.64 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.069e-05/0.7023, allocations: 7.984 kB / 0.7718 GB, free: 14.63 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.7023, allocations: 0 / 0.7718 GB, free: 14.63 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.7023, allocations: 0 / 0.7718 GB, free: 14.63 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.7023, allocations: 4 kB / 0.7718 GB, free: 14.62 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.7023, allocations: 4 kB / 0.7718 GB, free: 14.62 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002146/0.7026, allocations: 233 kB / 0.772 GB, free: 14.37 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.536e-05/0.7026, allocations: 85.02 kB / 0.7721 GB, free: 14.27 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.994e-05/0.7026, allocations: 0 / 0.7721 GB, free: 14.27 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.7027, allocations: 11.98 kB / 0.7721 GB, free: 14.26 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.094e-05/0.7028, allocations: 15.92 kB / 0.7721 GB, free: 14.24 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.398e-05/0.7028, allocations: 0 / 0.7721 GB, free: 14.24 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.952e-05/0.7029, allocations: 95.81 kB / 0.7722 GB, free: 14.15 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7029, allocations: 0 / 0.7722 GB, free: 14.15 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002238/0.7031, allocations: 12 kB / 0.7722 GB, free: 14.14 MB / 0.545 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 0.0001082/0.7032, allocations: 115.2 kB / 0.7723 GB, free: 14.02 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001992/0.7034, allocations: 111.3 kB / 0.7724 GB, free: 13.89 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.7034, allocations: 0 / 0.7724 GB, free: 13.89 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001013/0.7035, allocations: 91.62 kB / 0.7725 GB, free: 13.79 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002954/0.7039, allocations: 26.59 kB / 0.7726 GB, free: 13.77 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003696/0.7042, allocations: 179.2 kB / 0.7727 GB, free: 13.56 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000279/0.7045, allocations: 0.6846 MB / 0.7734 GB, free: 12.85 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.06e-05/0.7046, allocations: 11.44 kB / 0.7734 GB, free: 12.84 MB / 0.545 GB Notification: Performance of SimCode: time 4.6e-07/0.7046, allocations: 0 / 0.7734 GB, free: 12.84 MB / 0.545 GB Notification: Performance of Templates: time 0.002534/0.7071, allocations: 0.9069 MB / 0.7743 GB, free: 11.94 MB / 0.545 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)