Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booleanTable.index|booleanTable.nextTime|booleanTable.y|onDelay1.delaySignal|onDelay1.t_next|onDelay1.u|onDelay2.delaySignal|onDelay2.t_next|onDelay2.u|onDelay3.delaySignal|onDelay3.t_next|onDelay3.u",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00463/0.004637, allocations: 362.5 kB / 15.95 MB, free: 6.203 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 4.68/4.68, allocations: 388.9 MB / 405.6 MB, free: 10.32 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003517/0.003517, allocations: 234.9 kB / 451 MB, free: 145.1 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5264/0.5264, allocations: 80.03 MB / 0.5627 GB, free: 19.86 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000475/0.0004756, allocations: 15.98 kB / 0.6265 GB, free: 96.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1097, allocations: 54.86 MB / 0.6801 GB, free: 41.68 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4839/0.5937, allocations: 81.02 MB / 0.7592 GB, free: 4.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002207/0.594, allocations: 66.03 kB / 0.7592 GB, free: 4.238 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008669/0.6027, allocations: 1.985 MB / 0.7612 GB, free: 2.484 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.246e-06/0.6027, allocations: 0 / 0.7612 GB, free: 2.484 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.6027, allocations: 7.938 kB / 0.7612 GB, free: 2.477 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0006392/0.6034, allocations: 0.5342 MB / 0.7617 GB, free: 1.879 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.6035, allocations: 8.031 kB / 0.7617 GB, free: 1.871 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.584e-05/0.6035, allocations: 26.78 kB / 0.7617 GB, free: 1.848 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000109/0.6037, allocations: 174.7 kB / 0.7619 GB, free: 1.641 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001039/0.6038, allocations: 92.67 kB / 0.762 GB, free: 1.535 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.83e-05/0.6038, allocations: 12 kB / 0.762 GB, free: 1.523 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003656/0.6042, allocations: 143.4 kB / 0.7622 GB, free: 1.391 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.6042, allocations: 0 / 0.7622 GB, free: 1.391 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.574e-05/0.6043, allocations: 7.625 kB / 0.7622 GB, free: 1.387 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.6043, allocations: 3.984 kB / 0.7622 GB, free: 1.383 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003014/0.6046, allocations: 91.47 kB / 0.7622 GB, free: 1.309 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008718/0.6055, allocations: 0.5224 MB / 0.7628 GB, free: 0.7695 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003292/0.6058, allocations: 153.3 kB / 0.7629 GB, free: 0.6289 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002363/0.6061, allocations: 108.8 kB / 0.763 GB, free: 0.543 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.131e-05/0.6061, allocations: 4 kB / 0.763 GB, free: 0.5391 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004758/0.6066, allocations: 461.8 kB / 0.7635 GB, free: 40 kB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 2.254e-06/0.6066, allocations: 0 / 0.7635 GB, free: 40 kB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.001278/0.6079, allocations: 492.1 kB / 0.7639 GB, free: 15.62 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001514/0.6081, allocations: 247.2 kB / 0.7642 GB, free: 15.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001628/0.6083, allocations: 137.4 kB / 0.7643 GB, free: 15.19 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.231e-05/0.6083, allocations: 33.64 kB / 0.7643 GB, free: 15.16 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.411e-05/0.6084, allocations: 96.31 kB / 0.7644 GB, free: 15.07 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.885e-05/0.6085, allocations: 38.95 kB / 0.7645 GB, free: 15.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.854e-05/0.6085, allocations: 11.75 kB / 0.7645 GB, free: 15.03 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.6087, allocations: 326.5 kB / 0.7648 GB, free: 14.7 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002156/0.6089, allocations: 55.09 kB / 0.7648 GB, free: 14.67 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002644/0.6092, allocations: 124.5 kB / 0.7649 GB, free: 14.54 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003618/0.6096, allocations: 199.6 kB / 0.7651 GB, free: 14.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.6096, allocations: 0 / 0.7651 GB, free: 14.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0009061/0.6105, allocations: 419.3 kB / 0.7655 GB, free: 13.95 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001303/0.6107, allocations: 159.2 kB / 0.7657 GB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.6107, allocations: 0 / 0.7657 GB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/0.6107, allocations: 4 kB / 0.7657 GB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001049/0.6109, allocations: 11.94 kB / 0.7657 GB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.486e-05/0.6109, allocations: 7.984 kB / 0.7657 GB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000198/0.6111, allocations: 27.34 kB / 0.7657 GB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.777e-05/0.6111, allocations: 12 kB / 0.7657 GB, free: 13.71 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$whenCondition6,$whenCondition7,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition4,$whenCondition5,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next,$whenCondition1,$whenCondition2,$whenCondition3,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,$PRE.booleanTable.y,booleanTable.y,$PRE.booleanTable.nextTime,booleanTable.nextTime,$PRE.booleanTable.index,booleanTable.index) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 5 * 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 0.0003184/0.6115, allocations: 277.3 kB / 0.766 GB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.599e-05/0.6116, allocations: 26.8 kB / 0.766 GB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.837e-05/0.6116, allocations: 7.75 kB / 0.766 GB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/0.6116, allocations: 4 kB / 0.766 GB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.6116, allocations: 0 / 0.766 GB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.385e-06/0.6117, allocations: 7.984 kB / 0.7661 GB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001031/0.6127, allocations: 0.5606 MB / 0.7666 GB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/0.6127, allocations: 0 / 0.7666 GB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.566e-05/0.6128, allocations: 4 kB / 0.7666 GB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.164e-06/0.6128, allocations: 0 / 0.7666 GB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.55e-05/0.6128, allocations: 14.67 kB / 0.7666 GB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.6129, allocations: 0 / 0.7666 GB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/0.6129, allocations: 4 kB / 0.7666 GB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.6139, allocations: 0.5588 MB / 0.7672 GB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.058e-05/0.6141, allocations: 88.97 kB / 0.7673 GB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.03e-05/0.6141, allocations: 15.75 kB / 0.7673 GB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002259/0.6144, allocations: 23.98 kB / 0.7673 GB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.6145, allocations: 11.73 kB / 0.7673 GB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.21e-05/0.6145, allocations: 19.67 kB / 0.7673 GB, free: 12.12 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.581e-05/0.6147, allocations: 98.7 kB / 0.7674 GB, free: 12.03 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.008e-06/0.6147, allocations: 0 / 0.7674 GB, free: 12.03 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000536/0.6152, allocations: 75.67 kB / 0.7675 GB, free: 11.96 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 22 (onDelay1.u,$whenCondition1,$whenCondition2,$whenCondition3,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition4,$whenCondition5,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next,$whenCondition6,$whenCondition7,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next) * Number of discrete states: 16 (onDelay2.t_next,onDelay2.delaySignal,$whenCondition7,$whenCondition6,onDelay3.t_next,onDelay3.delaySignal,$whenCondition5,$whenCondition4,booleanTable.y,booleanTable.nextTime,booleanTable.index,$whenCondition3,onDelay1.t_next,onDelay1.delaySignal,$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * 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 Backend phase and start with SimCode phase: time 0.0002845/0.6155, allocations: 131.3 kB / 0.7676 GB, free: 11.83 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009183/0.6164, allocations: 0.497 MB / 0.7681 GB, free: 11.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.6165, allocations: 0 / 0.7681 GB, free: 11.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006096/0.6171, allocations: 418.2 kB / 0.7685 GB, free: 10.97 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003801/0.6175, allocations: 23.53 kB / 0.7685 GB, free: 10.95 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008977/0.6184, allocations: 327.1 kB / 0.7688 GB, free: 10.63 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003067/0.6187, allocations: 0.7122 MB / 0.7695 GB, free: 9.891 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.623e-05/0.6188, allocations: 8.422 kB / 0.7695 GB, free: 9.883 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.273e-05/0.6189, allocations: 11.44 kB / 0.7695 GB, free: 9.871 MB / 362.7 MB Notification: Performance of SimCode: time 1.162e-06/0.6189, allocations: 0 / 0.7695 GB, free: 9.871 MB / 362.7 MB Notification: Performance of Templates: time 0.006917/0.6258, allocations: 1.751 MB / 0.7713 GB, free: 8.152 MB / 362.7 MB