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.005362/0.005362, allocations: 104.1 kB / 15.74 MB, free: 6.047 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.001224/0.001224, allocations: 188.1 kB / 16.67 MB, free: 5.969 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.254/1.254, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002041/0.00204, allocations: 295.4 kB / 290.8 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.9019/0.9019, allocations: 169.3 MB / 0.4983 GB, free: 4.41 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001644/0.001644, allocations: 103.8 kB / 0.6814 GB, free: 6.996 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3831/0.3847, allocations: 86.98 MB / 0.7663 GB, free: 4.074 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Discrete.Examples.BooleanDelay): time 0.002253/0.387, allocations: 1.41 MB / 0.7677 GB, free: 2.652 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0006454/0.3877, allocations: 428.8 kB / 0.7681 GB, free: 2.23 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.866e-05/0.3877, allocations: 4 kB / 0.7681 GB, free: 2.227 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.413e-05/0.3878, allocations: 3.938 kB / 0.7681 GB, free: 2.223 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 7.425e-05/0.3879, allocations: 11.91 kB / 0.7682 GB, free: 2.211 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001417/0.388, allocations: 19.92 kB / 0.7682 GB, free: 2.191 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.000105/0.3881, allocations: 47.8 kB / 0.7682 GB, free: 2.145 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.534e-05/0.3882, allocations: 19.98 kB / 0.7682 GB, free: 2.125 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 7.055e-05/0.3883, allocations: 27.84 kB / 0.7683 GB, free: 2.098 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 6.398e-05/0.3884, allocations: 19.92 kB / 0.7683 GB, free: 2.078 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.881e-05/0.3884, allocations: 4 kB / 0.7683 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 1.257e-05/0.3884, allocations: 0 / 0.7683 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 2.412e-05/0.3884, allocations: 8 kB / 0.7683 GB, free: 2.066 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 4.426e-05/0.3885, allocations: 19.86 kB / 0.7683 GB, free: 2.047 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001034/0.3886, allocations: 47.67 kB / 0.7684 GB, free: 2.004 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3886, allocations: 0 / 0.7684 GB, free: 2.004 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.674e-06/0.3886, allocations: 8 kB / 0.7684 GB, free: 1.996 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.501e-06/0.3886, allocations: 0 / 0.7684 GB, free: 1.996 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.0005387/0.3892, allocations: 391.6 kB / 0.7687 GB, free: 1.562 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.3892, allocations: 12.03 kB / 0.7688 GB, free: 1.551 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.055e-05/0.3893, allocations: 0.9375 kB / 0.7688 GB, free: 1.551 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001156/0.3894, allocations: 176.2 kB / 0.7689 GB, free: 1.34 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.239e-05/0.3894, allocations: 8.312 kB / 0.7689 GB, free: 1.332 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.324e-05/0.3894, allocations: 4.375 kB / 0.7689 GB, free: 1.328 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001064/0.3895, allocations: 61.94 kB / 0.769 GB, free: 1.262 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.3895, allocations: 0 / 0.769 GB, free: 1.262 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.368e-06/0.3896, allocations: 0 / 0.769 GB, free: 1.262 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.631e-06/0.3896, allocations: 4 kB / 0.769 GB, free: 1.258 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.219e-05/0.3896, allocations: 15.98 kB / 0.769 GB, free: 1.242 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003683/0.39, allocations: 272.8 kB / 0.7693 GB, free: 0.9258 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 8.899e-05/0.3901, allocations: 50.5 kB / 0.7693 GB, free: 0.8672 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.701e-05/0.3901, allocations: 16.98 kB / 0.7693 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.672e-05/0.3902, allocations: 0 / 0.7693 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001491/0.3903, allocations: 101.1 kB / 0.7694 GB, free: 0.7305 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=9): time 1.382e-06/0.3903, allocations: 4 kB / 0.7694 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of matching and sorting (n=9): time 0.0002646/0.3906, allocations: 143.2 kB / 0.7696 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/0.3906, allocations: 77.11 kB / 0.7696 GB, free: 492 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.721e-05/0.3907, allocations: 117.8 kB / 0.7698 GB, free: 364 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.333e-05/0.3908, allocations: 25.7 kB / 0.7698 GB, free: 332 kB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 4.067e-05/0.3908, allocations: 88.14 kB / 0.7699 GB, free: 240 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.892e-05/0.3908, allocations: 15.8 kB / 0.7699 GB, free: 224 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.874e-05/0.3909, allocations: 25.72 kB / 0.7699 GB, free: 192 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001114/0.391, allocations: 322.7 kB / 0.7702 GB, free: 15.86 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.527e-05/0.391, allocations: 16 kB / 0.7702 GB, free: 15.85 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.634e-05/0.3911, allocations: 42.5 kB / 0.7703 GB, free: 15.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001044/0.3912, allocations: 118 kB / 0.7704 GB, free: 15.66 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3912, allocations: 3.938 kB / 0.7704 GB, free: 15.66 MB / 0.545 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001436/0.3914, allocations: 123.2 kB / 0.7705 GB, free: 15.52 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.594e-05/0.3914, allocations: 29.7 kB / 0.7705 GB, free: 15.49 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.3914, allocations: 0 / 0.7705 GB, free: 15.49 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/0.3914, allocations: 4 kB / 0.7705 GB, free: 15.48 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.112e-05/0.3915, allocations: 12.42 kB / 0.7705 GB, free: 15.47 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.3915, allocations: 0 / 0.7705 GB, free: 15.47 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.227e-05/0.3916, allocations: 8 kB / 0.7706 GB, free: 15.46 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.406e-06/0.3916, allocations: 4 kB / 0.7706 GB, free: 15.46 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.0001008/0.3917, allocations: 159.4 kB / 0.7707 GB, free: 15.29 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.717e-05/0.3917, allocations: 7.906 kB / 0.7707 GB, free: 15.28 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.237e-05/0.3917, allocations: 12.31 kB / 0.7707 GB, free: 15.27 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.3917, allocations: 0 / 0.7707 GB, free: 15.27 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.3918, allocations: 4 kB / 0.7707 GB, free: 15.27 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.3918, allocations: 0 / 0.7707 GB, free: 15.27 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003647/0.3921, allocations: 404.1 kB / 0.7711 GB, free: 14.81 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.3921, allocations: 0 / 0.7711 GB, free: 14.81 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.977e-05/0.3922, allocations: 11.92 kB / 0.7711 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.3922, allocations: 0 / 0.7711 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.388e-06/0.3922, allocations: 0 / 0.7711 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.3922, allocations: 0 / 0.7711 GB, free: 14.8 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3922, allocations: 4.062 kB / 0.7711 GB, free: 14.79 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001996/0.3924, allocations: 233.1 kB / 0.7714 GB, free: 14.54 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.64e-05/0.3924, allocations: 88.95 kB / 0.7714 GB, free: 14.44 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.876e-05/0.3925, allocations: 4 kB / 0.7714 GB, free: 14.43 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.3926, allocations: 11.98 kB / 0.7715 GB, free: 14.42 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.559e-05/0.3926, allocations: 11.92 kB / 0.7715 GB, free: 14.41 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/0.3926, allocations: 0 / 0.7715 GB, free: 14.41 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.427e-05/0.3927, allocations: 91.81 kB / 0.7716 GB, free: 14.32 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3927, allocations: 0 / 0.7716 GB, free: 14.32 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002301/0.3929, allocations: 20 kB / 0.7716 GB, free: 14.3 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.088e-05/0.393, allocations: 105.6 kB / 0.7717 GB, free: 14.19 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001693/0.3932, allocations: 115.3 kB / 0.7718 GB, free: 14.07 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3932, allocations: 0 / 0.7718 GB, free: 14.07 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 7.728e-05/0.3933, allocations: 87.39 kB / 0.7719 GB, free: 13.97 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002765/0.3936, allocations: 19.92 kB / 0.7719 GB, free: 13.95 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002956/0.3939, allocations: 161.6 kB / 0.772 GB, free: 13.77 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002303/0.3941, allocations: 0.6846 MB / 0.7727 GB, free: 13.05 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.529e-05/0.3942, allocations: 7.984 kB / 0.7727 GB, free: 13.05 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.5e-05/0.3942, allocations: 11.44 kB / 0.7727 GB, free: 13.04 MB / 0.545 GB Notification: Performance of SimCode: time 2.5e-07/0.3942, allocations: 0 / 0.7727 GB, free: 13.04 MB / 0.545 GB Notification: Performance of Templates: time 0.002817/0.397, allocations: 0.9029 MB / 0.7736 GB, free: 12.14 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)