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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Modelica_StateGraph2 with version 2.0.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.41/2.41, allocations: 208.4 MB / 221 MB, free: 15.44 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.563e-05/3.61e-05, allocations: 4 kB / 276.1 MB, free: 8.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4401/0.4401, allocations: 47.78 MB / 323.9 MB, free: 13.29 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1588/0.599, allocations: 72.06 MB / 396 MB, free: 5.125 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001716/0.5992, allocations: 47.98 kB / 396 MB, free: 5.078 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02103/0.6203, allocations: 3.967 MB / 400 MB, free: 1.105 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.6203, allocations: 0 / 400 MB, free: 1.105 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.594e-05/0.6204, allocations: 4 kB / 400 MB, free: 1.102 MB / 330.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.0008468/0.6213, allocations: 0.6479 MB / 400.6 MB, free: 364 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.407e-05/0.6213, allocations: 15.97 kB / 400.6 MB, free: 348 kB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.641e-05/0.6214, allocations: 38.56 kB / 400.7 MB, free: 300 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.132e-05/0.6215, allocations: 27.77 kB / 400.7 MB, free: 272 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004019/0.6219, allocations: 230.8 kB / 400.9 MB, free: 0 / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.577e-05/0.622, allocations: 12.06 kB / 400.9 MB, free: 15.98 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.697e-05/0.6221, allocations: 19.98 kB / 401 MB, free: 15.96 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004387/0.6225, allocations: 153.6 kB / 401.1 MB, free: 15.81 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.457e-06/0.6225, allocations: 0 / 401.1 MB, free: 15.81 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.448e-05/0.6226, allocations: 7.984 kB / 401.1 MB, free: 15.8 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.623e-05/0.6226, allocations: 23.94 kB / 401.1 MB, free: 15.78 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002442/0.6229, allocations: 79.92 kB / 401.2 MB, free: 15.7 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000622/0.6235, allocations: 368.7 kB / 401.6 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005827/0.6241, allocations: 406 kB / 402 MB, free: 14.83 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000374/0.6245, allocations: 128.9 kB / 402.1 MB, free: 14.7 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.6246, allocations: 4 kB / 402.1 MB, free: 14.7 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007278/0.6253, allocations: 498.4 kB / 402.6 MB, free: 14.14 MB / 346.7 MB Notification: Performance of pre-optimization done (n=36): time 2.925e-06/0.6253, allocations: 0 / 402.6 MB, free: 14.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.001242/0.6266, allocations: 0.5229 MB / 403.1 MB, free: 13.57 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003125/0.6269, allocations: 476.9 kB / 403.6 MB, free: 13 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002267/0.6272, allocations: 148.6 kB / 403.7 MB, free: 12.85 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001165/0.6273, allocations: 49.69 kB / 403.8 MB, free: 12.8 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.547e-05/0.6274, allocations: 100.9 kB / 403.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/0.6275, allocations: 75.2 kB / 404 MB, free: 12.62 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.9e-05/0.6276, allocations: 8 kB / 404 MB, free: 12.61 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.6278, allocations: 338.8 kB / 404.3 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003313/0.6281, allocations: 116.5 kB / 404.4 MB, free: 12.16 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004679/0.6286, allocations: 213.6 kB / 404.6 MB, free: 11.92 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000566/0.6292, allocations: 395.2 kB / 405 MB, free: 11.48 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/0.6292, allocations: 0 / 405 MB, free: 11.48 MB / 346.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001369/0.6306, allocations: 0.6838 MB / 405.7 MB, free: 10.73 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002229/0.6308, allocations: 275.2 kB / 406 MB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.6309, allocations: 144 / 406 MB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.111e-05/0.6309, allocations: 8.188 kB / 406 MB, free: 10.4 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.33e-05/0.631, allocations: 19.92 kB / 406 MB, free: 10.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.142e-05/0.631, allocations: 19.8 kB / 406 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002501/0.6313, allocations: 23.94 kB / 406 MB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.349e-05/0.6314, allocations: 20 kB / 406 MB, free: 10.32 MB / 346.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.0004631/0.6319, allocations: 368.2 kB / 406.4 MB, free: 9.918 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.846e-05/0.632, allocations: 23.81 kB / 406.4 MB, free: 9.895 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.625e-05/0.632, allocations: 17.83 kB / 406.4 MB, free: 9.871 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.179e-06/0.632, allocations: 0 / 406.4 MB, free: 9.871 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.6321, allocations: 4 kB / 406.4 MB, free: 9.867 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.6321, allocations: 0 / 406.4 MB, free: 9.867 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001909/0.634, allocations: 0.9883 MB / 407.4 MB, free: 8.785 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.154e-06/0.6341, allocations: 0 / 407.4 MB, free: 8.785 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.486e-05/0.6341, allocations: 4 kB / 407.4 MB, free: 8.781 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.148e-05/0.6341, allocations: 3.953 kB / 407.4 MB, free: 8.777 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.229e-05/0.6342, allocations: 19.98 kB / 407.5 MB, free: 8.758 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.177e-06/0.6342, allocations: 0 / 407.5 MB, free: 8.758 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.6342, allocations: 0 / 407.5 MB, free: 8.758 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001434/0.6357, allocations: 0.7316 MB / 408.2 MB, free: 7.973 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.406e-05/0.6358, allocations: 88.92 kB / 408.3 MB, free: 7.867 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001385/0.6359, allocations: 35.94 kB / 408.3 MB, free: 7.832 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002816/0.6362, allocations: 23.98 kB / 408.3 MB, free: 7.809 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001521/0.6364, allocations: 27.95 kB / 408.4 MB, free: 7.781 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.707e-05/0.6365, allocations: 19.98 kB / 408.4 MB, free: 7.762 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001484/0.6366, allocations: 115.3 kB / 408.5 MB, free: 7.648 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.6366, allocations: 0 / 408.5 MB, free: 7.648 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007141/0.6374, allocations: 120 kB / 408.6 MB, free: 7.531 MB / 346.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.00233/0.6397, allocations: 1.396 MB / 410 MB, free: 6.07 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001517/0.6413, allocations: 0.9162 MB / 410.9 MB, free: 5.043 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.6413, allocations: 0 / 410.9 MB, free: 5.043 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008921/0.6422, allocations: 0.6136 MB / 411.5 MB, free: 4.355 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000277/0.6425, allocations: 16 kB / 411.6 MB, free: 4.34 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00158/0.6441, allocations: 432.6 kB / 412 MB, free: 3.883 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004888/0.6447, allocations: 0.7404 MB / 412.7 MB, free: 3.117 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001341/0.6448, allocations: 29.52 kB / 412.7 MB, free: 3.09 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.603e-05/0.6449, allocations: 43.42 kB / 412.8 MB, free: 3.047 MB / 346.7 MB Notification: Performance of SimCode: time 1.522e-06/0.645, allocations: 3.938 kB / 412.8 MB, free: 3.043 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04044/0.6854, allocations: 5.307 MB / 418.1 MB, free: 13.77 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003724/0.6859, allocations: 188.8 kB / 418.3 MB, free: 13.54 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.611/3.297, allocations: 4 kB / 418.3 MB, free: 13.53 MB / 362.7 MB