Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.Interactive.UseRadioButtonSources.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Modelica_StateGraph2 with version 2.0.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica_StateGraph2 2.0.3/package.mo) Running command: "" <> buildModelFMU(Modelica_StateGraph2.Examples.Interactive.UseRadioButtonSources,fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2_Examples_Interactive_UseRadioButtonSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica_StateGraph2): time 2.221/2.221, allocations: 208.5 MB / 216 MB, free: 10.16 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.718e-05/1.729e-05, allocations: 0 / 269.6 MB, free: 4.488 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1099, allocations: 47.77 MB / 317.4 MB, free: 4.625 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4208/0.5307, allocations: 71.4 MB / 388.8 MB, free: 15.38 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001606/0.5309, allocations: 49.23 kB / 388.8 MB, free: 15.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01953/0.5504, allocations: 3.939 MB / 392.8 MB, free: 11.91 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.5505, allocations: 4 kB / 392.8 MB, free: 11.91 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.716e-05/0.5505, allocations: 7.938 kB / 392.8 MB, free: 11.9 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007925/0.5513, allocations: 0.6406 MB / 393.4 MB, free: 11.18 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/0.5514, allocations: 11.98 kB / 393.4 MB, free: 11.17 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.755e-05/0.5515, allocations: 23.77 kB / 393.5 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003727/0.5519, allocations: 228.3 kB / 393.7 MB, free: 10.9 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.079e-05/0.5519, allocations: 4 kB / 393.7 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.642e-05/0.552, allocations: 12 kB / 393.7 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002274/0.5522, allocations: 82.78 kB / 393.8 MB, free: 10.83 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003561/0.5526, allocations: 153.3 kB / 393.9 MB, free: 10.71 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.5526, allocations: 0 / 393.9 MB, free: 10.71 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.23e-05/0.5527, allocations: 7.938 kB / 393.9 MB, free: 10.7 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.942e-05/0.5527, allocations: 15.27 kB / 393.9 MB, free: 10.69 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005706/0.5533, allocations: 335.5 kB / 394.3 MB, free: 10.36 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005121/0.5538, allocations: 398 kB / 394.7 MB, free: 9.953 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002508/0.5541, allocations: 116.1 kB / 394.8 MB, free: 9.879 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.415e-05/0.5541, allocations: 0 / 394.8 MB, free: 9.879 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006457/0.5548, allocations: 487 kB / 395.3 MB, free: 9.391 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 2.745e-06/0.5548, allocations: 0 / 395.3 MB, free: 9.391 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.0009297/0.5557, allocations: 337.2 kB / 395.6 MB, free: 9.129 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002873/0.556, allocations: 476.7 kB / 396 MB, free: 8.57 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001904/0.5563, allocations: 143 kB / 396.2 MB, free: 8.438 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.396e-05/0.5564, allocations: 49.44 kB / 396.2 MB, free: 8.391 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.091e-05/0.5564, allocations: 96.23 kB / 396.3 MB, free: 8.305 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001103/0.5566, allocations: 78.06 kB / 396.4 MB, free: 8.242 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.236e-05/0.5566, allocations: 0 / 396.4 MB, free: 8.242 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.5568, allocations: 338.2 kB / 396.7 MB, free: 7.914 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002617/0.557, allocations: 113.6 kB / 396.8 MB, free: 7.84 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003574/0.5574, allocations: 197.3 kB / 397 MB, free: 7.664 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004142/0.5578, allocations: 139.9 kB / 397.2 MB, free: 7.566 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.5579, allocations: 0 / 397.2 MB, free: 7.566 MB / 314.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001069/0.5589, allocations: 400.8 kB / 397.6 MB, free: 7.25 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002204/0.5592, allocations: 274.9 kB / 397.8 MB, free: 6.938 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.5592, allocations: 4.188 kB / 397.8 MB, free: 6.934 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.548e-05/0.5592, allocations: 8 kB / 397.8 MB, free: 6.926 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.788e-05/0.5593, allocations: 15.89 kB / 397.9 MB, free: 6.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.658e-05/0.5593, allocations: 7.984 kB / 397.9 MB, free: 6.902 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002207/0.5596, allocations: 19.88 kB / 397.9 MB, free: 6.883 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.488e-05/0.5597, allocations: 27.88 kB / 397.9 MB, free: 6.859 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.start.pre_reset[1],$PRE.start.pre_reset[2],$PRE.stop.pre_reset[1],$PRE.stop.pre_reset[2],$PRE.shut.pre_reset[1],$PRE.shut.pre_reset[2],start.reset[2],stop.reset[2],$PRE.shut.on,shut.on,$PRE.start.on,start.on,stop.reset[1],shut.reset[1],start.reset[1],$PRE.stop.on,stop.on,shut.reset[2],$whenCondition9,$whenCondition11,$whenCondition10,$whenCondition12,$PRE.shut.reset[1],$PRE.shut.reset[2],$PRE.shut.table.y,shut.table.y,$PRE.shut.table.nextTime,shut.table.nextTime,$PRE.shut.table.index,shut.table.index,shut.pre_reset[1],shut.pre_reset[2],$whenCondition5,$whenCondition7,$whenCondition6,$whenCondition8,$PRE.stop.reset[1],$PRE.stop.reset[2],$PRE.stop.table.y,stop.table.y,$PRE.stop.table.nextTime,stop.table.nextTime,$PRE.stop.table.index,stop.table.index,stop.pre_reset[1],stop.pre_reset[2],$whenCondition1,$whenCondition3,$whenCondition2,$whenCondition4,$PRE.start.reset[1],$PRE.start.reset[2],$PRE.start.table.y,start.table.y,$PRE.start.table.nextTime,start.table.nextTime,$PRE.start.table.index,start.table.index,start.pre_reset[1],start.pre_reset[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 9 * 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.0004465/0.5601, allocations: 363.7 kB / 398.3 MB, free: 6.477 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001017/0.5612, allocations: 405.3 kB / 398.7 MB, free: 6.172 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.637e-05/0.5613, allocations: 27.72 kB / 398.7 MB, free: 6.145 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.936e-05/0.5613, allocations: 17.95 kB / 398.7 MB, free: 6.129 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.5613, allocations: 0 / 398.7 MB, free: 6.129 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.5613, allocations: 4 kB / 398.7 MB, free: 6.125 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.5614, allocations: 0 / 398.7 MB, free: 6.125 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001321/0.5627, allocations: 0.7224 MB / 399.4 MB, free: 5.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.5627, allocations: 0 / 399.4 MB, free: 5.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.608e-05/0.5627, allocations: 0 / 399.4 MB, free: 5.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.767e-06/0.5628, allocations: 3.953 kB / 399.4 MB, free: 5.496 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.188e-05/0.5628, allocations: 19.92 kB / 399.5 MB, free: 5.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.5628, allocations: 0 / 399.5 MB, free: 5.48 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.111e-05/0.5629, allocations: 0 / 399.5 MB, free: 5.48 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.5639, allocations: 0.5092 MB / 400 MB, free: 5.059 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.282e-05/0.564, allocations: 92.83 kB / 400.1 MB, free: 4.949 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001286/0.5642, allocations: 35.62 kB / 400.1 MB, free: 4.922 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002712/0.5644, allocations: 19.98 kB / 400.1 MB, free: 4.902 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/0.5646, allocations: 23.66 kB / 400.1 MB, free: 4.887 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.45e-05/0.5647, allocations: 23.8 kB / 400.2 MB, free: 4.867 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000123/0.5648, allocations: 114.9 kB / 400.3 MB, free: 4.766 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5648, allocations: 0 / 400.3 MB, free: 4.766 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007392/0.5655, allocations: 104 kB / 400.4 MB, free: 4.664 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 36 ($whenCondition1,$whenCondition3,$whenCondition2,$whenCondition4,$whenCondition5,$whenCondition7,$whenCondition6,$whenCondition8,$whenCondition9,$whenCondition11,$whenCondition10,$whenCondition12,start.reset[1],start.reset[2],start.on,start.table.y,start.table.nextTime,start.table.index,start.pre_reset[1],start.pre_reset[2],stop.reset[1],stop.reset[2],stop.on,stop.table.y,stop.table.nextTime,stop.table.index,stop.pre_reset[1],stop.pre_reset[2],shut.reset[1],shut.reset[2],shut.on,shut.table.y,shut.table.nextTime,shut.table.index,shut.pre_reset[1],shut.pre_reset[2]) * Number of discrete states: 36 (shut.table.y,shut.table.nextTime,shut.table.index,$whenCondition9,$whenCondition12,shut.on,$whenCondition11,$whenCondition10,shut.pre_reset[2],shut.pre_reset[1],shut.reset[1],shut.reset[2],stop.table.y,stop.table.nextTime,stop.table.index,$whenCondition5,$whenCondition8,stop.on,$whenCondition7,$whenCondition6,stop.pre_reset[2],stop.pre_reset[1],stop.reset[1],stop.reset[2],start.table.y,start.table.nextTime,start.table.index,$whenCondition1,$whenCondition4,start.on,$whenCondition3,$whenCondition2,start.pre_reset[2],start.pre_reset[1],start.reset[1],start.reset[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 6 * 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.001848/0.5674, allocations: 1.15 MB / 401.5 MB, free: 3.602 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001287/0.5687, allocations: 0.8822 MB / 402.4 MB, free: 2.77 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.5688, allocations: 0 / 402.4 MB, free: 2.77 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007404/0.5695, allocations: 0.6084 MB / 403 MB, free: 2.23 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002888/0.5698, allocations: 15.25 kB / 403 MB, free: 2.219 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001364/0.5712, allocations: 411.3 kB / 403.4 MB, free: 1.844 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003903/0.5716, allocations: 0.7323 MB / 404.2 MB, free: 1.086 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001159/0.5718, allocations: 29.83 kB / 404.2 MB, free: 1.055 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.017e-05/0.5718, allocations: 45.36 kB / 404.2 MB, free: 1.035 MB / 314.7 MB Notification: Performance of SimCode: time 1.092e-06/0.5719, allocations: 0 / 404.2 MB, free: 1.035 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04777/0.6196, allocations: 4.924 MB / 409.2 MB, free: 12.11 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003473/0.6201, allocations: 156.6 kB / 409.3 MB, free: 11.93 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.652/3.272, allocations: 4.031 kB / 409.3 MB, free: 11.92 MB / 330.7 MB