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.002724/0.002724, allocations: 353.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.1+maint.om/package.mo): time 3.559/3.559, allocations: 341.5 MB / 358.2 MB, free: 28.63 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003643/0.003643, allocations: 216.3 kB / 397.9 MB, free: 6.016 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.5592/0.5592, allocations: 76.09 MB / 0.5014 GB, free: 0.8008 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004669/0.0004672, allocations: 8 kB / 0.5592 GB, free: 60.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1059, allocations: 48.69 MB / 0.6067 GB, free: 11.56 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002203/0.1082, allocations: 1.201 MB / 0.6079 GB, free: 10.35 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001329/0.1096, allocations: 0.5345 MB / 0.6084 GB, free: 9.812 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.915e-05/0.1097, allocations: 0 / 0.6084 GB, free: 9.812 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.246e-05/0.1097, allocations: 7.938 kB / 0.6084 GB, free: 9.805 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.664e-05/0.1099, allocations: 15.84 kB / 0.6084 GB, free: 9.789 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006401/0.1105, allocations: 87.83 kB / 0.6085 GB, free: 9.703 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002342/0.1108, allocations: 123.7 kB / 0.6086 GB, free: 9.582 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.1109, allocations: 24.19 kB / 0.6087 GB, free: 9.559 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.954e-05/0.111, allocations: 43.91 kB / 0.6087 GB, free: 9.516 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000131/0.1112, allocations: 51.81 kB / 0.6088 GB, free: 9.465 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.552e-05/0.1112, allocations: 8 kB / 0.6088 GB, free: 9.457 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002102/0.1115, allocations: 55.89 kB / 0.6088 GB, free: 9.402 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.87e-05/0.1116, allocations: 15.98 kB / 0.6088 GB, free: 9.387 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.763e-05/0.1117, allocations: 49.64 kB / 0.6089 GB, free: 9.332 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00026/0.112, allocations: 100 kB / 0.609 GB, free: 9.234 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.112, allocations: 0 / 0.609 GB, free: 9.234 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.112, allocations: 0 / 0.609 GB, free: 9.234 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.112, allocations: 0 / 0.609 GB, free: 9.234 MB / 282.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.0009449/0.113, allocations: 0.5424 MB / 0.6095 GB, free: 8.613 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.787e-05/0.1131, allocations: 8.031 kB / 0.6095 GB, free: 8.605 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.639e-05/0.1132, allocations: 15.91 kB / 0.6095 GB, free: 8.59 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001406/0.1133, allocations: 186.8 kB / 0.6097 GB, free: 8.367 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001608/0.1135, allocations: 93.11 kB / 0.6098 GB, free: 8.258 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.231e-05/0.1136, allocations: 12 kB / 0.6098 GB, free: 8.246 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005687/0.1142, allocations: 140.2 kB / 0.6099 GB, free: 8.094 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.1142, allocations: 0 / 0.6099 GB, free: 8.094 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.979e-05/0.1143, allocations: 7.938 kB / 0.6099 GB, free: 8.086 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.1143, allocations: 0 / 0.6099 GB, free: 8.086 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005122/0.1148, allocations: 87.94 kB / 0.61 GB, free: 8 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001061/0.1159, allocations: 0.5321 MB / 0.6105 GB, free: 7.41 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005043/0.1165, allocations: 159.8 kB / 0.6107 GB, free: 7.227 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003632/0.1168, allocations: 98.64 kB / 0.6108 GB, free: 7.121 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.507e-05/0.1169, allocations: 3.938 kB / 0.6108 GB, free: 7.117 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000762/0.1177, allocations: 463.4 kB / 0.6112 GB, free: 6.582 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 4.679e-06/0.1177, allocations: 0 / 0.6112 GB, free: 6.582 MB / 282.7 MB Notification: Performance of matching and sorting (n=22): time 0.001801/0.1195, allocations: 476.1 kB / 0.6117 GB, free: 6.086 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/0.1197, allocations: 255.5 kB / 0.6119 GB, free: 5.781 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001774/0.1199, allocations: 141.7 kB / 0.6121 GB, free: 5.637 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.763e-05/0.1199, allocations: 33.7 kB / 0.6121 GB, free: 5.598 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.837e-05/0.12, allocations: 100.5 kB / 0.6122 GB, free: 5.496 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.772e-05/0.1201, allocations: 51.38 kB / 0.6123 GB, free: 5.445 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.451e-05/0.1202, allocations: 4 kB / 0.6123 GB, free: 5.441 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.01e-05/0.1203, allocations: 322.8 kB / 0.6126 GB, free: 5.117 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003003/0.1206, allocations: 55.97 kB / 0.6126 GB, free: 5.062 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003663/0.121, allocations: 123.7 kB / 0.6127 GB, free: 4.914 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003942/0.1214, allocations: 204.4 kB / 0.6129 GB, free: 4.684 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.182e-06/0.1214, allocations: 0 / 0.6129 GB, free: 4.684 MB / 282.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.001112/0.1226, allocations: 401 kB / 0.6133 GB, free: 4.258 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001064/0.1227, allocations: 152.3 kB / 0.6135 GB, free: 4.082 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.1227, allocations: 15.92 kB / 0.6135 GB, free: 4.066 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.685e-05/0.1228, allocations: 0 / 0.6135 GB, free: 4.066 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.1229, allocations: 8 kB / 0.6135 GB, free: 4.059 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.601e-05/0.123, allocations: 11.89 kB / 0.6135 GB, free: 4.047 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002915/0.1233, allocations: 24.36 kB / 0.6135 GB, free: 4.023 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.058e-05/0.1233, allocations: 8 kB / 0.6135 GB, free: 4.016 MB / 282.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.0003138/0.1237, allocations: 275 kB / 0.6138 GB, free: 3.715 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.705e-05/0.1238, allocations: 27.8 kB / 0.6138 GB, free: 3.688 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.406e-05/0.1238, allocations: 16.3 kB / 0.6138 GB, free: 3.672 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.1239, allocations: 4 kB / 0.6138 GB, free: 3.668 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.1239, allocations: 4 kB / 0.6138 GB, free: 3.664 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.016e-05/0.1239, allocations: 88.97 kB / 0.6139 GB, free: 3.559 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.702e-05/0.1241, allocations: 8 kB / 0.6139 GB, free: 3.551 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002863/0.1244, allocations: 23.98 kB / 0.6139 GB, free: 3.527 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001304/0.1245, allocations: 23.97 kB / 0.614 GB, free: 3.504 MB / 282.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001654/0.1262, allocations: 0.8943 MB / 0.6148 GB, free: 2.527 MB / 282.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.001462/0.1277, allocations: 0.7678 MB / 0.6156 GB, free: 1.719 MB / 282.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005461/0.1282, allocations: 175.9 kB / 0.6158 GB, free: 1.547 MB / 282.7 MB Notification: Performance of sorting global known variables: time 9.389e-05/0.1284, allocations: 99.27 kB / 0.6159 GB, free: 1.449 MB / 282.7 MB Notification: Performance of Backend: time 1.032e-06/0.1284, allocations: 0 / 0.6159 GB, free: 1.449 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0018/0.1302, allocations: 0.511 MB / 0.6164 GB, free: 0.8711 MB / 282.7 MB Notification: Performance of SimCode: time 0.0009826/0.1312, allocations: 0.903 MB / 0.6172 GB, free: 15.86 MB / 298.7 MB Notification: Performance of Templates: time 0.01075/0.142, allocations: 1.855 MB / 0.6191 GB, free: 14.01 MB / 298.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