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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001038/0.001038, allocations: 169 kB / 7.645 MB, free: 1.434 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.358/1.358, allocations: 221.5 MB / 229.6 MB, free: 7.523 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.0008704/0.0008705, allocations: 90.89 kB / 280.5 MB, free: 5.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.07538/0.07538, allocations: 13.57 MB / 344.8 MB, free: 1.477 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.452e-05/1.463e-05, allocations: 5.094 kB / 404.7 MB, free: 45.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08832/0.08835, allocations: 53.73 MB / 458.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4052/0.4936, allocations: 80.12 MB / 0.526 GB, free: 17.87 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001649/0.4938, allocations: 45.11 kB / 0.526 GB, free: 17.87 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05981/0.5537, allocations: 23.56 MB / 0.549 GB, free: 16.31 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.5537, allocations: 3.938 kB / 0.549 GB, free: 16.3 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.44e-05/0.5538, allocations: 11.59 kB / 0.549 GB, free: 16.3 MB / 362.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.555, allocations: 0.7493 MB / 0.5498 GB, free: 15.64 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.219e-05/0.555, allocations: 7.75 kB / 0.5498 GB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001961/0.5552, allocations: 50.42 kB / 0.5498 GB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007561/0.556, allocations: 459.7 kB / 0.5503 GB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.601e-05/0.556, allocations: 7.844 kB / 0.5503 GB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.943e-05/0.5561, allocations: 11.62 kB / 0.5503 GB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002195/0.5563, allocations: 123.2 kB / 0.5504 GB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000312/0.5566, allocations: 224.4 kB / 0.5506 GB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.5566, allocations: 0 / 0.5506 GB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.646e-05/0.5567, allocations: 7.203 kB / 0.5506 GB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.619e-05/0.5567, allocations: 11.78 kB / 0.5506 GB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/0.5577, allocations: 0.6771 MB / 0.5513 GB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004057/0.5581, allocations: 473.9 kB / 0.5517 GB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/0.5583, allocations: 132.6 kB / 0.5519 GB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.222e-05/0.5583, allocations: 15.45 kB / 0.5519 GB, free: 14.72 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004095/0.5588, allocations: 419.6 kB / 0.5523 GB, free: 14.47 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 1.984e-06/0.5588, allocations: 0 / 0.5523 GB, free: 14.47 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.0005917/0.5594, allocations: 356 kB / 0.5526 GB, free: 14.41 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/0.5595, allocations: 382.9 kB / 0.553 GB, free: 13.97 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005052/0.56, allocations: 466.5 kB / 0.5534 GB, free: 13.86 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.412e-05/0.5601, allocations: 47.86 kB / 0.5535 GB, free: 13.83 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001217/0.5602, allocations: 191.5 kB / 0.5537 GB, free: 13.74 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.498e-05/0.5603, allocations: 95.62 kB / 0.5537 GB, free: 13.69 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.709e-05/0.5603, allocations: 0 / 0.5537 GB, free: 13.69 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.5605, allocations: 367.2 kB / 0.5541 GB, free: 13.38 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000172/0.5606, allocations: 125.4 kB / 0.5542 GB, free: 13.38 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002221/0.5609, allocations: 283.7 kB / 0.5545 GB, free: 13.21 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002255/0.5611, allocations: 158.7 kB / 0.5546 GB, free: 13.2 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.503e-06/0.5611, allocations: 3.953 kB / 0.5546 GB, free: 13.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005898/0.5617, allocations: 459.8 kB / 0.5551 GB, free: 13.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.962e-05/0.5618, allocations: 103.7 kB / 0.5552 GB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.5618, allocations: 7.812 kB / 0.5552 GB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.5618, allocations: 3.969 kB / 0.5552 GB, free: 13.01 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001823/0.562, allocations: 45.84 kB / 0.5552 GB, free: 13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.179e-05/0.562, allocations: 15.72 kB / 0.5553 GB, free: 13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002206/0.5623, allocations: 31.14 kB / 0.5553 GB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.507e-05/0.5623, allocations: 23.12 kB / 0.5553 GB, free: 12.98 MB / 362.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.0002734/0.5626, allocations: 281.2 kB / 0.5556 GB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.099e-05/0.5627, allocations: 57.98 kB / 0.5556 GB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006212/0.5633, allocations: 416.8 kB / 0.556 GB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.5633, allocations: 3.969 kB / 0.556 GB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.5633, allocations: 0 / 0.556 GB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.5633, allocations: 3.703 kB / 0.556 GB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009216/0.5643, allocations: 0.9015 MB / 0.5569 GB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.5643, allocations: 0 / 0.5569 GB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.016e-05/0.5644, allocations: 18.98 kB / 0.5569 GB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.5644, allocations: 0 / 0.5569 GB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.276e-05/0.5644, allocations: 18.17 kB / 0.5569 GB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.5644, allocations: 7.812 kB / 0.557 GB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.5644, allocations: 3.984 kB / 0.557 GB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005425/0.565, allocations: 0.5127 MB / 0.5575 GB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/0.5651, allocations: 150.3 kB / 0.5576 GB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.5652, allocations: 23.16 kB / 0.5576 GB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001754/0.5654, allocations: 23.17 kB / 0.5576 GB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.508e-05/0.5655, allocations: 29.06 kB / 0.5577 GB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.465e-05/0.5655, allocations: 23.14 kB / 0.5577 GB, free: 12.08 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003621/0.5659, allocations: 358.6 kB / 0.558 GB, free: 11.99 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5659, allocations: 4 kB / 0.558 GB, free: 11.99 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005264/0.5664, allocations: 111.1 kB / 0.5581 GB, free: 11.98 MB / 362.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.0009788/0.5674, allocations: 412.3 kB / 0.5585 GB, free: 11.75 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005876/0.568, allocations: 0.6002 MB / 0.5591 GB, free: 11.55 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.568, allocations: 0 / 0.5591 GB, free: 11.55 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003138/0.5683, allocations: 437.1 kB / 0.5595 GB, free: 11.36 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000566/0.5689, allocations: 99.17 kB / 0.5596 GB, free: 11.33 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001065/0.57, allocations: 0.6209 MB / 0.5602 GB, free: 11.09 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002732/0.5703, allocations: 0.8471 MB / 0.5611 GB, free: 10.32 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002496/0.5705, allocations: 102.9 kB / 0.5612 GB, free: 10.28 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.278e-05/0.5706, allocations: 46.05 kB / 0.5612 GB, free: 10.27 MB / 362.7 MB Notification: Performance of SimCode: time 2.21e-07/0.5706, allocations: 0 / 0.5612 GB, free: 10.27 MB / 362.7 MB Notification: Performance of Templates: time 0.00999/0.5806, allocations: 6.201 MB / 0.5673 GB, free: 7.207 MB / 362.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)