Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.OnDelay.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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.1_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.003778/0.003784, allocations: 350 kB / 15.94 MB, free: 6.219 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.816/3.816, allocations: 341.5 MB / 358.2 MB, free: 12.62 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003588/0.003588, allocations: 226.1 kB / 397.9 MB, free: 4.969 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.6409/0.6409, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007054/0.000706, allocations: 12 kB / 0.5592 GB, free: 53.48 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1253, allocations: 48.7 MB / 0.6067 GB, free: 4.672 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4714/0.5967, allocations: 74.64 MB / 0.6796 GB, free: 38.13 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/0.597, allocations: 67.97 kB / 0.6797 GB, free: 38.06 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008678/0.6057, allocations: 1.975 MB / 0.6816 GB, free: 36.13 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.6058, allocations: 0 / 0.6816 GB, free: 36.13 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.6058, allocations: 0 / 0.6816 GB, free: 36.13 MB / 362.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.0006265/0.6064, allocations: 0.5338 MB / 0.6821 GB, free: 35.53 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.6065, allocations: 15.16 kB / 0.6821 GB, free: 35.52 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.027e-05/0.6066, allocations: 21.06 kB / 0.6822 GB, free: 35.5 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001001/0.6067, allocations: 178.8 kB / 0.6823 GB, free: 35.29 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/0.6068, allocations: 97.05 kB / 0.6824 GB, free: 35.17 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.295e-05/0.6069, allocations: 16 kB / 0.6824 GB, free: 35.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003669/0.6072, allocations: 135 kB / 0.6826 GB, free: 35.01 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.6073, allocations: 0 / 0.6826 GB, free: 35.01 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.709e-05/0.6073, allocations: 12 kB / 0.6826 GB, free: 35 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.103e-06/0.6073, allocations: 3.469 kB / 0.6826 GB, free: 35 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002962/0.6076, allocations: 84.56 kB / 0.6827 GB, free: 34.92 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007826/0.6084, allocations: 0.5339 MB / 0.6832 GB, free: 34.33 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003532/0.6088, allocations: 150.5 kB / 0.6833 GB, free: 34.16 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002287/0.609, allocations: 105 kB / 0.6834 GB, free: 34.05 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.004e-05/0.6091, allocations: 4 kB / 0.6834 GB, free: 34.05 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004734/0.6096, allocations: 466.3 kB / 0.6839 GB, free: 33.51 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 3.246e-06/0.6096, allocations: 0 / 0.6839 GB, free: 33.51 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.001108/0.6107, allocations: 476.9 kB / 0.6843 GB, free: 33.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.618e-05/0.6108, allocations: 247.3 kB / 0.6846 GB, free: 32.72 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/0.611, allocations: 137.7 kB / 0.6847 GB, free: 32.58 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.25e-05/0.611, allocations: 41.69 kB / 0.6847 GB, free: 32.53 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.057e-05/0.6111, allocations: 92.72 kB / 0.6848 GB, free: 32.44 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.263e-05/0.6111, allocations: 48.19 kB / 0.6849 GB, free: 32.39 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.59e-05/0.6112, allocations: 4 kB / 0.6849 GB, free: 32.39 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.202e-05/0.6112, allocations: 329.8 kB / 0.6852 GB, free: 32.06 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001889/0.6114, allocations: 55.97 kB / 0.6852 GB, free: 32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002215/0.6117, allocations: 122.5 kB / 0.6854 GB, free: 31.86 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002635/0.612, allocations: 208.2 kB / 0.6856 GB, free: 31.63 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.612, allocations: 0 / 0.6856 GB, free: 31.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007384/0.6127, allocations: 411.1 kB / 0.686 GB, free: 31.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.899e-05/0.6128, allocations: 152.5 kB / 0.6861 GB, free: 31.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.6129, allocations: 0 / 0.6861 GB, free: 31.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.187e-05/0.6129, allocations: 10.95 kB / 0.6861 GB, free: 31.01 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.299e-05/0.613, allocations: 8 kB / 0.6861 GB, free: 31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.232e-05/0.613, allocations: 14.84 kB / 0.6861 GB, free: 30.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001839/0.6132, allocations: 27.78 kB / 0.6862 GB, free: 30.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.372e-05/0.6133, allocations: 16 kB / 0.6862 GB, free: 30.95 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.0002355/0.6135, allocations: 271.6 kB / 0.6864 GB, free: 30.66 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.254e-05/0.6136, allocations: 15.91 kB / 0.6864 GB, free: 30.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.616e-05/0.6136, allocations: 16.36 kB / 0.6865 GB, free: 30.63 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.6136, allocations: 0 / 0.6865 GB, free: 30.63 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.6136, allocations: 4 kB / 0.6865 GB, free: 30.62 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.6137, allocations: 3.406 kB / 0.6865 GB, free: 30.62 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007623/0.6144, allocations: 0.5642 MB / 0.687 GB, free: 29.99 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.6145, allocations: 0 / 0.687 GB, free: 29.99 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.016e-05/0.6145, allocations: 3.938 kB / 0.687 GB, free: 29.99 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.143e-06/0.6145, allocations: 6.859 kB / 0.687 GB, free: 29.98 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.522e-05/0.6146, allocations: 12 kB / 0.687 GB, free: 29.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.6146, allocations: 0 / 0.687 GB, free: 29.97 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.6146, allocations: 3.953 kB / 0.687 GB, free: 29.97 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00087/0.6155, allocations: 0.5562 MB / 0.6876 GB, free: 29.37 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.23e-05/0.6155, allocations: 85.02 kB / 0.6877 GB, free: 29.27 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.384e-05/0.6156, allocations: 16.86 kB / 0.6877 GB, free: 29.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002136/0.6158, allocations: 18.19 kB / 0.6877 GB, free: 29.24 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.6159, allocations: 23.92 kB / 0.6877 GB, free: 29.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.355e-05/0.616, allocations: 12 kB / 0.6877 GB, free: 29.2 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.575e-05/0.6161, allocations: 99.97 kB / 0.6878 GB, free: 29.11 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6161, allocations: 0.75 kB / 0.6878 GB, free: 29.11 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005202/0.6166, allocations: 67.98 kB / 0.6879 GB, free: 29.04 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.0002448/0.6169, allocations: 140.4 kB / 0.688 GB, free: 28.89 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007828/0.6177, allocations: 0.5 MB / 0.6885 GB, free: 28.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.6177, allocations: 0.6875 kB / 0.6885 GB, free: 28.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004446/0.6182, allocations: 415.6 kB / 0.6889 GB, free: 27.88 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003643/0.6185, allocations: 23.8 kB / 0.6889 GB, free: 27.86 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007649/0.6193, allocations: 325.3 kB / 0.6892 GB, free: 27.52 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001664/0.6195, allocations: 0.7138 MB / 0.6899 GB, free: 26.78 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.232e-05/0.6196, allocations: 1.156 kB / 0.6899 GB, free: 26.78 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.662e-05/0.6196, allocations: 15.44 kB / 0.69 GB, free: 26.77 MB / 362.7 MB Notification: Performance of SimCode: time 1.163e-06/0.6196, allocations: 1.062 kB / 0.69 GB, free: 26.77 MB / 362.7 MB Notification: Performance of Templates: time 0.006343/0.626, allocations: 1.742 MB / 0.6917 GB, free: 25.17 MB / 362.7 MB