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.002716/0.00272, allocations: 362.6 kB / 15.96 MB, free: 6.199 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 3.908/3.908, allocations: 388.9 MB / 405.6 MB, free: 10.23 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.005142/0.005142, allocations: 228.2 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.6234/0.6234, allocations: 80.03 MB / 0.5627 GB, free: 19.84 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006908/0.0006911, allocations: 8 kB / 0.6265 GB, free: 96.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1318, allocations: 54.87 MB / 0.6801 GB, free: 41.66 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002463/0.1344, allocations: 1.197 MB / 0.6813 GB, free: 40.44 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001516/0.1359, allocations: 0.5509 MB / 0.6818 GB, free: 39.89 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.264e-05/0.1361, allocations: 0 / 0.6818 GB, free: 39.89 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 8.179e-05/0.1362, allocations: 3.938 kB / 0.6818 GB, free: 39.88 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 9.995e-05/0.1363, allocations: 11.92 kB / 0.6818 GB, free: 39.87 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006845/0.137, allocations: 87.88 kB / 0.6819 GB, free: 39.79 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002236/0.1372, allocations: 123.7 kB / 0.682 GB, free: 39.66 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001174/0.1374, allocations: 16.22 kB / 0.682 GB, free: 39.65 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.909e-05/0.1375, allocations: 43.89 kB / 0.6821 GB, free: 39.61 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001367/0.1376, allocations: 55.75 kB / 0.6821 GB, free: 39.55 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.092e-05/0.1377, allocations: 8 kB / 0.6821 GB, free: 39.54 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001913/0.1379, allocations: 43.91 kB / 0.6822 GB, free: 39.5 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.575e-05/0.138, allocations: 23.97 kB / 0.6822 GB, free: 39.48 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 8.721e-05/0.1381, allocations: 53.64 kB / 0.6823 GB, free: 39.42 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002376/0.1383, allocations: 96.03 kB / 0.6823 GB, free: 39.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.066e-06/0.1384, allocations: 4 kB / 0.6824 GB, free: 39.32 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1384, allocations: 0 / 0.6824 GB, free: 39.32 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.062e-06/0.1384, allocations: 0 / 0.6824 GB, free: 39.32 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.0008748/0.1393, allocations: 0.5417 MB / 0.6829 GB, free: 38.7 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.634e-05/0.1394, allocations: 8.031 kB / 0.6829 GB, free: 38.7 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.31e-05/0.1395, allocations: 19.91 kB / 0.6829 GB, free: 38.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001476/0.1396, allocations: 188.9 kB / 0.6831 GB, free: 38.45 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001317/0.1398, allocations: 85.11 kB / 0.6832 GB, free: 38.35 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.658e-05/0.1398, allocations: 16 kB / 0.6832 GB, free: 38.34 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004523/0.1403, allocations: 140.1 kB / 0.6833 GB, free: 38.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.1403, allocations: 0 / 0.6833 GB, free: 38.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.29e-05/0.1404, allocations: 11.95 kB / 0.6833 GB, free: 38.17 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.1404, allocations: 4 kB / 0.6833 GB, free: 38.17 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005057/0.1409, allocations: 83.94 kB / 0.6834 GB, free: 38.09 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.142, allocations: 0.5283 MB / 0.6839 GB, free: 37.5 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00049/0.1425, allocations: 151.8 kB / 0.6841 GB, free: 37.32 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005507/0.1431, allocations: 110.6 kB / 0.6842 GB, free: 37.21 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.797e-05/0.1431, allocations: 7.953 kB / 0.6842 GB, free: 37.2 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007586/0.1439, allocations: 459.5 kB / 0.6846 GB, free: 36.67 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 4.979e-06/0.1439, allocations: 0 / 0.6846 GB, free: 36.67 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.001596/0.1455, allocations: 484.4 kB / 0.6851 GB, free: 36.16 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.1457, allocations: 247.3 kB / 0.6853 GB, free: 35.87 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001696/0.1458, allocations: 129.8 kB / 0.6854 GB, free: 35.73 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.446e-05/0.1459, allocations: 33.7 kB / 0.6855 GB, free: 35.69 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.249e-05/0.146, allocations: 100.6 kB / 0.6856 GB, free: 35.59 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.471e-05/0.1461, allocations: 51.34 kB / 0.6856 GB, free: 35.54 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.295e-05/0.1461, allocations: 8 kB / 0.6856 GB, free: 35.53 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.472e-05/0.1462, allocations: 326.8 kB / 0.6859 GB, free: 35.2 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002667/0.1465, allocations: 55.97 kB / 0.686 GB, free: 35.15 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003148/0.1468, allocations: 117.8 kB / 0.6861 GB, free: 35.01 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003765/0.1472, allocations: 208.4 kB / 0.6863 GB, free: 34.77 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.842e-06/0.1473, allocations: 4 kB / 0.6863 GB, free: 34.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.001029/0.1483, allocations: 404 kB / 0.6867 GB, free: 34.34 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000108/0.1484, allocations: 152.5 kB / 0.6868 GB, free: 34.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.1485, allocations: 0 / 0.6868 GB, free: 34.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.67e-05/0.1485, allocations: 4 kB / 0.6868 GB, free: 34.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001275/0.1487, allocations: 15.94 kB / 0.6869 GB, free: 34.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.3e-05/0.1487, allocations: 4.188 kB / 0.6869 GB, free: 34.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002692/0.149, allocations: 19.98 kB / 0.6869 GB, free: 34.12 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001093/0.1491, allocations: 19.94 kB / 0.6869 GB, free: 34.1 MB / 346.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.0002967/0.1494, allocations: 278.7 kB / 0.6872 GB, free: 33.79 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.062e-05/0.1495, allocations: 23.77 kB / 0.6872 GB, free: 33.77 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.106e-05/0.1496, allocations: 12.38 kB / 0.6872 GB, free: 33.75 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.1496, allocations: 4 kB / 0.6872 GB, free: 33.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.1496, allocations: 0 / 0.6872 GB, free: 33.75 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.545e-05/0.1497, allocations: 85.02 kB / 0.6873 GB, free: 33.65 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.643e-05/0.1498, allocations: 19.98 kB / 0.6873 GB, free: 33.63 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000253/0.15, allocations: 16.28 kB / 0.6873 GB, free: 33.61 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.1502, allocations: 23.97 kB / 0.6873 GB, free: 33.59 MB / 346.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001505/0.1517, allocations: 0.8981 MB / 0.6882 GB, free: 32.61 MB / 346.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001345/0.1531, allocations: 0.7715 MB / 0.689 GB, free: 31.8 MB / 346.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005028/0.1536, allocations: 168 kB / 0.6891 GB, free: 31.63 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.499e-05/0.1537, allocations: 110.6 kB / 0.6892 GB, free: 31.53 MB / 346.7 MB Notification: Performance of Backend: time 8.61e-07/0.1538, allocations: 0 / 0.6892 GB, free: 31.53 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001778/0.1555, allocations: 0.5188 MB / 0.6897 GB, free: 30.94 MB / 346.7 MB Notification: Performance of SimCode: time 0.0008779/0.1565, allocations: 0.8991 MB / 0.6906 GB, free: 29.95 MB / 346.7 MB Notification: Performance of Templates: time 0.008627/0.1651, allocations: 1.861 MB / 0.6924 GB, free: 28.09 MB / 346.7 MB "" Variables in the reference: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 Variables in the result:booleanStep2.startTime,booleanStep2.startValue,booleanStep3.startTime,booleanStep3.startValue,booleanTable.index,booleanTable.n,booleanTable.nextTime,booleanTable.startValue,booleanTable.table[1],booleanTable.table[2],booleanTable.table[3],booleanTable.table[4],booleanTable.table[5],booleanTable.table[6],booleanTable.y,onDelay1.delaySignal,onDelay1.delayTime,onDelay1.t_next,onDelay1.u,onDelay2.delaySignal,onDelay2.delayTime,onDelay2.t_next,onDelay2.u,onDelay3.delaySignal,onDelay3.delayTime,onDelay3.t_next,onDelay3.u,time