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.009266/0.009266, allocations: 169.6 kB / 15.11 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 223.2 MB / 239 MB, free: 1.801 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.0009172/0.0009172, allocations: 96.27 kB / 290.2 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.1051/0.1051, allocations: 13.58 MB / 354.9 MB, free: 13.21 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003309/0.0003309, allocations: 9.797 kB / 419.1 MB, free: 87.5 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.13, allocations: 53.72 MB / 472.8 MB, free: 34.56 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4053/0.5353, allocations: 80.85 MB / 0.5407 GB, free: 16.51 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001573/0.5355, allocations: 45.05 kB / 0.5407 GB, free: 16.51 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06945/0.605, allocations: 23.84 MB / 0.564 GB, free: 12.45 MB / 362.7 MB Notification: Performance of FrontEnd: time 5.13e-06/0.605, allocations: 3.938 kB / 0.564 GB, free: 12.44 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.354e-05/0.6051, allocations: 11.66 kB / 0.564 GB, free: 12.44 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.0018/0.6069, allocations: 0.8367 MB / 0.5648 GB, free: 11.68 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.607, allocations: 13.59 kB / 0.5648 GB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002937/0.6073, allocations: 41.97 kB / 0.5649 GB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001077/0.6084, allocations: 447.5 kB / 0.5653 GB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.556e-05/0.6084, allocations: 17.78 kB / 0.5653 GB, free: 11.35 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.207e-05/0.6085, allocations: 22.08 kB / 0.5653 GB, free: 11.35 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004926/0.609, allocations: 257.8 kB / 0.5656 GB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.609, allocations: 4 kB / 0.5656 GB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.71e-05/0.6091, allocations: 7.75 kB / 0.5656 GB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.839e-05/0.6091, allocations: 7.688 kB / 0.5656 GB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000256/0.6094, allocations: 126.4 kB / 0.5657 GB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001181/0.6106, allocations: 0.7231 MB / 0.5664 GB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005581/0.6111, allocations: 0.5061 MB / 0.5669 GB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.798e-05/0.6112, allocations: 208 / 0.5669 GB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004488/0.6116, allocations: 438.9 kB / 0.5673 GB, free: 10.12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 2.024e-06/0.6116, allocations: 3.938 kB / 0.5674 GB, free: 10.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.001085/0.6127, allocations: 0.8394 MB / 0.5682 GB, free: 9.613 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001423/0.6129, allocations: 382.6 kB / 0.5685 GB, free: 9.172 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006308/0.6135, allocations: 477.2 kB / 0.569 GB, free: 9.008 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.832e-05/0.6136, allocations: 52.69 kB / 0.569 GB, free: 8.973 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001337/0.6137, allocations: 191.2 kB / 0.5692 GB, free: 8.875 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001008/0.6138, allocations: 108.4 kB / 0.5693 GB, free: 8.809 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.879e-05/0.6139, allocations: 7.125 kB / 0.5693 GB, free: 8.809 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.614, allocations: 367.5 kB / 0.5697 GB, free: 8.477 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002431/0.6142, allocations: 152.3 kB / 0.5698 GB, free: 8.453 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003178/0.6146, allocations: 303.8 kB / 0.5701 GB, free: 8.25 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003231/0.6149, allocations: 274.2 kB / 0.5704 GB, free: 8.125 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.6149, allocations: 0 / 0.5704 GB, free: 8.125 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008114/0.6157, allocations: 0.5973 MB / 0.571 GB, free: 7.887 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.985e-05/0.6158, allocations: 98.06 kB / 0.5711 GB, free: 7.789 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.6158, allocations: 3.938 kB / 0.5711 GB, free: 7.789 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.467e-05/0.6158, allocations: 7.719 kB / 0.5711 GB, free: 7.789 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002045/0.6161, allocations: 50.66 kB / 0.5711 GB, free: 7.773 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.6161, allocations: 7.75 kB / 0.5711 GB, free: 7.773 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002532/0.6163, allocations: 38.7 kB / 0.5712 GB, free: 7.762 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.767e-05/0.6164, allocations: 18.84 kB / 0.5712 GB, free: 7.762 MB / 362.7 MB Warning: Assuming fixed start value for the following 3 variables: shut.table.y:DISCRETE(fixed = true protected = true ) "Connector of Boolean output signal" type: Boolean stop.table.y:DISCRETE(fixed = true protected = true ) "Connector of Boolean output signal" type: Boolean start.table.y:DISCRETE(fixed = true 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 () * Number of clocked 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.0003745/0.6168, allocations: 381.2 kB / 0.5715 GB, free: 7.496 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.137e-05/0.6169, allocations: 50.44 kB / 0.5716 GB, free: 7.473 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007347/0.6176, allocations: 0.5571 MB / 0.5721 GB, free: 7.266 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.6176, allocations: 7.781 kB / 0.5721 GB, free: 7.262 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.6176, allocations: 0 / 0.5721 GB, free: 7.262 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.6176, allocations: 0 / 0.5721 GB, free: 7.262 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001213/0.6189, allocations: 1.091 MB / 0.5732 GB, free: 6.691 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.6189, allocations: 0 / 0.5732 GB, free: 6.691 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.896e-05/0.619, allocations: 19.58 kB / 0.5732 GB, free: 6.684 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.619, allocations: 3.781 kB / 0.5732 GB, free: 6.684 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.225e-05/0.619, allocations: 14.81 kB / 0.5732 GB, free: 6.684 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.619, allocations: 0 / 0.5732 GB, free: 6.684 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.619, allocations: 3.938 kB / 0.5732 GB, free: 6.684 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007588/0.6198, allocations: 0.6649 MB / 0.5739 GB, free: 6.359 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001688/0.62, allocations: 142.8 kB / 0.574 GB, free: 6.23 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.6201, allocations: 37.45 kB / 0.5741 GB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00018/0.6203, allocations: 23.52 kB / 0.5741 GB, free: 6.219 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.971e-05/0.6204, allocations: 29.83 kB / 0.5741 GB, free: 6.207 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.828e-05/0.6204, allocations: 22.98 kB / 0.5741 GB, free: 6.203 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004033/0.6208, allocations: 378 kB / 0.5745 GB, free: 6.07 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6208, allocations: 3.875 kB / 0.5745 GB, free: 6.07 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005511/0.6214, allocations: 119.7 kB / 0.5746 GB, free: 6.059 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) * Number of clocked states: 0 () * 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.001075/0.6225, allocations: 486.5 kB / 0.5751 GB, free: 5.844 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007907/0.6233, allocations: 0.6486 MB / 0.5757 GB, free: 5.582 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.6233, allocations: 0 / 0.5757 GB, free: 5.582 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003748/0.6237, allocations: 457.9 kB / 0.5762 GB, free: 5.363 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006167/0.6243, allocations: 112.5 kB / 0.5763 GB, free: 5.332 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001263/0.6256, allocations: 0.8724 MB / 0.5771 GB, free: 4.883 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000546/0.6262, allocations: 0.84 MB / 0.5779 GB, free: 20.12 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002616/0.6264, allocations: 102.4 kB / 0.578 GB, free: 20.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.634e-05/0.6265, allocations: 42.31 kB / 0.5781 GB, free: 20.07 MB / 378.7 MB Notification: Performance of SimCode: time 4.01e-07/0.6265, allocations: 0 / 0.5781 GB, free: 20.07 MB / 378.7 MB Notification: Performance of Templates: time 0.01108/0.6376, allocations: 6.678 MB / 0.5846 GB, free: 16.79 MB / 378.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)