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.004729/0.004729, allocations: 103.2 kB / 15.73 MB, free: 6.035 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.001038/0.001038, allocations: 194.6 kB / 16.68 MB, free: 5.953 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.286/1.286, allocations: 222.9 MB / 240.4 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.002269/0.002269, allocations: 288.2 kB / 290.8 MB, free: 14.41 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9152/0.9152, allocations: 169.3 MB / 0.4983 GB, free: 4.406 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0017/0.0017, allocations: 103.8 kB / 0.6814 GB, free: 6.988 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3746/0.3763, allocations: 86.98 MB / 0.7663 GB, free: 3.965 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Discrete.Examples.BooleanDelay): time 0.002637/0.379, allocations: 1.414 MB / 0.7677 GB, free: 2.539 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0007706/0.3798, allocations: 436.7 kB / 0.7681 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.577e-05/0.3799, allocations: 0 / 0.7681 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.9e-05/0.3799, allocations: 3.938 kB / 0.7681 GB, free: 2.105 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 9.013e-05/0.38, allocations: 11.94 kB / 0.7682 GB, free: 2.094 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001808/0.3802, allocations: 23.91 kB / 0.7682 GB, free: 2.07 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001445/0.3803, allocations: 55.78 kB / 0.7682 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001106/0.3805, allocations: 8 kB / 0.7682 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 7.911e-05/0.3806, allocations: 23.86 kB / 0.7683 GB, free: 1.984 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 7.706e-05/0.3806, allocations: 15.92 kB / 0.7683 GB, free: 1.969 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.404e-05/0.3807, allocations: 4 kB / 0.7683 GB, free: 1.965 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 1.588e-05/0.3807, allocations: 4 kB / 0.7683 GB, free: 1.961 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 3.313e-05/0.3807, allocations: 11.98 kB / 0.7683 GB, free: 1.949 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.043e-05/0.3808, allocations: 23.86 kB / 0.7683 GB, free: 1.926 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001357/0.381, allocations: 43.55 kB / 0.7684 GB, free: 1.887 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.381, allocations: 0 / 0.7684 GB, free: 1.887 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.994e-06/0.381, allocations: 0 / 0.7684 GB, free: 1.887 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.56e-06/0.381, allocations: 0 / 0.7684 GB, free: 1.887 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.0007236/0.3817, allocations: 391.6 kB / 0.7687 GB, free: 1.453 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.3818, allocations: 12.02 kB / 0.7687 GB, free: 1.441 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.873e-05/0.3818, allocations: 12.94 kB / 0.7688 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000129/0.382, allocations: 176.2 kB / 0.7689 GB, free: 1.219 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.382, allocations: 384 / 0.7689 GB, free: 1.219 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.53e-05/0.382, allocations: 4.375 kB / 0.7689 GB, free: 1.215 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001175/0.3821, allocations: 65.91 kB / 0.769 GB, free: 1.145 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.3822, allocations: 3.938 kB / 0.769 GB, free: 1.141 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.818e-06/0.3822, allocations: 0 / 0.769 GB, free: 1.141 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.3822, allocations: 0 / 0.769 GB, free: 1.141 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.259e-05/0.3822, allocations: 16 kB / 0.769 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003959/0.3826, allocations: 276.8 kB / 0.7693 GB, free: 0.8047 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 8.725e-05/0.3827, allocations: 38.52 kB / 0.7693 GB, free: 0.7578 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.025e-05/0.3828, allocations: 28.95 kB / 0.7693 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.877e-05/0.3828, allocations: 0 / 0.7693 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001913/0.383, allocations: 97.08 kB / 0.7694 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=9): time 1.563e-06/0.383, allocations: 0 / 0.7694 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of matching and sorting (n=9): time 0.0002851/0.3833, allocations: 151.2 kB / 0.7696 GB, free: 464 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.276e-05/0.3834, allocations: 81.17 kB / 0.7697 GB, free: 364 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.937e-05/0.3835, allocations: 117.8 kB / 0.7698 GB, free: 236 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.557e-05/0.3835, allocations: 25.7 kB / 0.7698 GB, free: 204 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 5.348e-05/0.3836, allocations: 84.14 kB / 0.7699 GB, free: 116 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.953e-05/0.3836, allocations: 11.81 kB / 0.7699 GB, free: 104 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.212e-05/0.3836, allocations: 29.7 kB / 0.7699 GB, free: 68 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001215/0.3838, allocations: 318.8 kB / 0.7702 GB, free: 15.75 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.897e-05/0.3838, allocations: 23.98 kB / 0.7702 GB, free: 15.72 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.774e-05/0.3839, allocations: 38.5 kB / 0.7703 GB, free: 15.68 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001048/0.384, allocations: 106 kB / 0.7704 GB, free: 15.55 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.384, allocations: 0 / 0.7704 GB, free: 15.55 MB / 0.545 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000161/0.3841, allocations: 127.3 kB / 0.7705 GB, free: 15.41 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.242e-05/0.3842, allocations: 37.69 kB / 0.7705 GB, free: 15.37 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.3842, allocations: 0 / 0.7705 GB, free: 15.37 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.3842, allocations: 384 / 0.7705 GB, free: 15.37 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.97e-05/0.3843, allocations: 8 kB / 0.7705 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.3843, allocations: 8 kB / 0.7706 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.569e-05/0.3843, allocations: 7.984 kB / 0.7706 GB, free: 15.35 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.568e-06/0.3844, allocations: 11.94 kB / 0.7706 GB, free: 15.34 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.0001028/0.3845, allocations: 149.9 kB / 0.7707 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.693e-05/0.3845, allocations: 11.94 kB / 0.7707 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.63e-05/0.3845, allocations: 16.36 kB / 0.7707 GB, free: 15.15 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.3845, allocations: 3.938 kB / 0.7707 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.3845, allocations: 0 / 0.7707 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.3845, allocations: 0 / 0.7707 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003727/0.3849, allocations: 400.1 kB / 0.7711 GB, free: 14.69 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.3849, allocations: 0 / 0.7711 GB, free: 14.69 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.315e-06/0.385, allocations: 0 / 0.7711 GB, free: 14.69 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.385, allocations: 4 kB / 0.7711 GB, free: 14.69 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.947e-06/0.385, allocations: 0 / 0.7711 GB, free: 14.69 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.385, allocations: 4 kB / 0.7711 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.385, allocations: 0 / 0.7711 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002054/0.3852, allocations: 233 kB / 0.7714 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.887e-05/0.3852, allocations: 89 kB / 0.7714 GB, free: 14.33 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.239e-05/0.3853, allocations: 4 kB / 0.7714 GB, free: 14.32 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001045/0.3854, allocations: 7.984 kB / 0.7715 GB, free: 14.32 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.132e-05/0.3854, allocations: 11.92 kB / 0.7715 GB, free: 14.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.42e-05/0.3855, allocations: 8 kB / 0.7715 GB, free: 14.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.268e-05/0.3855, allocations: 91.27 kB / 0.7716 GB, free: 14.21 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.3855, allocations: 0 / 0.7716 GB, free: 14.21 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002396/0.3858, allocations: 16 kB / 0.7716 GB, free: 14.19 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 8.132e-05/0.3858, allocations: 103.2 kB / 0.7717 GB, free: 14.08 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001885/0.386, allocations: 119.3 kB / 0.7718 GB, free: 13.95 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3861, allocations: 0 / 0.7718 GB, free: 13.95 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 7.961e-05/0.3861, allocations: 87.52 kB / 0.7719 GB, free: 13.86 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002902/0.3864, allocations: 16.88 kB / 0.7719 GB, free: 13.84 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003212/0.3868, allocations: 153.6 kB / 0.772 GB, free: 13.66 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002267/0.387, allocations: 0.6905 MB / 0.7727 GB, free: 12.95 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.707e-05/0.387, allocations: 0 / 0.7727 GB, free: 12.95 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.649e-05/0.3871, allocations: 11.44 kB / 0.7727 GB, free: 12.94 MB / 0.545 GB Notification: Performance of SimCode: time 2.3e-07/0.3871, allocations: 0 / 0.7727 GB, free: 12.94 MB / 0.545 GB Notification: Performance of Templates: time 0.00293/0.39, allocations: 0.8839 MB / 0.7736 GB, free: 12.07 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)