Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.Controls.Discrete.Examples.BooleanDelay") translateModel(IDEAS.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.0009878/0.0009877, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.006338/0.006338, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.467/1.467, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7978/0.7978, allocations: 132.4 MB / 423.8 MB, free: 1.965 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003741/0.0003741, allocations: 6.219 kB / 0.504 GB, free: 3.922 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5749/0.5753, allocations: 81.57 MB / 0.5837 GB, free: 4.047 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.BooleanDelay): time 0.001999/0.5774, allocations: 1.142 MB / 0.5848 GB, free: 3.219 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008449/0.5783, allocations: 440.5 kB / 0.5852 GB, free: 2.91 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.93e-05/0.5783, allocations: 0 / 0.5852 GB, free: 2.91 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.917e-05/0.5783, allocations: 0.6094 kB / 0.5852 GB, free: 2.91 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001096/0.5785, allocations: 11.09 kB / 0.5852 GB, free: 2.902 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001946/0.5787, allocations: 18.94 kB / 0.5852 GB, free: 2.891 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001131/0.5788, allocations: 48.38 kB / 0.5853 GB, free: 2.867 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.5789, allocations: 9.266 kB / 0.5853 GB, free: 2.863 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.965e-05/0.579, allocations: 17.72 kB / 0.5853 GB, free: 2.855 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.378e-05/0.5791, allocations: 21.62 kB / 0.5853 GB, free: 2.844 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.964e-05/0.5791, allocations: 2.812 kB / 0.5853 GB, free: 2.844 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.281e-05/0.5791, allocations: 1.062 kB / 0.5853 GB, free: 2.844 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.067e-05/0.5792, allocations: 8.406 kB / 0.5853 GB, free: 2.84 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 6.387e-05/0.5792, allocations: 49.69 kB / 0.5854 GB, free: 2.793 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000122/0.5794, allocations: 32.09 kB / 0.5854 GB, free: 2.785 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.5794, allocations: 1.188 kB / 0.5854 GB, free: 2.785 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.5794, allocations: 0 / 0.5854 GB, free: 2.785 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.07e-06/0.5794, allocations: 0 / 0.5854 GB, free: 2.785 MB / 430.1 MB 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.0006519/0.5801, allocations: 395.3 kB / 0.5858 GB, free: 2.387 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.5801, allocations: 9.25 kB / 0.5858 GB, free: 2.387 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.383e-05/0.5802, allocations: 4.219 kB / 0.5858 GB, free: 2.387 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001326/0.5803, allocations: 173.2 kB / 0.586 GB, free: 2.184 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.404e-05/0.5803, allocations: 6.625 kB / 0.586 GB, free: 2.18 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.26e-05/0.5804, allocations: 3.422 kB / 0.586 GB, free: 2.18 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001428/0.5805, allocations: 62.97 kB / 0.586 GB, free: 2.129 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.5805, allocations: 0 / 0.586 GB, free: 2.129 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.466e-05/0.5805, allocations: 5.625 kB / 0.586 GB, free: 2.125 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.5806, allocations: 0.875 kB / 0.586 GB, free: 2.125 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.604e-05/0.5806, allocations: 16.45 kB / 0.5861 GB, free: 2.121 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004311/0.5811, allocations: 274.2 kB / 0.5863 GB, free: 1.836 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.952e-05/0.5812, allocations: 43.8 kB / 0.5864 GB, free: 1.801 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.446e-05/0.5812, allocations: 23.27 kB / 0.5864 GB, free: 1.785 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.5813, allocations: 0.875 kB / 0.5864 GB, free: 1.785 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002036/0.5815, allocations: 100.6 kB / 0.5865 GB, free: 1.695 MB / 430.1 MB Notification: Performance of pre-optimization done (n=9): time 1.463e-06/0.5815, allocations: 0.7812 kB / 0.5865 GB, free: 1.695 MB / 430.1 MB Notification: Performance of matching and sorting (n=9): time 0.000322/0.5818, allocations: 144.3 kB / 0.5866 GB, free: 1.602 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.823e-05/0.5819, allocations: 85.02 kB / 0.5867 GB, free: 1.504 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.686e-05/0.5819, allocations: 120.3 kB / 0.5868 GB, free: 1.391 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.333e-05/0.582, allocations: 31.61 kB / 0.5868 GB, free: 1.355 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.015e-05/0.582, allocations: 84.69 kB / 0.5869 GB, free: 1.27 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.989e-05/0.582, allocations: 16.73 kB / 0.5869 GB, free: 1.258 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.283e-05/0.5821, allocations: 20.31 kB / 0.587 GB, free: 1.238 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.598e-05/0.5821, allocations: 322.5 kB / 0.5873 GB, free: 0.918 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.802e-05/0.5822, allocations: 14.77 kB / 0.5873 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.136e-05/0.5822, allocations: 37.44 kB / 0.5873 GB, free: 0.8828 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001079/0.5824, allocations: 115 kB / 0.5874 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.5824, allocations: 0.7188 kB / 0.5874 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001643/0.5825, allocations: 121.8 kB / 0.5875 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.572e-05/0.5826, allocations: 33.61 kB / 0.5876 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.942e-06/0.5826, allocations: 0.7188 kB / 0.5876 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.956e-05/0.5826, allocations: 6.234 kB / 0.5876 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.441e-05/0.5827, allocations: 7.5 kB / 0.5876 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.5827, allocations: 1.219 kB / 0.5876 GB, free: 0.6484 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.848e-05/0.5828, allocations: 12.62 kB / 0.5876 GB, free: 0.6445 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.709e-06/0.5828, allocations: 3.562 kB / 0.5876 GB, free: 0.6445 MB / 430.1 MB 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.0001048/0.5829, allocations: 153.8 kB / 0.5877 GB, free: 500 kB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.883e-05/0.5829, allocations: 7.688 kB / 0.5878 GB, free: 496 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.7e-05/0.583, allocations: 10.59 kB / 0.5878 GB, free: 480 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.583, allocations: 5.609 kB / 0.5878 GB, free: 476 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.583, allocations: 8 kB / 0.5878 GB, free: 468 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.583, allocations: 1.547 kB / 0.5878 GB, free: 468 kB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004058/0.5834, allocations: 400.7 kB / 0.5882 GB, free: 92 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.5834, allocations: 0 / 0.5882 GB, free: 92 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.044e-05/0.5834, allocations: 1.359 kB / 0.5882 GB, free: 92 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.5835, allocations: 0.9062 kB / 0.5882 GB, free: 92 kB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/0.5835, allocations: 2.344 kB / 0.5882 GB, free: 92 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.5835, allocations: 1.141 kB / 0.5882 GB, free: 92 kB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.5835, allocations: 4.375 kB / 0.5882 GB, free: 88 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002836/0.5838, allocations: 241.6 kB / 0.5884 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.794e-05/0.5839, allocations: 86.92 kB / 0.5885 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.559e-05/0.5839, allocations: 6.672 kB / 0.5885 GB, free: 15.78 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.584, allocations: 10.64 kB / 0.5885 GB, free: 15.78 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.243e-05/0.5841, allocations: 10.7 kB / 0.5885 GB, free: 15.78 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.182e-05/0.5841, allocations: 4.141 kB / 0.5885 GB, free: 15.78 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.807e-05/0.5842, allocations: 91.89 kB / 0.5886 GB, free: 15.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5842, allocations: 0 / 0.5886 GB, free: 15.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002374/0.5844, allocations: 17.59 kB / 0.5886 GB, free: 15.69 MB / 446.1 MB 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.0001399/0.5846, allocations: 99.8 kB / 0.5887 GB, free: 15.61 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002231/0.5848, allocations: 113.5 kB / 0.5888 GB, free: 15.52 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.209e-06/0.5848, allocations: 4 kB / 0.5888 GB, free: 15.52 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001133/0.5849, allocations: 84.59 kB / 0.5889 GB, free: 15.45 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003243/0.5852, allocations: 19.14 kB / 0.5889 GB, free: 15.44 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004507/0.5857, allocations: 161.5 kB / 0.5891 GB, free: 15.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003354/0.5861, allocations: 0.6846 MB / 0.5897 GB, free: 14.61 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 3.203e-05/0.5861, allocations: 8.547 kB / 0.5898 GB, free: 14.61 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.561e-05/0.5861, allocations: 11.56 kB / 0.5898 GB, free: 14.6 MB / 446.1 MB Notification: Performance of SimCode: time 3e-07/0.5861, allocations: 0 / 0.5898 GB, free: 14.6 MB / 446.1 MB Notification: Performance of Templates: time 0.00343/0.5896, allocations: 0.7619 MB / 0.5905 GB, free: 14.51 MB / 446.1 MB make -j1 -f IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay.makefile (rm -f IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay.sim & ./IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1)