Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_StateGraph2_Modelica_StateGraph2.Examples.Interactive.UseRadioButtonSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo", uses=false) Using package Modelica_StateGraph2 with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_StateGraph2.Examples.Interactive.UseRadioButtonSources,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.Interactive.UseRadioButtonSources") translateModel(Modelica_StateGraph2.Examples.Interactive.UseRadioButtonSources,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_StateGraph2_Modelica_StateGraph2.Examples.Interactive.UseRadioButtonSources") [: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 loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002346/0.002346, allocations: 183.1 kB / 7.455 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.274/1.274, allocations: 221.4 MB / 229.3 MB, free: 3.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00096/0.0009598, allocations: 100.5 kB / 280.1 MB, free: 1.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.06679/0.06679, allocations: 13.58 MB / 344.5 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.44e-06/5.46e-06, allocations: 0 / 404.2 MB, free: 61.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1045, allocations: 53.71 MB / 457.9 MB, free: 8.059 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.325/0.4295, allocations: 80.33 MB / 0.5256 GB, free: 2.566 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003336/0.43, allocations: 48.48 kB / 0.5257 GB, free: 2.547 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.06697/0.497, allocations: 23.09 MB / 0.5482 GB, free: 15.75 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.582e-05/0.4971, allocations: 8 kB / 0.5482 GB, free: 15.74 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.001195/0.4983, allocations: 0.7528 MB / 0.549 GB, free: 14.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.4983, allocations: 8.031 kB / 0.549 GB, free: 14.92 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001923/0.4985, allocations: 47.44 kB / 0.549 GB, free: 14.87 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008923/0.4994, allocations: 456.2 kB / 0.5494 GB, free: 14.46 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.836e-05/0.4995, allocations: 8 kB / 0.5495 GB, free: 14.46 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.075e-05/0.4996, allocations: 19.94 kB / 0.5495 GB, free: 14.44 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002552/0.4998, allocations: 123 kB / 0.5496 GB, free: 14.36 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003383/0.5002, allocations: 217.4 kB / 0.5498 GB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-06/0.5002, allocations: 0 / 0.5498 GB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.904e-05/0.5002, allocations: 4 kB / 0.5498 GB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.962e-05/0.5003, allocations: 14.8 kB / 0.5498 GB, free: 14.16 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001148/0.5014, allocations: 0.6938 MB / 0.5505 GB, free: 13.6 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004652/0.5019, allocations: 475.8 kB / 0.5509 GB, free: 13.14 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001792/0.5021, allocations: 130.3 kB / 0.5511 GB, free: 13.06 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.845e-05/0.5021, allocations: 12.14 kB / 0.5511 GB, free: 13.05 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003731/0.5025, allocations: 378.6 kB / 0.5514 GB, free: 12.68 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 1.763e-06/0.5025, allocations: 0 / 0.5514 GB, free: 12.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.000588/0.5031, allocations: 347 kB / 0.5518 GB, free: 12.41 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001555/0.5033, allocations: 383.7 kB / 0.5521 GB, free: 11.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005769/0.5039, allocations: 465.5 kB / 0.5526 GB, free: 11.62 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.264e-05/0.5039, allocations: 45.62 kB / 0.5526 GB, free: 11.57 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.275e-05/0.504, allocations: 128.1 kB / 0.5528 GB, free: 11.45 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.181e-05/0.5041, allocations: 97.92 kB / 0.5528 GB, free: 11.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.891e-05/0.5041, allocations: 4 kB / 0.5528 GB, free: 11.37 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.5043, allocations: 365.7 kB / 0.5532 GB, free: 11.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002026/0.5045, allocations: 134.8 kB / 0.5533 GB, free: 10.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002929/0.5048, allocations: 284.4 kB / 0.5536 GB, free: 10.66 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002605/0.505, allocations: 172.3 kB / 0.5538 GB, free: 10.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.5051, allocations: 0 / 0.5538 GB, free: 10.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007823/0.5058, allocations: 464.8 kB / 0.5542 GB, free: 10.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.5059, allocations: 4 kB / 0.5542 GB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.5059, allocations: 4 kB / 0.5542 GB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.225e-05/0.5059, allocations: 8 kB / 0.5542 GB, free: 10.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002097/0.5061, allocations: 51.72 kB / 0.5543 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.5062, allocations: 4 kB / 0.5543 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002412/0.5064, allocations: 32.11 kB / 0.5543 GB, free: 10.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.757e-05/0.5065, allocations: 19.88 kB / 0.5543 GB, free: 10.07 MB / 378.7 MB Warning: Assuming fixed start value for the following 3 variables: shut.table.y:DISCRETE(fixed = false protected = true ) "Connector of Boolean output signal" type: Boolean stop.table.y:DISCRETE(fixed = false protected = true ) "Connector of Boolean output signal" type: Boolean start.table.y:DISCRETE(fixed = false protected = true ) "Connector of Boolean output signal" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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],$whenCondition3,$PRE.shut.table.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.stop.table.combiTimeTable.nextTimeEvent,$whenCondition1,$PRE.start.table.combiTimeTable.nextTimeEvent,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],$whenCondition5,$whenCondition4,$whenCondition6,$PRE.shut.reset[1],$PRE.shut.reset[2],$PRE.shut.table.y,shut.table.y,shut.table.combiTimeTable.nextTimeEvent,$PRE.shut.table.combiTimeTable.nextTimeEventScaled,shut.table.combiTimeTable.nextTimeEventScaled,shut.pre_reset[1],shut.pre_reset[2],$whenCondition8,$whenCondition7,$whenCondition9,$PRE.stop.reset[1],$PRE.stop.reset[2],$PRE.stop.table.y,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,$PRE.stop.table.combiTimeTable.nextTimeEventScaled,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],stop.pre_reset[2],$whenCondition11,$whenCondition10,$whenCondition12,$PRE.start.reset[1],$PRE.start.reset[2],$PRE.start.table.y,start.table.y,start.table.combiTimeTable.nextTimeEvent,$PRE.start.table.combiTimeTable.nextTimeEventScaled,start.table.combiTimeTable.nextTimeEventScaled,start.pre_reset[1],start.pre_reset[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 3 * 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.0002656/0.5067, allocations: 273.5 kB / 0.5546 GB, free: 9.789 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.088e-05/0.5068, allocations: 55.34 kB / 0.5546 GB, free: 9.734 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006087/0.5074, allocations: 401.3 kB / 0.555 GB, free: 9.438 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.5075, allocations: 4 kB / 0.555 GB, free: 9.434 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.5075, allocations: 0 / 0.555 GB, free: 9.434 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.5075, allocations: 0 / 0.555 GB, free: 9.434 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001065/0.5086, allocations: 0.8837 MB / 0.5559 GB, free: 8.711 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.5086, allocations: 4 kB / 0.5559 GB, free: 8.707 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.27e-05/0.5087, allocations: 16 kB / 0.5559 GB, free: 8.691 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.5087, allocations: 3.938 kB / 0.5559 GB, free: 8.688 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.546e-05/0.5087, allocations: 15.61 kB / 0.5559 GB, free: 8.676 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.252e-06/0.5087, allocations: 7.906 kB / 0.5559 GB, free: 8.668 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.5087, allocations: 0 / 0.5559 GB, free: 8.668 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006306/0.5094, allocations: 0.4929 MB / 0.5564 GB, free: 8.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001443/0.5095, allocations: 146.5 kB / 0.5566 GB, free: 8.102 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001226/0.5097, allocations: 27.3 kB / 0.5566 GB, free: 8.082 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002104/0.5099, allocations: 19.98 kB / 0.5566 GB, free: 8.062 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.779e-05/0.51, allocations: 26.52 kB / 0.5566 GB, free: 8.043 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.83e-05/0.51, allocations: 19.62 kB / 0.5566 GB, free: 8.027 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004241/0.5104, allocations: 363.2 kB / 0.557 GB, free: 7.773 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005599/0.511, allocations: 102.7 kB / 0.5571 GB, free: 7.676 MB / 378.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 ($whenCondition3,$whenCondition2,$whenCondition1,$whenCondition5,$whenCondition4,$whenCondition6,$whenCondition8,$whenCondition7,$whenCondition9,$whenCondition11,$whenCondition10,$whenCondition12,start.reset[1],start.reset[2],start.on,start.table.y,start.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEventScaled,start.pre_reset[1],start.pre_reset[2],stop.reset[1],stop.reset[2],stop.on,stop.table.y,stop.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEventScaled,stop.pre_reset[1],stop.pre_reset[2],shut.reset[1],shut.reset[2],shut.on,shut.table.y,shut.table.combiTimeTable.nextTimeEvent,shut.table.combiTimeTable.nextTimeEventScaled,shut.pre_reset[1],shut.pre_reset[2]) * Number of discrete states: 33 (shut.table.combiTimeTable.nextTimeEvent,stop.table.combiTimeTable.nextTimeEvent,start.table.combiTimeTable.nextTimeEvent,shut.table.combiTimeTable.nextTimeEventScaled,$whenCondition6,shut.on,$whenCondition5,$whenCondition4,shut.pre_reset[2],shut.pre_reset[1],shut.reset[1],shut.reset[2],shut.table.y,stop.table.combiTimeTable.nextTimeEventScaled,$whenCondition9,stop.on,$whenCondition8,$whenCondition7,stop.pre_reset[2],stop.pre_reset[1],stop.reset[1],stop.reset[2],stop.table.y,start.table.combiTimeTable.nextTimeEventScaled,$whenCondition12,start.on,$whenCondition11,$whenCondition10,start.pre_reset[2],start.pre_reset[1],start.reset[1],start.reset[2],start.table.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 6 * 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.000831/0.5119, allocations: 372.4 kB / 0.5574 GB, free: 7.367 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006375/0.5125, allocations: 478.8 kB / 0.5579 GB, free: 7.004 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.5125, allocations: 0 / 0.5579 GB, free: 7.004 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003377/0.5129, allocations: 358.6 kB / 0.5582 GB, free: 6.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005857/0.5135, allocations: 108.2 kB / 0.5583 GB, free: 6.664 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001172/0.5146, allocations: 0.6216 MB / 0.5589 GB, free: 6.137 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004779/0.5151, allocations: 0.8897 MB / 0.5598 GB, free: 5.234 MB / 378.7 MB Notification: Performance of SimCode: time 4.01e-07/0.5151, allocations: 4 kB / 0.5598 GB, free: 5.23 MB / 378.7 MB Notification: Performance of Templates: time 0.01177/0.5269, allocations: 6.359 MB / 0.566 GB, free: 14.91 MB / 394.7 MB make -j1 -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.Interactive.UseRadioButtonSources.makefile (rm -f Modelica_StateGraph2_Modelica_StateGraph2.Examples.Interactive.UseRadioButtonSources.pipe ; mkfifo Modelica_StateGraph2_Modelica_StateGraph2.Examples.Interactive.UseRadioButtonSources.pipe ; head -c 1048576 < Modelica_StateGraph2_Modelica_StateGraph2.Examples.Interactive.UseRadioButtonSources.pipe >> ../files/Modelica_StateGraph2_Modelica_StateGraph2.Examples.Interactive.UseRadioButtonSources.sim & ./Modelica_StateGraph2_Modelica_StateGraph2.Examples.Interactive.UseRadioButtonSources -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_StateGraph2_Modelica_StateGraph2.Examples.Interactive.UseRadioButtonSources.pipe 2>&1)