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.001236/0.001236, allocations: 106.8 kB / 15.99 MB, free: 5.891 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.001325/0.001325, allocations: 195.9 kB / 16.91 MB, free: 5.746 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.494/1.494, allocations: 222.9 MB / 240.6 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.031/1.031, allocations: 135.1 MB / 425.9 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00154/0.001541, allocations: 59.75 kB / 0.5055 GB, free: 5.664 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1925/0.1941, allocations: 80.92 MB / 0.5845 GB, free: 4.906 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.BooleanDelay): time 0.003856/0.198, allocations: 1.476 MB / 0.586 GB, free: 3.414 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009875/0.199, allocations: 431 kB / 0.5864 GB, free: 2.988 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.767e-05/0.1991, allocations: 3.938 kB / 0.5864 GB, free: 2.984 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.994e-05/0.1991, allocations: 0 / 0.5864 GB, free: 2.984 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.188e-05/0.1993, allocations: 11.92 kB / 0.5864 GB, free: 2.973 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001609/0.1994, allocations: 19.97 kB / 0.5864 GB, free: 2.953 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001213/0.1996, allocations: 51.8 kB / 0.5865 GB, free: 2.902 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.984e-05/0.1997, allocations: 8 kB / 0.5865 GB, free: 2.895 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.174e-05/0.1997, allocations: 27.86 kB / 0.5865 GB, free: 2.867 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.35e-05/0.1998, allocations: 15.92 kB / 0.5865 GB, free: 2.852 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.846e-05/0.1998, allocations: 4 kB / 0.5865 GB, free: 2.848 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.276e-05/0.1998, allocations: 4 kB / 0.5865 GB, free: 2.844 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.968e-05/0.1999, allocations: 11.98 kB / 0.5865 GB, free: 2.832 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.651e-05/0.1999, allocations: 19.86 kB / 0.5865 GB, free: 2.812 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.364e-05/0.2, allocations: 27.95 kB / 0.5866 GB, free: 2.785 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.217e-06/0.2, allocations: 0 / 0.5866 GB, free: 2.785 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2, allocations: 0 / 0.5866 GB, free: 2.785 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.247e-06/0.2001, allocations: 4 kB / 0.5866 GB, free: 2.781 MB / 494.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.000641/0.2007, allocations: 393.3 kB / 0.5869 GB, free: 2.344 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.2008, allocations: 12.03 kB / 0.587 GB, free: 2.332 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.791e-05/0.2008, allocations: 0.9375 kB / 0.587 GB, free: 2.332 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001532/0.201, allocations: 172.2 kB / 0.5871 GB, free: 2.125 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.201, allocations: 384 / 0.5871 GB, free: 2.125 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.906e-05/0.201, allocations: 12.3 kB / 0.5871 GB, free: 2.113 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000133/0.2011, allocations: 54 kB / 0.5872 GB, free: 2.055 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.2012, allocations: 4 kB / 0.5872 GB, free: 2.051 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.2012, allocations: 0 / 0.5872 GB, free: 2.051 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.2012, allocations: 4 kB / 0.5872 GB, free: 2.047 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.7e-05/0.2013, allocations: 19.98 kB / 0.5872 GB, free: 2.027 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004873/0.2017, allocations: 268.8 kB / 0.5875 GB, free: 1.715 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.844e-05/0.2018, allocations: 46.5 kB / 0.5875 GB, free: 1.66 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.932e-05/0.2019, allocations: 24.98 kB / 0.5875 GB, free: 1.633 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.2019, allocations: 0 / 0.5875 GB, free: 1.633 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002219/0.2021, allocations: 105 kB / 0.5876 GB, free: 1.512 MB / 494.1 MB Notification: Performance of pre-optimization done (n=9): time 6.211e-06/0.2022, allocations: 4 kB / 0.5876 GB, free: 1.508 MB / 494.1 MB Notification: Performance of matching and sorting (n=9): time 0.000295/0.2025, allocations: 143.2 kB / 0.5878 GB, free: 1.355 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.503e-05/0.2025, allocations: 77.11 kB / 0.5879 GB, free: 1.262 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.561e-05/0.2026, allocations: 117.9 kB / 0.588 GB, free: 1.137 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.67e-05/0.2026, allocations: 29.7 kB / 0.588 GB, free: 1.102 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.492e-05/0.2027, allocations: 92.2 kB / 0.5881 GB, free: 1.008 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.248e-05/0.2027, allocations: 19.72 kB / 0.5881 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.555e-05/0.2028, allocations: 25.7 kB / 0.5881 GB, free: 0.957 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.2029, allocations: 322.8 kB / 0.5884 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.147e-05/0.2029, allocations: 12 kB / 0.5884 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.852e-05/0.203, allocations: 42.5 kB / 0.5885 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.938e-05/0.2031, allocations: 110 kB / 0.5886 GB, free: 452 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2031, allocations: 0 / 0.5886 GB, free: 452 kB / 494.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001486/0.2033, allocations: 123.3 kB / 0.5887 GB, free: 316 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.36e-05/0.2033, allocations: 29.7 kB / 0.5887 GB, free: 280 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.2033, allocations: 0 / 0.5887 GB, free: 280 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.2033, allocations: 4 kB / 0.5887 GB, free: 276 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.683e-05/0.2034, allocations: 7.938 kB / 0.5887 GB, free: 268 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.009e-05/0.2034, allocations: 8.062 kB / 0.5888 GB, free: 260 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.784e-05/0.2035, allocations: 15.83 kB / 0.5888 GB, free: 244 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-06/0.2035, allocations: 4 kB / 0.5888 GB, free: 240 kB / 494.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.0001142/0.2036, allocations: 151.5 kB / 0.5889 GB, free: 72 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.53e-05/0.2036, allocations: 4 kB / 0.5889 GB, free: 68 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.005e-05/0.2037, allocations: 8.375 kB / 0.5889 GB, free: 52 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.2037, allocations: 0 / 0.5889 GB, free: 52 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.2037, allocations: 0 / 0.5889 GB, free: 52 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.2037, allocations: 0 / 0.5889 GB, free: 52 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005043/0.2042, allocations: 408.4 kB / 0.5893 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.2042, allocations: 4.062 kB / 0.5893 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.067e-06/0.2042, allocations: 7.938 kB / 0.5893 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.2043, allocations: 0 / 0.5893 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.307e-05/0.2043, allocations: 3.984 kB / 0.5893 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.2043, allocations: 3.938 kB / 0.5893 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.2043, allocations: 0 / 0.5893 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002077/0.2045, allocations: 237.1 kB / 0.5896 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.036e-05/0.2045, allocations: 85.02 kB / 0.5896 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.95e-05/0.2046, allocations: 0 / 0.5896 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.962e-05/0.2047, allocations: 11.98 kB / 0.5897 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.069e-05/0.2047, allocations: 19.91 kB / 0.5897 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.551e-05/0.2048, allocations: 0 / 0.5897 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.993e-05/0.2048, allocations: 91.22 kB / 0.5898 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2048, allocations: 0 / 0.5898 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002248/0.205, allocations: 12 kB / 0.5898 GB, free: 15.08 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 0.0001055/0.2052, allocations: 111.2 kB / 0.5899 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001843/0.2053, allocations: 115.3 kB / 0.59 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2054, allocations: 0 / 0.59 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 8.27e-05/0.2054, allocations: 87.39 kB / 0.5901 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002912/0.2057, allocations: 18.33 kB / 0.5901 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003664/0.2061, allocations: 206.6 kB / 0.5903 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002477/0.2064, allocations: 0.6846 MB / 0.591 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.841e-05/0.2064, allocations: 11.44 kB / 0.591 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of SimCode: time 2.81e-07/0.2064, allocations: 0 / 0.591 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of Templates: time 0.002357/0.2088, allocations: 0.9071 MB / 0.5919 GB, free: 12.88 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)