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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Modelica_StateGraph2): time 2.229/2.229, allocations: 208.4 MB / 215.7 MB, free: 11.82 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2711/2.5, allocations: 53.4 MB / 269.1 MB, free: 5.023 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/2.615, allocations: 47.78 MB / 316.9 MB, free: 5.148 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.348/2.963, allocations: 71.32 MB / 388.2 MB, free: 10.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001512/2.963, allocations: 45.86 kB / 388.3 MB, free: 10.46 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.02689/2.99, allocations: 4.338 MB / 392.6 MB, free: 9.629 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/2.99, allocations: 11.34 kB / 392.6 MB, free: 9.629 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.501e-05/2.99, allocations: 23.28 kB / 392.6 MB, free: 9.617 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004494/2.99, allocations: 239.1 kB / 392.9 MB, free: 9.406 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.269e-05/2.991, allocations: 3.906 kB / 392.9 MB, free: 9.406 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.791e-05/2.991, allocations: 12.2 kB / 392.9 MB, free: 9.406 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002858/2.991, allocations: 82.58 kB / 393 MB, free: 9.406 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004251/2.991, allocations: 145.8 kB / 393.1 MB, free: 9.375 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/2.991, allocations: 3.875 kB / 393.1 MB, free: 9.375 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.044e-05/2.991, allocations: 8.141 kB / 393.1 MB, free: 9.375 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.296e-05/2.991, allocations: 13.64 kB / 393.1 MB, free: 9.367 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004975/2.992, allocations: 343.3 kB / 393.5 MB, free: 9.125 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005149/2.993, allocations: 391.7 kB / 393.9 MB, free: 8.82 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003258/2.993, allocations: 125.2 kB / 394 MB, free: 8.809 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.34e-05/2.993, allocations: 0.7031 kB / 394 MB, free: 8.809 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005415/2.993, allocations: 444.7 kB / 394.4 MB, free: 8.473 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 2.785e-06/2.993, allocations: 0 / 394.4 MB, free: 8.473 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.0008925/2.994, allocations: 285 kB / 394.7 MB, free: 8.426 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001894/2.995, allocations: 475.9 kB / 395.2 MB, free: 7.891 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001969/2.995, allocations: 155.3 kB / 395.3 MB, free: 7.789 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001015/2.995, allocations: 43.95 kB / 395.4 MB, free: 7.758 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.594e-05/2.995, allocations: 95.81 kB / 395.4 MB, free: 7.672 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/2.995, allocations: 72.48 kB / 395.5 MB, free: 7.641 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.059e-05/2.995, allocations: 3.906 kB / 395.5 MB, free: 7.641 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.141e-05/2.995, allocations: 336.1 kB / 395.9 MB, free: 7.328 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002723/2.996, allocations: 109.8 kB / 396 MB, free: 7.328 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003369/2.996, allocations: 210.2 kB / 396.2 MB, free: 7.223 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004187/2.996, allocations: 133.8 kB / 396.3 MB, free: 7.215 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/2.996, allocations: 3.906 kB / 396.3 MB, free: 7.215 MB / 314.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.000873/2.997, allocations: 386.8 kB / 396.7 MB, free: 7.145 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/2.997, allocations: 3.812 kB / 396.7 MB, free: 7.145 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/2.997, allocations: 4.562 kB / 396.7 MB, free: 7.145 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.428e-05/2.997, allocations: 3.812 kB / 396.7 MB, free: 7.145 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.225e-05/2.997, allocations: 17.2 kB / 396.7 MB, free: 7.141 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/2.997, allocations: 5.031 kB / 396.7 MB, free: 7.141 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002181/2.998, allocations: 12.98 kB / 396.7 MB, free: 7.137 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.485e-05/2.998, allocations: 24.23 kB / 396.7 MB, free: 7.133 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.0003348/2.998, allocations: 352 kB / 397.1 MB, free: 6.824 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.109e-05/2.998, allocations: 23.16 kB / 397.1 MB, free: 6.816 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001425/2.998, allocations: 26.31 kB / 397.1 MB, free: 6.801 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/2.998, allocations: 7.844 kB / 397.1 MB, free: 6.797 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/2.998, allocations: 0.5625 kB / 397.1 MB, free: 6.797 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/2.998, allocations: 3.656 kB / 397.1 MB, free: 6.797 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001104/2.999, allocations: 0.6598 MB / 397.8 MB, free: 6.523 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.297e-06/2.999, allocations: 0 / 397.8 MB, free: 6.523 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.886e-05/2.999, allocations: 16.33 kB / 397.8 MB, free: 6.516 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.7e-06/2.999, allocations: 3.938 kB / 397.8 MB, free: 6.512 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.01e-05/3, allocations: 13.78 kB / 397.8 MB, free: 6.512 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/3, allocations: 0.8438 kB / 397.8 MB, free: 6.512 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/3, allocations: 0 / 397.8 MB, free: 6.512 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008055/3, allocations: 453.1 kB / 398.3 MB, free: 6.367 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000874/3.001, allocations: 0.8239 MB / 399.1 MB, free: 5.844 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.294e-05/3.001, allocations: 89.8 kB / 399.2 MB, free: 5.742 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001435/3.002, allocations: 41.19 kB / 399.2 MB, free: 5.734 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002996/3.002, allocations: 22.3 kB / 399.3 MB, free: 5.734 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/3.002, allocations: 22.91 kB / 399.3 MB, free: 5.734 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.168e-05/3.002, allocations: 20.59 kB / 399.3 MB, free: 5.73 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001061/3.002, allocations: 115.9 kB / 399.4 MB, free: 5.652 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001536/3.004, allocations: 108.3 kB / 399.5 MB, free: 5.641 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.0004898/3.004, allocations: 206 kB / 399.7 MB, free: 5.531 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009618/3.005, allocations: 0.5641 MB / 400.3 MB, free: 5.215 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/3.005, allocations: 0 / 400.3 MB, free: 5.215 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007548/3.006, allocations: 468.9 kB / 400.7 MB, free: 5.008 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004133/3.006, allocations: 15.41 kB / 400.8 MB, free: 5.004 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001188/3.008, allocations: 334.8 kB / 401.1 MB, free: 4.875 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000331/3.008, allocations: 0.7525 MB / 401.8 MB, free: 4.145 MB / 314.7 MB Notification: Performance of SimCode: time 1.143e-06/3.008, allocations: 3.719 kB / 401.8 MB, free: 4.145 MB / 314.7 MB