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.00158/0.00158, allocations: 105.4 kB / 16.27 MB, free: 6.414 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.001535/0.001536, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.446/1.446, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8732/0.8732, allocations: 135.2 MB / 426.2 MB, free: 4.184 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002019/0.002019, allocations: 59.91 kB / 0.506 GB, free: 8.402 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3536, allocations: 80.93 MB / 0.5851 GB, free: 25.35 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Controls.Discrete.Examples.BooleanDelay): time 0.002734/0.3564, allocations: 1.415 MB / 0.5864 GB, free: 24.25 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006666/0.3571, allocations: 433.3 kB / 0.5868 GB, free: 23.92 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.878e-05/0.3571, allocations: 0 / 0.5868 GB, free: 23.92 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 2.041e-05/0.3572, allocations: 8.703 kB / 0.5869 GB, free: 23.91 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 5.698e-05/0.3572, allocations: 6.156 kB / 0.5869 GB, free: 23.91 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001128/0.3573, allocations: 24.11 kB / 0.5869 GB, free: 23.89 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000101/0.3574, allocations: 53.05 kB / 0.5869 GB, free: 23.86 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.564e-05/0.3575, allocations: 12.84 kB / 0.5869 GB, free: 23.85 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.303e-05/0.3576, allocations: 17.59 kB / 0.587 GB, free: 23.84 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.841e-05/0.3576, allocations: 20.91 kB / 0.587 GB, free: 23.83 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.483e-05/0.3577, allocations: 4.344 kB / 0.587 GB, free: 23.83 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.092e-05/0.3577, allocations: 4.219 kB / 0.587 GB, free: 23.83 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.761e-05/0.3577, allocations: 9.094 kB / 0.587 GB, free: 23.82 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 4.07e-05/0.3577, allocations: 28.2 kB / 0.587 GB, free: 23.8 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 9.076e-05/0.3578, allocations: 38.62 kB / 0.5871 GB, free: 23.77 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.3578, allocations: 1.156 kB / 0.5871 GB, free: 23.77 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3579, allocations: 0.7188 kB / 0.5871 GB, free: 23.77 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.3579, allocations: 0 / 0.5871 GB, free: 23.77 MB / 446.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.0005329/0.3584, allocations: 399.8 kB / 0.5874 GB, free: 23.36 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/0.3584, allocations: 10.45 kB / 0.5875 GB, free: 23.36 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.929e-05/0.3585, allocations: 4.531 kB / 0.5875 GB, free: 23.36 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.952e-05/0.3586, allocations: 167.4 kB / 0.5876 GB, free: 23.16 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.075e-05/0.3586, allocations: 11.17 kB / 0.5876 GB, free: 23.15 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.469e-05/0.3586, allocations: 3.094 kB / 0.5876 GB, free: 23.15 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001047/0.3587, allocations: 54.25 kB / 0.5877 GB, free: 23.11 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.467e-06/0.3588, allocations: 0 / 0.5877 GB, free: 23.11 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.3588, allocations: 3.219 kB / 0.5877 GB, free: 23.11 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.3588, allocations: 0 / 0.5877 GB, free: 23.11 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.111e-05/0.3588, allocations: 22.2 kB / 0.5877 GB, free: 23.09 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003163/0.3592, allocations: 273.2 kB / 0.588 GB, free: 22.79 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.55e-05/0.3592, allocations: 44.22 kB / 0.588 GB, free: 22.76 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.237e-05/0.3593, allocations: 24.95 kB / 0.588 GB, free: 22.74 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.489e-05/0.3593, allocations: 1.172 kB / 0.588 GB, free: 22.74 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001768/0.3595, allocations: 112.5 kB / 0.5881 GB, free: 22.63 MB / 446.1 MB Notification: Performance of pre-optimization done (n=9): time 1.392e-06/0.3595, allocations: 0 / 0.5881 GB, free: 22.63 MB / 446.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002494/0.3597, allocations: 140.1 kB / 0.5883 GB, free: 22.53 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.736e-05/0.3598, allocations: 79.77 kB / 0.5884 GB, free: 22.44 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.898e-05/0.3599, allocations: 114.4 kB / 0.5885 GB, free: 22.33 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.048e-05/0.3599, allocations: 26.95 kB / 0.5885 GB, free: 22.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.92e-05/0.3599, allocations: 85.23 kB / 0.5886 GB, free: 22.21 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.797e-05/0.3599, allocations: 25.19 kB / 0.5886 GB, free: 22.19 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.644e-05/0.36, allocations: 26.5 kB / 0.5886 GB, free: 22.17 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.637e-05/0.36, allocations: 323.8 kB / 0.5889 GB, free: 21.84 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.01e-05/0.3601, allocations: 14.06 kB / 0.5889 GB, free: 21.84 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.764e-05/0.3601, allocations: 35.69 kB / 0.589 GB, free: 21.81 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.94e-05/0.3602, allocations: 117.9 kB / 0.5891 GB, free: 21.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.3602, allocations: 1.312 kB / 0.5891 GB, free: 21.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001334/0.3604, allocations: 116.8 kB / 0.5892 GB, free: 21.61 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.538e-05/0.3604, allocations: 32.36 kB / 0.5892 GB, free: 21.58 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.3604, allocations: 1.312 kB / 0.5892 GB, free: 21.58 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.3604, allocations: 2.5 kB / 0.5892 GB, free: 21.58 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.126e-05/0.3605, allocations: 3 kB / 0.5892 GB, free: 21.58 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.3605, allocations: 6.328 kB / 0.5892 GB, free: 21.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.092e-05/0.3605, allocations: 12.62 kB / 0.5893 GB, free: 21.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/0.3606, allocations: 4.375 kB / 0.5893 GB, free: 21.57 MB / 446.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 8.239e-05/0.3607, allocations: 164.1 kB / 0.5894 GB, free: 21.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.516e-05/0.3607, allocations: 3.969 kB / 0.5894 GB, free: 21.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.616e-05/0.3607, allocations: 11.62 kB / 0.5894 GB, free: 21.39 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-06/0.3607, allocations: 1.312 kB / 0.5894 GB, free: 21.39 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.3607, allocations: 4.062 kB / 0.5894 GB, free: 21.39 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.3607, allocations: 1.281 kB / 0.5894 GB, free: 21.39 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003076/0.361, allocations: 408.2 kB / 0.5898 GB, free: 20.99 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-06/0.3611, allocations: 0 / 0.5898 GB, free: 20.99 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.127e-06/0.3611, allocations: 1.625 kB / 0.5898 GB, free: 20.99 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.3611, allocations: 8.516 kB / 0.5898 GB, free: 20.98 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.3611, allocations: 2.75 kB / 0.5898 GB, free: 20.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.3611, allocations: 2.531 kB / 0.5898 GB, free: 20.98 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3611, allocations: 1.344 kB / 0.5898 GB, free: 20.98 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001691/0.3613, allocations: 227.5 kB / 0.5901 GB, free: 20.79 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.348e-05/0.3613, allocations: 87.61 kB / 0.5901 GB, free: 20.68 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.059e-05/0.3613, allocations: 3.062 kB / 0.5901 GB, free: 20.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.896e-05/0.3614, allocations: 9.453 kB / 0.5902 GB, free: 20.68 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.288e-05/0.3615, allocations: 12.36 kB / 0.5902 GB, free: 20.67 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.52e-05/0.3615, allocations: 7.75 kB / 0.5902 GB, free: 20.67 MB / 446.1 MB Notification: Performance of sorting global known variables: time 3.096e-05/0.3616, allocations: 82.23 kB / 0.5903 GB, free: 20.59 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3616, allocations: 0 / 0.5903 GB, free: 20.59 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002278/0.3618, allocations: 17.47 kB / 0.5903 GB, free: 20.59 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 8.556e-05/0.3619, allocations: 105.6 kB / 0.5904 GB, free: 20.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000178/0.3621, allocations: 115.9 kB / 0.5905 GB, free: 20.41 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3621, allocations: 0 / 0.5905 GB, free: 20.41 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 7.44e-05/0.3622, allocations: 98.17 kB / 0.5906 GB, free: 20.32 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002744/0.3624, allocations: 21.69 kB / 0.5906 GB, free: 20.32 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003338/0.3628, allocations: 175 kB / 0.5908 GB, free: 20.15 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001181/0.3629, allocations: 0.6881 MB / 0.5914 GB, free: 19.45 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.646e-05/0.3629, allocations: 16.09 kB / 0.5915 GB, free: 19.44 MB / 446.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3629, allocations: 0.7188 kB / 0.5915 GB, free: 19.44 MB / 446.1 MB Notification: Performance of Templates: time 0.002401/0.3654, allocations: 0.8979 MB / 0.5923 GB, free: 18.66 MB / 446.1 MB 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)