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.001772/0.001772, allocations: 174.6 kB / 12.73 MB, free: 2.59 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.319/1.319, allocations: 221.4 MB / 234.6 MB, free: 14.38 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008785/0.0008785, allocations: 85 kB / 285.6 MB, free: 12.99 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_StateGraph2 2.1.0/package.mo): time 0.08414/0.08414, allocations: 13.56 MB / 350.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.882e-05/2.885e-05, allocations: 4 kB / 411.6 MB, free: 55.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09847/0.09851, allocations: 53.7 MB / 465.3 MB, free: 2.012 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3443/0.4428, allocations: 80.78 MB / 0.5333 GB, free: 15.88 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001375/0.443, allocations: 47.17 kB / 0.5334 GB, free: 15.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06299/0.506, allocations: 23.77 MB / 0.5566 GB, free: 9.422 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.506, allocations: 0 / 0.5566 GB, free: 9.422 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.47e-05/0.5061, allocations: 8 kB / 0.5566 GB, free: 9.414 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.00104/0.5071, allocations: 0.7546 MB / 0.5573 GB, free: 8.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.5072, allocations: 8.031 kB / 0.5573 GB, free: 8.562 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001151/0.5073, allocations: 55.44 kB / 0.5574 GB, free: 8.508 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008373/0.5082, allocations: 449.3 kB / 0.5578 GB, free: 8.027 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.764e-05/0.5082, allocations: 12.23 kB / 0.5578 GB, free: 8.016 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.028e-05/0.5083, allocations: 23.94 kB / 0.5578 GB, free: 7.992 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003888/0.5086, allocations: 250.2 kB / 0.5581 GB, free: 7.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.5087, allocations: 0 / 0.5581 GB, free: 7.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.52e-05/0.5087, allocations: 8 kB / 0.5581 GB, free: 7.723 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.716e-05/0.5087, allocations: 12 kB / 0.5581 GB, free: 7.711 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002173/0.509, allocations: 123.9 kB / 0.5582 GB, free: 7.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001011/0.51, allocations: 0.715 MB / 0.5589 GB, free: 6.824 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005039/0.5105, allocations: 0.4945 MB / 0.5594 GB, free: 6.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001948/0.5107, allocations: 137 kB / 0.5595 GB, free: 6.133 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.231e-05/0.5107, allocations: 7.859 kB / 0.5595 GB, free: 6.125 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00045/0.5112, allocations: 427.9 kB / 0.5599 GB, free: 5.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 1.803e-06/0.5112, allocations: 0 / 0.5599 GB, free: 5.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.0006821/0.5119, allocations: 478.4 kB / 0.5604 GB, free: 5.168 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001742/0.5121, allocations: 384.1 kB / 0.5608 GB, free: 4.707 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005631/0.5126, allocations: 475.1 kB / 0.5612 GB, free: 4.242 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.613e-05/0.5127, allocations: 53.69 kB / 0.5613 GB, free: 4.184 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.5129, allocations: 193 kB / 0.5615 GB, free: 3.988 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.342e-05/0.5129, allocations: 102.8 kB / 0.5616 GB, free: 3.887 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.275e-05/0.513, allocations: 8 kB / 0.5616 GB, free: 3.879 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.5131, allocations: 370.7 kB / 0.5619 GB, free: 3.508 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002124/0.5133, allocations: 141 kB / 0.562 GB, free: 3.371 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002988/0.5136, allocations: 299.7 kB / 0.5623 GB, free: 3.016 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003029/0.514, allocations: 261.1 kB / 0.5626 GB, free: 2.746 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.514, allocations: 0 / 0.5626 GB, free: 2.746 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007361/0.5147, allocations: 0.5788 MB / 0.5631 GB, free: 2.145 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.245e-05/0.5148, allocations: 102.8 kB / 0.5632 GB, free: 2.027 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.315e-06/0.5148, allocations: 4.281 kB / 0.5632 GB, free: 2.023 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.5148, allocations: 12 kB / 0.5633 GB, free: 2.012 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000182/0.515, allocations: 43.92 kB / 0.5633 GB, free: 1.969 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/0.515, allocations: 11.92 kB / 0.5633 GB, free: 1.957 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001988/0.5152, allocations: 31.84 kB / 0.5633 GB, free: 1.926 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.732e-05/0.5153, allocations: 23.98 kB / 0.5634 GB, free: 1.902 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.0002651/0.5156, allocations: 302.4 kB / 0.5637 GB, free: 1.582 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.376e-05/0.5157, allocations: 51.44 kB / 0.5637 GB, free: 1.531 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007388/0.5164, allocations: 0.5415 MB / 0.5642 GB, free: 0.9648 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.5164, allocations: 4 kB / 0.5642 GB, free: 0.9609 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.5165, allocations: 4.281 kB / 0.5642 GB, free: 0.957 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.5165, allocations: 3.984 kB / 0.5642 GB, free: 0.9531 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001192/0.5177, allocations: 1.073 MB / 0.5653 GB, free: 15.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.5177, allocations: 7.922 kB / 0.5653 GB, free: 15.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.213e-05/0.5178, allocations: 19.94 kB / 0.5653 GB, free: 15.78 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.5178, allocations: 0 / 0.5653 GB, free: 15.78 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.27e-05/0.5178, allocations: 19.98 kB / 0.5653 GB, free: 15.76 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/0.5178, allocations: 4 kB / 0.5653 GB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.5178, allocations: 3.938 kB / 0.5653 GB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007074/0.5185, allocations: 0.6438 MB / 0.566 GB, free: 15.07 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000125/0.5187, allocations: 144.5 kB / 0.5661 GB, free: 14.91 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.16e-05/0.5188, allocations: 27.98 kB / 0.5661 GB, free: 14.88 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001757/0.519, allocations: 27.98 kB / 0.5662 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.896e-05/0.5191, allocations: 35.94 kB / 0.5662 GB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.612e-05/0.5191, allocations: 24 kB / 0.5662 GB, free: 14.8 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004245/0.5195, allocations: 373.2 kB / 0.5666 GB, free: 14.43 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5196, allocations: 0 / 0.5666 GB, free: 14.43 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004937/0.5201, allocations: 123.9 kB / 0.5667 GB, free: 14.31 MB / 394.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.0009983/0.5211, allocations: 436.9 kB / 0.5671 GB, free: 13.98 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007337/0.5218, allocations: 0.6344 MB / 0.5677 GB, free: 13.31 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.5218, allocations: 4 kB / 0.5677 GB, free: 13.3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003876/0.5222, allocations: 439.6 kB / 0.5682 GB, free: 12.84 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005233/0.5227, allocations: 113.9 kB / 0.5683 GB, free: 12.73 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001039/0.5238, allocations: 0.629 MB / 0.5689 GB, free: 12.08 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004114/0.5242, allocations: 0.8402 MB / 0.5697 GB, free: 11.21 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002457/0.5245, allocations: 108.5 kB / 0.5698 GB, free: 11.11 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001045/0.5246, allocations: 47.38 kB / 0.5698 GB, free: 11.06 MB / 394.7 MB Notification: Performance of SimCode: time 4.01e-07/0.5246, allocations: 4 kB / 0.5699 GB, free: 11.05 MB / 394.7 MB Notification: Performance of Templates: time 0.01145/0.536, allocations: 6.671 MB / 0.5764 GB, free: 4.398 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)