Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Controls.Discrete.Examples.BooleanDelay") translateModel(IDEAS.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.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.009438/0.009438, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.002196/0.002196, allocations: 193.2 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.527/1.527, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.008/1.008, allocations: 135.1 MB / 425.7 MB, free: 12.08 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 59.91 kB / 0.5856 GB, free: 3.434 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5879/0.5893, allocations: 80.92 MB / 0.6646 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.BooleanDelay): time 0.002347/0.5917, allocations: 1.427 MB / 0.666 GB, free: 6.719 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0006739/0.5923, allocations: 438.9 kB / 0.6664 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.829e-05/0.5924, allocations: 0 / 0.6664 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.958e-05/0.5924, allocations: 3.938 kB / 0.6664 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 8.465e-05/0.5925, allocations: 9.141 kB / 0.6664 GB, free: 6.367 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001686/0.5927, allocations: 23.55 kB / 0.6664 GB, free: 6.348 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001248/0.5928, allocations: 48.95 kB / 0.6665 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.534e-05/0.5929, allocations: 12 kB / 0.6665 GB, free: 6.312 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.78e-05/0.593, allocations: 19.47 kB / 0.6665 GB, free: 6.301 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.649e-05/0.5931, allocations: 25.97 kB / 0.6666 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.035e-05/0.5931, allocations: 3.375 kB / 0.6666 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 1.273e-05/0.5931, allocations: 3.875 kB / 0.6666 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 2.501e-05/0.5932, allocations: 10.59 kB / 0.6666 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.425e-05/0.5932, allocations: 21.42 kB / 0.6666 GB, free: 6.258 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001165/0.5933, allocations: 46.17 kB / 0.6666 GB, free: 6.227 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.5934, allocations: 0 / 0.6666 GB, free: 6.227 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.963e-06/0.5934, allocations: 0 / 0.6666 GB, free: 6.227 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.621e-06/0.5934, allocations: 0 / 0.6666 GB, free: 6.227 MB / 0.4981 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.0005526/0.5939, allocations: 403.7 kB / 0.667 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.594, allocations: 9.781 kB / 0.667 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.461e-05/0.594, allocations: 3.594 kB / 0.667 GB, free: 5.805 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.217e-05/0.5941, allocations: 168.2 kB / 0.6672 GB, free: 5.605 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.49e-05/0.5941, allocations: 5.641 kB / 0.6672 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.112e-05/0.5942, allocations: 2.781 kB / 0.6672 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001161/0.5943, allocations: 58.53 kB / 0.6673 GB, free: 5.551 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.5943, allocations: 4 kB / 0.6673 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.5943, allocations: 0 / 0.6673 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.5943, allocations: 1.219 kB / 0.6673 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.546e-05/0.5944, allocations: 17.52 kB / 0.6673 GB, free: 5.539 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003425/0.5947, allocations: 273.3 kB / 0.6675 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 7.96e-05/0.5948, allocations: 44.06 kB / 0.6676 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.381e-05/0.5949, allocations: 17.92 kB / 0.6676 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.981e-05/0.5949, allocations: 13.12 kB / 0.6676 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001616/0.595, allocations: 106.2 kB / 0.6677 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=9): time 1.403e-06/0.5951, allocations: 1.406 kB / 0.6677 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of matching and sorting (n=9): time 0.0002676/0.5953, allocations: 140.6 kB / 0.6678 GB, free: 4.973 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.064e-05/0.5954, allocations: 78.64 kB / 0.6679 GB, free: 4.879 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.469e-05/0.5954, allocations: 112.2 kB / 0.668 GB, free: 4.77 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.161e-05/0.5955, allocations: 26.86 kB / 0.6681 GB, free: 4.738 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.458e-05/0.5955, allocations: 93.91 kB / 0.6681 GB, free: 4.645 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.792e-05/0.5955, allocations: 14.64 kB / 0.6682 GB, free: 4.633 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.916e-05/0.5956, allocations: 30.86 kB / 0.6682 GB, free: 4.605 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.194e-05/0.5956, allocations: 328.3 kB / 0.6685 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.339e-05/0.5957, allocations: 12.56 kB / 0.6685 GB, free: 4.273 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.337e-05/0.5957, allocations: 42.38 kB / 0.6686 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.441e-05/0.5958, allocations: 109.2 kB / 0.6687 GB, free: 4.129 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.5958, allocations: 3.984 kB / 0.6687 GB, free: 4.125 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001403/0.596, allocations: 126.5 kB / 0.6688 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.05e-05/0.596, allocations: 31.39 kB / 0.6688 GB, free: 4 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.596, allocations: 1.25 kB / 0.6688 GB, free: 4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.596, allocations: 1 kB / 0.6688 GB, free: 4 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.551e-05/0.5961, allocations: 6.562 kB / 0.6688 GB, free: 3.996 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.5961, allocations: 6.375 kB / 0.6688 GB, free: 3.992 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.165e-05/0.5962, allocations: 11.89 kB / 0.6688 GB, free: 3.984 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.706e-06/0.5962, allocations: 4.062 kB / 0.6688 GB, free: 3.984 MB / 0.4981 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 7.781e-05/0.5962, allocations: 153.4 kB / 0.669 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.573e-05/0.5963, allocations: 8.078 kB / 0.669 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.549e-05/0.5963, allocations: 9.688 kB / 0.669 GB, free: 3.816 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.5963, allocations: 1.312 kB / 0.669 GB, free: 3.816 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.5963, allocations: 0 / 0.669 GB, free: 3.816 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.5963, allocations: 1.094 kB / 0.669 GB, free: 3.816 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003036/0.5966, allocations: 407.7 kB / 0.6694 GB, free: 3.418 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.5966, allocations: 4.062 kB / 0.6694 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.416e-06/0.5967, allocations: 1.281 kB / 0.6694 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.5967, allocations: 0 / 0.6694 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.17e-05/0.5967, allocations: 6.766 kB / 0.6694 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.5967, allocations: 0 / 0.6694 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.5967, allocations: 1.375 kB / 0.6694 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000173/0.5969, allocations: 240 kB / 0.6696 GB, free: 3.203 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.531e-05/0.5969, allocations: 83.45 kB / 0.6697 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.051e-05/0.5969, allocations: 1.656 kB / 0.6697 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001106/0.597, allocations: 9.734 kB / 0.6697 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.491e-05/0.5971, allocations: 14.86 kB / 0.6697 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.685e-05/0.5971, allocations: 7.312 kB / 0.6697 GB, free: 3.086 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.057e-05/0.5972, allocations: 85.34 kB / 0.6698 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5972, allocations: 0 / 0.6698 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002345/0.5974, allocations: 14.03 kB / 0.6698 GB, free: 3.008 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 8.239e-05/0.5975, allocations: 108.9 kB / 0.6699 GB, free: 2.91 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001602/0.5977, allocations: 115.6 kB / 0.6701 GB, free: 2.82 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.5977, allocations: 1.719 kB / 0.6701 GB, free: 2.82 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 7.444e-05/0.5977, allocations: 88.39 kB / 0.6701 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.598, allocations: 15.78 kB / 0.6702 GB, free: 2.734 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003244/0.5984, allocations: 159.4 kB / 0.6703 GB, free: 2.59 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001439/0.5985, allocations: 0.6831 MB / 0.671 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.848e-05/0.5986, allocations: 7.281 kB / 0.671 GB, free: 1.887 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.957e-05/0.5986, allocations: 14.92 kB / 0.671 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of SimCode: time 2.7e-07/0.5986, allocations: 0 / 0.671 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of Templates: time 0.003012/0.6016, allocations: 0.8721 MB / 0.6718 GB, free: 1.434 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f IDEAS_dev_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo IDEAS_dev_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/IDEAS_dev_IDEAS.Controls.Discrete.Examples.BooleanDelay.sim & ./IDEAS_dev_IDEAS.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)