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: "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0103/0.0103, allocations: 161.8 kB / 15.11 MB, free: 5.969 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 1.78/1.78, allocations: 170.8 MB / 186.6 MB, free: 1.113 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.002926/0.002926, allocations: 109.9 kB / 226.2 MB, free: 10.1 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.4318/0.4318, allocations: 38.05 MB / 303.7 MB, free: 42.32 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006682/0.0006684, allocations: 8 kB / 363 MB, free: 5.5 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1458/0.1465, allocations: 48.71 MB / 411.7 MB, free: 4.703 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003207/0.1498, allocations: 1.199 MB / 412.9 MB, free: 3.492 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001643/0.1515, allocations: 0.5228 MB / 413.4 MB, free: 2.965 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.269e-05/0.1516, allocations: 7.938 kB / 413.4 MB, free: 2.957 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 6.7e-05/0.1517, allocations: 3.984 kB / 413.4 MB, free: 2.953 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 8.464e-05/0.1518, allocations: 11.88 kB / 413.4 MB, free: 2.941 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005608/0.1524, allocations: 99.86 kB / 413.5 MB, free: 2.844 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001988/0.1526, allocations: 115.7 kB / 413.7 MB, free: 2.73 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.975e-05/0.1527, allocations: 20.22 kB / 413.7 MB, free: 2.711 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.499e-05/0.1528, allocations: 51.83 kB / 413.7 MB, free: 2.66 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001544/0.153, allocations: 51.81 kB / 413.8 MB, free: 2.609 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.185e-05/0.153, allocations: 4 kB / 413.8 MB, free: 2.605 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001615/0.1532, allocations: 43.97 kB / 413.8 MB, free: 2.562 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.835e-05/0.1533, allocations: 27.89 kB / 413.8 MB, free: 2.535 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 7.709e-05/0.1534, allocations: 49.64 kB / 413.9 MB, free: 2.48 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002096/0.1536, allocations: 100 kB / 414 MB, free: 2.383 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1536, allocations: 4 kB / 414 MB, free: 2.379 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1536, allocations: 0 / 414 MB, free: 2.379 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.1536, allocations: 0 / 414 MB, free: 2.379 MB / 314.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.0008066/0.1544, allocations: 0.5385 MB / 414.5 MB, free: 1.762 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.43e-05/0.1545, allocations: 8.031 kB / 414.5 MB, free: 1.754 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.597e-05/0.1546, allocations: 46.5 kB / 414.6 MB, free: 1.699 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.054e-05/0.1547, allocations: 15.91 kB / 414.6 MB, free: 1.684 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001542/0.1548, allocations: 182.9 kB / 414.8 MB, free: 1.465 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00012/0.155, allocations: 89.11 kB / 414.9 MB, free: 1.359 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.301e-05/0.155, allocations: 12 kB / 414.9 MB, free: 1.348 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004117/0.1555, allocations: 144.1 kB / 415 MB, free: 1.191 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.1555, allocations: 4 kB / 415 MB, free: 1.188 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.442e-05/0.1555, allocations: 4 kB / 415 MB, free: 1.184 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.1555, allocations: 0 / 415 MB, free: 1.184 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003337/0.1559, allocations: 91.88 kB / 415.1 MB, free: 1.094 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000935/0.1568, allocations: 0.5322 MB / 415.7 MB, free: 0.5039 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003928/0.1573, allocations: 155.8 kB / 415.8 MB, free: 332 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002649/0.1575, allocations: 102.6 kB / 415.9 MB, free: 220 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.443e-05/0.1576, allocations: 4 kB / 415.9 MB, free: 216 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006745/0.1583, allocations: 463.4 kB / 416.4 MB, free: 15.68 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 2.815e-06/0.1583, allocations: 4 kB / 416.4 MB, free: 15.67 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.00127/0.1596, allocations: 480.2 kB / 416.8 MB, free: 15.17 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001547/0.1597, allocations: 255.2 kB / 417.1 MB, free: 14.87 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001636/0.1599, allocations: 133.7 kB / 417.2 MB, free: 14.73 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.087e-05/0.16, allocations: 29.7 kB / 417.2 MB, free: 14.69 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.051e-05/0.1601, allocations: 100.6 kB / 417.3 MB, free: 14.59 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.197e-05/0.1601, allocations: 47.44 kB / 417.4 MB, free: 14.54 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.893e-05/0.1602, allocations: 8 kB / 417.4 MB, free: 14.54 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.1603, allocations: 326.8 kB / 417.7 MB, free: 14.21 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000203/0.1605, allocations: 51.97 kB / 417.8 MB, free: 14.16 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002642/0.1608, allocations: 123.7 kB / 417.9 MB, free: 14.01 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003501/0.1612, allocations: 200.4 kB / 418.1 MB, free: 13.78 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.1612, allocations: 0 / 418.1 MB, free: 13.78 MB / 330.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008291/0.162, allocations: 405.8 kB / 418.5 MB, free: 13.35 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001274/0.1622, allocations: 148.5 kB / 418.6 MB, free: 13.17 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.689e-06/0.1622, allocations: 3.984 kB / 418.6 MB, free: 13.17 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.376e-05/0.1622, allocations: 7.953 kB / 418.6 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.936e-05/0.1624, allocations: 8 kB / 418.6 MB, free: 13.15 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.317e-05/0.1624, allocations: 7.938 kB / 418.7 MB, free: 13.14 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001929/0.1626, allocations: 32.02 kB / 418.7 MB, free: 13.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.343e-05/0.1626, allocations: 12 kB / 418.7 MB, free: 13.1 MB / 330.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.0002837/0.1629, allocations: 271.9 kB / 419 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.889e-05/0.163, allocations: 19.81 kB / 419 MB, free: 12.79 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.722e-05/0.163, allocations: 16.36 kB / 419 MB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.1631, allocations: 3.953 kB / 419 MB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.1631, allocations: 8 kB / 419 MB, free: 12.76 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.1631, allocations: 288 / 419 MB, free: 12.76 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002373/0.1655, allocations: 0.5603 MB / 419.6 MB, free: 12.13 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/0.1657, allocations: 0 / 419.6 MB, free: 12.13 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.559e-05/0.1657, allocations: 7.938 kB / 419.6 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.568e-05/0.1658, allocations: 4.328 kB / 419.6 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.031e-05/0.1658, allocations: 15.94 kB / 419.6 MB, free: 12.1 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.067e-06/0.1659, allocations: 4 kB / 419.6 MB, free: 12.1 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.865e-06/0.1659, allocations: 4 kB / 419.6 MB, free: 12.09 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/0.1675, allocations: 0.5567 MB / 420.2 MB, free: 11.49 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001179/0.1676, allocations: 92.94 kB / 420.2 MB, free: 11.38 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001258/0.1678, allocations: 15.95 kB / 420.3 MB, free: 11.37 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003871/0.1682, allocations: 20 kB / 420.3 MB, free: 11.35 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001548/0.1684, allocations: 19.97 kB / 420.3 MB, free: 11.33 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.306e-05/0.1684, allocations: 16 kB / 420.3 MB, free: 11.31 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001542/0.1686, allocations: 98.92 kB / 420.4 MB, free: 11.22 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.1686, allocations: 0 / 420.4 MB, free: 11.22 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009748/0.1696, allocations: 63.98 kB / 420.5 MB, free: 11.16 MB / 330.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.002331/0.172, allocations: 1.127 MB / 421.6 MB, free: 9.969 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001422/0.1735, allocations: 0.4971 MB / 422.1 MB, free: 9.41 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.358e-05/0.1735, allocations: 0 / 422.1 MB, free: 9.41 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001732/0.1753, allocations: 417.8 kB / 422.5 MB, free: 8.953 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008648/0.1762, allocations: 31.94 kB / 422.5 MB, free: 8.922 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002636/0.1789, allocations: 0.9754 MB / 423.5 MB, free: 7.863 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000363/0.1793, allocations: 0.716 MB / 424.2 MB, free: 7.121 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.373e-05/0.1794, allocations: 4.438 kB / 424.2 MB, free: 7.117 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.221e-05/0.1795, allocations: 31.42 kB / 424.3 MB, free: 7.086 MB / 330.7 MB Notification: Performance of SimCode: time 1.393e-06/0.1795, allocations: 0 / 424.3 MB, free: 7.086 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0296/0.2091, allocations: 3.014 MB / 427.3 MB, free: 4.109 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003377/0.2095, allocations: 165 kB / 427.4 MB, free: 3.867 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.7/2.91, allocations: 4 kB / 427.4 MB, free: 3.863 MB / 330.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,booleanStep2.y,booleanStep3.startTime,booleanStep3.startValue,booleanStep3.y,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,onDelay1.y,onDelay2.delaySignal,onDelay2.delayTime,onDelay2.t_next,onDelay2.u,onDelay2.y,onDelay3.delaySignal,onDelay3.delayTime,onDelay3.t_next,onDelay3.u,onDelay3.y,time