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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.7682/0.7682, allocations: 141.8 MB / 149.3 MB, free: 9.199 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 184.9 kB / 182.2 MB, free: 9.441 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 221.5 MB / 436.4 MB, free: 13.31 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000899/0.0008989, allocations: 88.09 kB / 0.5074 GB, free: 10.13 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001753/0.001753, allocations: 284.8 kB / 0.5889 GB, free: 54.65 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.195e-05/1.197e-05, allocations: 0 / 0.6765 GB, free: 12.82 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3719/0.3719, allocations: 82.76 MB / 0.7573 GB, free: 32.01 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1299/0.5019, allocations: 108.5 MB / 0.8633 GB, free: 3.402 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000219/0.5022, allocations: 75.83 kB / 0.8633 GB, free: 3.332 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.003328/0.5055, allocations: 1.222 MB / 0.8645 GB, free: 2.109 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.122e-06/0.5055, allocations: 0 / 0.8645 GB, free: 2.109 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.5055, allocations: 0 / 0.8645 GB, free: 2.109 MB / 0.5261 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.0004045/0.5059, allocations: 384.1 kB / 0.8649 GB, free: 1.684 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.506, allocations: 12.02 kB / 0.8649 GB, free: 1.672 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.181e-05/0.506, allocations: 4 kB / 0.8649 GB, free: 1.668 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001243/0.5061, allocations: 171 kB / 0.8651 GB, free: 1.461 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.5062, allocations: 7.953 kB / 0.8651 GB, free: 1.453 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.082e-05/0.5062, allocations: 3.938 kB / 0.8651 GB, free: 1.449 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.899e-05/0.5063, allocations: 16 kB / 0.8651 GB, free: 1.434 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.766e-05/0.5063, allocations: 41.69 kB / 0.8652 GB, free: 1.387 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.014e-06/0.5064, allocations: 0 / 0.8652 GB, free: 1.387 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.5064, allocations: 8 kB / 0.8652 GB, free: 1.379 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.5064, allocations: 0 / 0.8652 GB, free: 1.379 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003573/0.5068, allocations: 245.4 kB / 0.8654 GB, free: 1.102 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 7.235e-05/0.5068, allocations: 42.56 kB / 0.8654 GB, free: 1.051 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.448e-05/0.5069, allocations: 20.98 kB / 0.8655 GB, free: 1.027 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.788e-05/0.5069, allocations: 0 / 0.8655 GB, free: 1.027 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001409/0.5071, allocations: 101 kB / 0.8655 GB, free: 0.9102 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=9): time 1.243e-06/0.5071, allocations: 0 / 0.8655 GB, free: 0.9102 MB / 0.5261 GB Notification: Performance of matching and sorting (n=9): time 0.0002058/0.5073, allocations: 89.69 kB / 0.8656 GB, free: 0.8164 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.584e-05/0.5073, allocations: 81.11 kB / 0.8657 GB, free: 0.7188 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.02e-05/0.5074, allocations: 104.9 kB / 0.8658 GB, free: 0.6094 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/0.5074, allocations: 29.7 kB / 0.8658 GB, free: 0.5742 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 4.3e-05/0.5075, allocations: 80.14 kB / 0.8659 GB, free: 0.4922 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.823e-05/0.5075, allocations: 19.81 kB / 0.8659 GB, free: 484 kB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.138e-06/0.5075, allocations: 0 / 0.8659 GB, free: 484 kB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.5076, allocations: 322.8 kB / 0.8662 GB, free: 152 kB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.667e-05/0.5077, allocations: 12 kB / 0.8663 GB, free: 140 kB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.85e-05/0.5077, allocations: 34.52 kB / 0.8663 GB, free: 96 kB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.307e-05/0.5078, allocations: 19.94 kB / 0.8663 GB, free: 76 kB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.5078, allocations: 0 / 0.8663 GB, free: 76 kB / 0.5261 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001337/0.5079, allocations: 93.61 kB / 0.8664 GB, free: 15.97 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 3.382e-05/0.5079, allocations: 29.7 kB / 0.8664 GB, free: 15.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.508, allocations: 0 / 0.8664 GB, free: 15.94 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.508, allocations: 4 kB / 0.8664 GB, free: 15.93 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.949e-05/0.508, allocations: 7.984 kB / 0.8664 GB, free: 15.93 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.508, allocations: 0 / 0.8664 GB, free: 15.93 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.257e-05/0.5081, allocations: 7.938 kB / 0.8664 GB, free: 15.92 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.715e-06/0.5081, allocations: 7.938 kB / 0.8665 GB, free: 15.91 MB / 0.5417 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 ($PRE.del.firstTrigger,del.firstTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.sampleTrigger,del.ySample,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.726e-05/0.5082, allocations: 155.2 kB / 0.8666 GB, free: 15.75 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.749e-05/0.5082, allocations: 8.078 kB / 0.8666 GB, free: 15.74 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.393e-05/0.5083, allocations: 8.562 kB / 0.8666 GB, free: 15.73 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-06/0.5083, allocations: 0 / 0.8666 GB, free: 15.73 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.5083, allocations: 0 / 0.8666 GB, free: 15.73 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.5083, allocations: 0 / 0.8666 GB, free: 15.73 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003202/0.5086, allocations: 338.9 kB / 0.8669 GB, free: 15.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.5086, allocations: 4 kB / 0.8669 GB, free: 15.35 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.066e-05/0.5086, allocations: 11.94 kB / 0.867 GB, free: 15.34 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.5086, allocations: 0 / 0.867 GB, free: 15.34 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.076e-05/0.5087, allocations: 4.062 kB / 0.867 GB, free: 15.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.5087, allocations: 4 kB / 0.867 GB, free: 15.33 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.5087, allocations: 0 / 0.867 GB, free: 15.33 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001701/0.5089, allocations: 191.5 kB / 0.8671 GB, free: 15.13 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 3.884e-05/0.5089, allocations: 85.02 kB / 0.8672 GB, free: 15.03 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.105e-05/0.5089, allocations: 3.984 kB / 0.8672 GB, free: 15.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001002/0.509, allocations: 12 kB / 0.8672 GB, free: 15.01 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.978e-05/0.5091, allocations: 7.984 kB / 0.8672 GB, free: 15 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.322e-05/0.5091, allocations: 7.938 kB / 0.8673 GB, free: 15 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 3.846e-05/0.5092, allocations: 87.03 kB / 0.8673 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5092, allocations: 0 / 0.8673 GB, free: 14.91 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002256/0.5094, allocations: 16 kB / 0.8674 GB, free: 14.9 MB / 0.5417 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.338e-05/0.5095, allocations: 104.6 kB / 0.8675 GB, free: 14.79 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001474/0.5096, allocations: 107.3 kB / 0.8676 GB, free: 14.67 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.5097, allocations: 0 / 0.8676 GB, free: 14.67 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 6.918e-05/0.5097, allocations: 83.41 kB / 0.8676 GB, free: 14.58 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002035/0.5099, allocations: 19.98 kB / 0.8677 GB, free: 14.56 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002256/0.5102, allocations: 101.7 kB / 0.8678 GB, free: 14.44 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002277/0.5104, allocations: 0.6885 MB / 0.8684 GB, free: 13.72 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.156e-05/0.5105, allocations: 15.89 kB / 0.8684 GB, free: 13.71 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.369e-05/0.5105, allocations: 11.44 kB / 0.8684 GB, free: 13.7 MB / 0.5417 GB Notification: Performance of SimCode: time 2.51e-07/0.5105, allocations: 0 / 0.8684 GB, free: 13.7 MB / 0.5417 GB Notification: Performance of Templates: time 0.002388/0.5129, allocations: 0.7037 MB / 0.8691 GB, free: 13 MB / 0.5417 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)